Skip to content

Commit ef1c4a6

Browse files
committed
Merge tag 'media/v4.17-1' of git://git.kernel.org/pub/scm/linux/kernel/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 ...
2 parents 147a89b + f8a695c commit ef1c4a6

572 files changed

Lines changed: 37792 additions & 21327 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
What: /sys/kernel/debug/cec/*/error-inj
2+
Date: March 2018
3+
Contact: Hans Verkuil <hans.verkuil@cisco.com>
4+
Description:
5+
6+
The CEC Framework allows for CEC error injection commands through
7+
debugfs. Drivers that support this will create an error-inj file
8+
through which the error injection commands can be given.
9+
10+
The basic syntax is as follows:
11+
12+
Leading spaces/tabs are ignored. If the next character is a '#' or the
13+
end of the line was reached, then the whole line is ignored. Otherwise
14+
a command is expected.
15+
16+
It is up to the driver to decide what commands to implement. The only
17+
exception is that the command 'clear' without any arguments must be
18+
implemented and that it will remove all current error injection
19+
commands.
20+
21+
This ensures that you can always do 'echo clear >error-inj' to clear any
22+
error injections without having to know the details of the driver-specific
23+
commands.
24+
25+
Note that the output of 'error-inj' shall be valid as input to 'error-inj'.
26+
So this must work:
27+
28+
$ cat error-inj >einj.txt
29+
$ cat einj.txt >error-inj
30+
31+
Other than these basic rules described above this ABI is not considered
32+
stable and may change in the future.
33+
34+
Drivers that implement this functionality must document the commands as
35+
part of the CEC documentation and must keep that documentation up to date
36+
when changes are made.
37+
38+
The following CEC error injection implementations exist:
39+
40+
- Documentation/media/uapi/cec/cec-pin-error-inj.rst

‎Documentation/devicetree/bindings/media/coda.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ called VPU (Video Processing Unit).
77
Required properties:
88
- compatible : should be "fsl,<chip>-src" for i.MX SoCs:
99
(a) "fsl,imx27-vpu" for CodaDx6 present in i.MX27
10-
(b) "fsl,imx53-vpu" for CODA7541 present in i.MX53
11-
(c) "fsl,imx6q-vpu" for CODA960 present in i.MX6q
10+
(b) "fsl,imx51-vpu" for CodaHx4 present in i.MX51
11+
(c) "fsl,imx53-vpu" for CODA7541 present in i.MX53
12+
(d) "fsl,imx6q-vpu" for CODA960 present in i.MX6q
1213
- reg: should be register base and length as documented in the
1314
SoC reference manual
1415
- interrupts : Should contain the VPU interrupt. For CODA960,

‎Documentation/devicetree/bindings/media/i2c/adv7604.txt‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ Required Properties:
1313
- "adi,adv7611" for the ADV7611
1414
- "adi,adv7612" for the ADV7612
1515

16-
- reg: I2C slave address
16+
- reg: I2C slave addresses
17+
The ADV76xx has up to thirteen 256-byte maps that can be accessed via the
18+
main I2C ports. Each map has it own I2C address and acts as a standard
19+
slave device on the I2C bus. The main address is mandatory, others are
20+
optional and revert to defaults if not specified.
1721

1822
- hpd-gpios: References to the GPIOs that control the HDMI hot-plug
1923
detection pins, one per HDMI input. The active flag indicates the GPIO
@@ -35,6 +39,11 @@ Optional Properties:
3539

3640
- reset-gpios: Reference to the GPIO connected to the device's reset pin.
3741
- default-input: Select which input is selected after reset.
42+
- reg-names : Names of maps with programmable addresses.
43+
It can contain any map needing a non-default address.
44+
Possible maps names are :
45+
"main", "avlink", "cec", "infoframe", "esdp", "dpp", "afe",
46+
"rep", "edid", "hdmi", "test", "cp", "vdp"
3847

3948
Optional Endpoint Properties:
4049

@@ -52,7 +61,12 @@ Example:
5261

5362
hdmi_receiver@4c {
5463
compatible = "adi,adv7611";
55-
reg = <0x4c>;
64+
/*
65+
* The edid page will be accessible @ 0x66 on the I2C bus. All
66+
* other maps will retain their default addresses.
67+
*/
68+
reg = <0x4c>, <0x66>;
69+
reg-names "main", "edid";
5670

