forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'media/v4.17-1' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/mchehab/linux-media Pull media updates from Mauro Carvalho Chehab: - new CEC pin injection code for testing purposes - DVB frontend cxd2099 promoted from staging - new platform driver for Sony cxd2880 DVB devices - new sensor drivers: mt9t112, ov2685, ov5695, ov772x, tda1997x, tw9910.c - removal of unused cx18 and ivtv alsa mixers - the reneseas-ceu driver doesn't depend on soc_camera anymore and moved from staging - removed the mantis_vp3028 driver, unused since 2009 - s5p-mfc: add support for version 10 of the MSP - added a decoder for imon protocol - atomisp: lots of cleanups - imx074 and mt9t031: don't depend on soc_camera anymore, being promoted from staging - added helper functions to better support DVB I2C binding - lots of driver improvements and cleanups * tag 'media/v4.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (438 commits) media: v4l2-ioctl: rename a temp var that stores _IOC_SIZE(cmd) media: fimc-capture: get rid of two warnings media: dvb-usb-v2: fix a missing dependency of I2C_MUX media: uvc: to the right check at uvc_ioctl_enum_framesizes() media: cec-core: fix a bug at cec_error_inj_write() media: tda9840: cleanup a warning media: tm6000: avoid casting just to print pointer address media: em28xx-input: improve error handling code media: zr364xx: avoid casting just to print pointer address media: vivid-radio-rx: add a cast to avoid a warning media: saa7134-alsa: don't use casts to print a buffer address media: solo6x10: get rid of an address space warning media: zoran: don't cast pointers to print them media: ir-kbd-i2c: change the if logic to avoid a warning media: ir-kbd-i2c: improve error handling code media: saa7134-input: improve error handling media: s2255drv: fix a casting warning media: ivtvfb: Cleanup some warnings media: videobuf-dma-sg: Fix a weird cast soc_camera: fix a weird cast on printk ...
- Loading branch information
Showing
572 changed files
with
37,792 additions
and
21,327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
What: /sys/kernel/debug/cec/*/error-inj | ||
Date: March 2018 | ||
Contact: Hans Verkuil <[email protected]> | ||
Description: | ||
|
||
The CEC Framework allows for CEC error injection commands through | ||
debugfs. Drivers that support this will create an error-inj file | ||
through which the error injection commands can be given. | ||
|
||
The basic syntax is as follows: | ||
|
||
Leading spaces/tabs are ignored. If the next character is a '#' or the | ||
end of the line was reached, then the whole line is ignored. Otherwise | ||
a command is expected. | ||
|
||
It is up to the driver to decide what commands to implement. The only | ||
exception is that the command 'clear' without any arguments must be | ||
implemented and that it will remove all current error injection | ||
commands. | ||
|
||
This ensures that you can always do 'echo clear >error-inj' to clear any | ||
error injections without having to know the details of the driver-specific | ||
commands. | ||
|
||
Note that the output of 'error-inj' shall be valid as input to 'error-inj'. | ||
So this must work: | ||
|
||
$ cat error-inj >einj.txt | ||
$ cat einj.txt >error-inj | ||
|
||
Other than these basic rules described above this ABI is not considered | ||
stable and may change in the future. | ||
|
||
Drivers that implement this functionality must document the commands as | ||
part of the CEC documentation and must keep that documentation up to date | ||
when changes are made. | ||
|
||
The following CEC error injection implementations exist: | ||
|
||
- Documentation/media/uapi/cec/cec-pin-error-inj.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
* Omnivision OV2685 MIPI CSI-2 sensor | ||
|
||
Required Properties: | ||
- compatible: shall be "ovti,ov2685" | ||
- clocks: reference to the xvclk input clock | ||
- clock-names: shall be "xvclk" | ||
- avdd-supply: Analog voltage supply, 2.8 volts | ||
- dovdd-supply: Digital I/O voltage supply, 1.8 volts | ||
- dvdd-supply: Digital core voltage supply, 1.8 volts | ||
- reset-gpios: Low active reset gpio | ||
|
||
The device node shall contain one 'port' child node with an | ||
'endpoint' subnode for its digital output video port, | ||
in accordance with the video interface bindings defined in | ||
Documentation/devicetree/bindings/media/video-interfaces.txt. | ||
The endpoint optional property 'data-lanes' shall be "<1>". | ||
|
||
Example: | ||
&i2c7 { | ||
ov2685: camera-sensor@3c { | ||
compatible = "ovti,ov2685"; | ||
reg = <0x3c>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&clk_24m_cam>; | ||
|
||
clocks = <&cru SCLK_TESTCLKOUT1>; | ||
clock-names = "xvclk"; | ||
|
||
avdd-supply = <&pp2800_cam>; | ||
dovdd-supply = <&pp1800>; | ||
dvdd-supply = <&pp1800>; | ||
reset-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; | ||
|
||
port { | ||
ucam_out: endpoint { | ||
remote-endpoint = <&mipi_in_ucam>; | ||
data-lanes = <1>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
* Omnivision OV5695 MIPI CSI-2 sensor | ||
|
||
Required Properties: | ||
- compatible: shall be "ovti,ov5695" | ||
- clocks: reference to the xvclk input clock | ||
- clock-names: shall be "xvclk" | ||
- avdd-supply: Analog voltage supply, 2.8 volts | ||
- dovdd-supply: Digital I/O voltage supply, 1.8 volts | ||
- dvdd-supply: Digital core voltage supply, 1.2 volts | ||
- reset-gpios: Low active reset gpio | ||
|
||
The device node shall contain one 'port' child node with an | ||
'endpoint' subnode for its digital output video port, | ||
in accordance with the video interface bindings defined in | ||
Documentation/devicetree/bindings/media/video-interfaces.txt. | ||
The endpoint optional property 'data-lanes' shall be "<1 2>". | ||
|
||
Example: | ||
&i2c7 { | ||
ov5695: camera-sensor@36 { | ||
compatible = "ovti,ov5695"; | ||
reg = <0x36>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&clk_24m_cam>; | ||
|
||
clocks = <&cru SCLK_TESTCLKOUT1>; | ||
clock-names = "xvclk"; | ||
|
||
avdd-supply = <&pp2800_cam>; | ||
dovdd-supply = <&pp1800>; | ||
dvdd-supply = <&pp1250_cam>; | ||
reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; | ||
|
||
port { | ||
wcam_out: endpoint { | ||
remote-endpoint = <&mipi_in_wcam>; | ||
data-lanes = <1 2>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
* Omnivision OV9650/OV9652 CMOS sensor | ||
|
||
Required Properties: | ||
- compatible: shall be one of | ||
"ovti,ov9650" | ||
"ovti,ov9652" | ||
- clocks: reference to the xvclk input clock. | ||
|
||
Optional Properties: | ||
- reset-gpios: reference to the GPIO connected to the resetb pin, if any. | ||
Active is high. | ||
- powerdown-gpios: reference to the GPIO connected to the pwdn pin, if any. | ||
Active is high. | ||
|
||
The device node shall contain one 'port' child node with one child 'endpoint' | ||
subnode for its digital output video port, in accordance with the video | ||
interface bindings defined in Documentation/devicetree/bindings/media/ | ||
video-interfaces.txt. | ||
|
||
Example: | ||
|
||
&i2c0 { | ||
ov9650: camera@30 { | ||
compatible = "ovti,ov9650"; | ||
reg = <0x30>; | ||
reset-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_HIGH>; | ||
powerdown-gpios = <&axi_gpio_0 1 GPIO_ACTIVE_HIGH>; | ||
clocks = <&xclk>; | ||
|
||
port { | ||
ov9650_0: endpoint { | ||
remote-endpoint = <&vcap1_in0>; | ||
}; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.