5771
reset-gpios = <&ioexp 0 GPIO_ACTIVE_LOW>;
5872
hpd-gpios = <&ioexp 2 GPIO_ACTIVE_HIGH>;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
* Omnivision OV2685 MIPI CSI-2 sensor
2+
3+
Required Properties:
4+
- compatible: shall be "ovti,ov2685"
5+
- clocks: reference to the xvclk input clock
6+
- clock-names: shall be "xvclk"
7+
- avdd-supply: Analog voltage supply, 2.8 volts
8+
- dovdd-supply: Digital I/O voltage supply, 1.8 volts
9+
- dvdd-supply: Digital core voltage supply, 1.8 volts
10+
- reset-gpios: Low active reset gpio
11+
12+
The device node shall contain one 'port' child node with an
13+
'endpoint' subnode for its digital output video port,
14+
in accordance with the video interface bindings defined in
15+
Documentation/devicetree/bindings/media/video-interfaces.txt.
16+
The endpoint optional property 'data-lanes' shall be "<1>".
17+
18+
Example:
19+
&i2c7 {
20+
ov2685: camera-sensor@3c {
21+
compatible = "ovti,ov2685";
22+
reg = <0x3c>;
23+
pinctrl-names = "default";
24+
pinctrl-0 = <&clk_24m_cam>;
25+
26+
clocks = <&cru SCLK_TESTCLKOUT1>;
27+
clock-names = "xvclk";
28+
29+
avdd-supply = <&pp2800_cam>;
30+
dovdd-supply = <&pp1800>;
31+
dvdd-supply = <&pp1800>;
32+
reset-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
33+
34+
port {
35+
ucam_out: endpoint {
36+
remote-endpoint = <&mipi_in_ucam>;
37+
data-lanes = <1>;
38+
};
39+
};
40+
};
41+
};
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
* Omnivision OV5695 MIPI CSI-2 sensor
2+
3+
Required Properties:
4+
- compatible: shall be "ovti,ov5695"
5+
- clocks: reference to the xvclk input clock
6+
- clock-names: shall be "xvclk"
7+
- avdd-supply: Analog voltage supply, 2.8 volts
8+
- dovdd-supply: Digital I/O voltage supply, 1.8 volts
9+
- dvdd-supply: Digital core voltage supply, 1.2 volts
10+
- reset-gpios: Low active reset gpio
11+
12+
The device node shall contain one 'port' child node with an
13+
'endpoint' subnode for its digital output video port,
14+
in accordance with the video interface bindings defined in
15+
Documentation/devicetree/bindings/media/video-interfaces.txt.
16+
The endpoint optional property 'data-lanes' shall be "<1 2>".
17+
18+
Example:
19+
&i2c7 {
20+
ov5695: camera-sensor@36 {
21+
compatible = "ovti,ov5695";
22+
reg = <0x36>;
23+
pinctrl-names = "default";
24+
pinctrl-0 = <&clk_24m_cam>;
25+
26+
clocks = <&cru SCLK_TESTCLKOUT1>;
27+
clock-names = "xvclk";
28+
29+
avdd-supply = <&pp2800_cam>;
30+
dovdd-supply = <&pp1800>;
31+
dvdd-supply = <&pp1250_cam>;
32+
reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
33+
34+
port {
35+
wcam_out: endpoint {
36+
remote-endpoint = <&mipi_in_wcam>;
37+
data-lanes = <1 2>;
38+
};
39+
};
40+
};
41+
};

‎Documentation/devicetree/bindings/media/i2c/ov7670.txt‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,21 @@ Required Properties:
99
- clocks: reference to the xclk input clock.
1010
- clock-names: should be "xclk".
1111

12+
Required Endpoint Properties:
13+
- hsync-active: active state of the HSYNC signal, 0/1 for LOW/HIGH respectively.
14+
- vsync-active: active state of the VSYNC signal, 0/1 for LOW/HIGH respectively.
15+
1216
Optional Properties:
1317
- reset-gpios: reference to the GPIO connected to the resetb pin, if any.
1418
Active is low.
1519
- powerdown-gpios: reference to the GPIO connected to the pwdn pin, if any.
1620
Active is high.
21+
- ov7670,pclk-hb-disable: a boolean property to suppress pixel clock output
22+
signal during horizontal blankings.
1723

18-
The device node must contain one 'port' child node for its digital output
19-
video port, in accordance with the video interface bindings defined in
24+
The device node must contain one 'port' child node with one 'endpoint' child
25+
sub-node for its digital output video port, in accordance with the video
26+
interface bindings defined in:
2027
Documentation/devicetree/bindings/media/video-interfaces.txt.
2128

2229
Example:
@@ -34,8 +41,13 @@ Example:
3441
assigned-clocks = <&pck0>;
3542
assigned-clock-rates = <25000000>;
3643

44+
ov7670,pclk-hb-disable;
45+
3746
port {
3847
ov7670_0: endpoint {
48+
hsync-active = <0>;
49+
vsync-active = <0>;
50+
3951
remote-endpoint = <&isi_0>;
4052
};
4153
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
* Omnivision OV9650/OV9652 CMOS sensor
2+
3+
Required Properties:
4+
- compatible: shall be one of
5+
"ovti,ov9650"
6+
"ovti,ov9652"
7+
- clocks: reference to the xvclk input clock.
8+
9+
Optional Properties:
10+
- reset-gpios: reference to the GPIO connected to the resetb pin, if any.
11+
Active is high.
12+
- powerdown-gpios: reference to the GPIO connected to the pwdn pin, if any.
13+
Active is high.
14+
15+
The device node shall contain one 'port' child node with one child 'endpoint'
16+
subnode for its digital output video port, in accordance with the video
17+
interface bindings defined in Documentation/devicetree/bindings/media/
18+
video-interfaces.txt.
19+
20+
Example:
21+
22+
&i2c0 {
23+
ov9650: camera@30 {
24+
compatible = "ovti,ov9650";
25+
reg = <0x30>;
26+
reset-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_HIGH>;
27+
powerdown-gpios = <&axi_gpio_0 1 GPIO_ACTIVE_HIGH>;
28+
clocks = <&xclk>;
29+
30+
port {
31+
ov9650_0: endpoint {
32+
remote-endpoint = <&vcap1_in0>;
33+
};
34+
};
35+
};
36+
};

0 commit comments

Comments
 (0)