Skip to content

Commit 5d352e6

Browse files
committed
Merge tag 'media/v4.15-1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media updates from Mauro Carvalho Chehab: - Documentation for digital TV (both kAPI and uAPI) are now in sync with the implementation (except for legacy/deprecated ioctls). This is a major step, as there were always a gap there - New sensor driver: imx274 - New cec driver: cec-gpio - New platform driver for rockship rga and tegra CEC - New RC driver: tango-ir - Several cleanups at atomisp driver - Core improvements for RC, CEC, V4L2 async probing support and DVB - Lots of drivers cleanup, fixes and improvements. * tag 'media/v4.15-1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (332 commits) dvb_frontend: don't use-after-free the frontend struct media: dib0700: fix invalid dvb_detach argument media: v4l2-ctrls: Don't validate BITMASK twice media: s5p-mfc: fix lockdep warning media: dvb-core: always call invoke_release() in fe_free() media: usb: dvb-usb-v2: dvb_usb_core: remove redundant code in dvb_usb_fe_sleep media: au0828: make const array addr_list static media: cx88: make const arrays default_addr_list and pvr2000_addr_list static media: drxd: make const array fastIncrDecLUT static media: usb: fix spelling mistake: "synchronuously" -> "synchronously" media: ddbridge: fix build warnings media: av7110: avoid 2038 overflow in debug print media: Don't do DMA on stack for firmware upload in the AS102 driver media: v4l: async: fix unregister for implicitly registered sub-device notifiers media: v4l: async: fix return of unitialized variable ret media: imx274: fix missing return assignment from call to imx274_mode_regs media: camss-vfe: always initialize reg at vfe_set_xbar_cfg() media: atomisp: make function calls cleaner media: atomisp: get rid of storage_class.h media: atomisp: get rid of wrong stddef.h include ...
2 parents 93ea0eb + f2ecc3d commit 5d352e6

498 files changed

Lines changed: 12046 additions & 22609 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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
* HDMI CEC GPIO driver
2+
3+
The HDMI CEC GPIO module supports CEC implementations where the CEC line
4+
is hooked up to a pull-up GPIO line and - optionally - the HPD line is
5+
hooked up to another GPIO line.
6+
7+
Required properties:
8+
- compatible: value must be "cec-gpio".
9+
- cec-gpios: gpio that the CEC line is connected to. The line should be
10+
tagged as open drain.
11+
12+
If the CEC line is associated with an HDMI receiver/transmitter, then the
13+
following property is also required:
14+
15+
- hdmi-phandle - phandle to the HDMI controller, see also cec.txt.
16+
17+
If the CEC line is not associated with an HDMI receiver/transmitter, then
18+
the following property is optional:
19+
20+
- hpd-gpios: gpio that the HPD line is connected to.
21+
22+
Example for the Raspberry Pi 3 where the CEC line is connected to
23+
pin 26 aka BCM7 aka CE1 on the GPIO pin header and the HPD line is
24+
connected to pin 11 aka BCM17:
25+
26+
#include <dt-bindings/gpio/gpio.h>
27+
28+
cec-gpio {
29+
compatible = "cec-gpio";
30+
cec-gpios = <&gpio 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
31+
hpd-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
32+
};

‎Documentation/devicetree/bindings/media/exynos5-gsc.txt‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
G-Scaler is used for scaling and color space conversion on EXYNOS5 SoCs.
44

55
Required properties:
6-
- compatible: should be "samsung,exynos5-gsc" (for Exynos 5250, 5420 and
7-
5422 SoCs) or "samsung,exynos5433-gsc" (Exynos 5433)
6+
- compatible: should be one of
7+
"samsung,exynos5250-gsc"
8+
"samsung,exynos5420-gsc"
9+
"samsung,exynos5433-gsc"
10+
"samsung,exynos5-gsc" (deprecated)
811
- reg: should contain G-Scaler physical address location and length.
912
- interrupts: should contain G-Scaler interrupt number
1013

@@ -15,7 +18,7 @@ Optional properties:
1518
Example:
1619

1720
gsc_0: gsc@0x13e00000 {
18-
compatible = "samsung,exynos5-gsc";
21+
compatible = "samsung,exynos5250-gsc";
1922
reg = <0x13e00000 0x1000>;
2023
interrupts = <0 85 0>;
2124
};
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
* Sony 1/2.5-Inch 8.51Mp CMOS Digital Image Sensor
2+
3+
The Sony imx274 is a 1/2.5-inch CMOS active pixel digital image sensor with
4+
an active array size of 3864H x 2202V. It is programmable through I2C
5+
interface. The I2C address is fixed to 0x1a as per sensor data sheet.
6+
Image data is sent through MIPI CSI-2, which is configured as 4 lanes
7+
at 1440 Mbps.
8+
9+
10+
Required Properties:
11+
- compatible: value should be "sony,imx274" for imx274 sensor
12+
- reg: I2C bus address of the device
13+
14+
Optional Properties:
15+
- reset-gpios: Sensor reset GPIO
16+
17+
The imx274 device node should contain one 'port' child node with
18+
an 'endpoint' subnode. For further reading on port node refer to
19+
Documentation/devicetree/bindings/media/video-interfaces.txt.
20+
21+
Example:
22+
sensor@1a {
23+
compatible = "sony,imx274";
24+
reg = <0x1a>;
25+
#address-cells = <1>;
26+
#size-cells = <0>;
27+
reset-gpios = <&gpio_sensor 0 0>;
28+
port {
29+
sensor_out: endpoint {
30+
remote-endpoint = <&csiss_in>;
31+
};
32+
};
33+
};

‎Documentation/devicetree/bindings/media/i2c/nokia,smia.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Optional properties
2727
- nokia,nvm-size: The size of the NVM, in bytes. If the size is not given,
2828
the NVM contents will not be read.
2929
- reset-gpios: XSHUTDOWN GPIO
30+
- flash-leds: See ../video-interfaces.txt
31+
- lens-focus: See ../video-interfaces.txt
3032

3133

3234
Endpoint node mandatory properties
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
device-tree bindings for rockchip 2D raster graphic acceleration controller (RGA)
2+
3+
RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D
4+
graphics operations, such as point/line drawing, image scaling, rotation,
5+
BitBLT, alpha blending and image blur/sharpness.
6+
7+
Required properties:
8+
- compatible: value should be one of the following
9+
"rockchip,rk3288-rga";
10+
"rockchip,rk3399-rga";
11+
12+
- interrupts: RGA interrupt specifier.
13+
14+
- clocks: phandle to RGA sclk/hclk/aclk clocks
15+
16+
- clock-names: should be "aclk", "hclk" and "sclk"
17+
18+
- resets: Must contain an entry for each entry in reset-names.
19+
See ../reset/reset.txt for details.
20+
- reset-names: should be "core", "axi" and "ahb"
21+
22+
Example:
23+
SoC-specific DT entry:
24+
rga: rga@ff680000 {
25+
compatible = "rockchip,rk3399-rga";
26+
reg = <0xff680000 0x10000>;
27+
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
28+
clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
29+
clock-names = "aclk", "hclk", "sclk";
30+
31+
resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
32+
reset-names = "core, "axi", "ahb";
33+
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Sigma Designs Tango IR NEC/RC-5/RC-6 decoder (SMP86xx and SMP87xx)
2+
3+
Required properties:
4+
5+
- compatible: "sigma,smp8642-ir"
6+
- reg: address/size of NEC+RC5 area, address/size of RC6 area
7+
- interrupts: spec for IR IRQ
8+
- clocks: spec for IR clock (typically the crystal oscillator)
9+
10+
Optional properties:
11+
12+
- linux,rc-map-name: see Documentation/devicetree/bindings/media/rc.txt
13+
14+
Example:
15+
16+
ir@10518 {
17+
compatible = "sigma,smp8642-ir";
18+
reg = <0x10518 0x18>, <0x105e0 0x1c>;
19+
interrupts = <21 IRQ_TYPE_EDGE_RISING>;
20+
clocks = <&xtal>;
21+
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
* Tegra HDMI CEC hardware
2+
3+
The HDMI CEC module is present in Tegra SoCs and its purpose is to
4+
handle communication between HDMI connected devices over the CEC bus.
5+
6+
Required properties:
7+
- compatible : value should be one of the following:
8+
"nvidia,tegra114-cec"
9+
"nvidia,tegra124-cec"
10+
"nvidia,tegra210-cec"
11+
- reg : Physical base address of the IP registers and length of memory
12+
mapped region.
13+
- interrupts : HDMI CEC interrupt number to the CPU.
14+
- clocks : from common clock binding: handle to HDMI CEC clock.
15+
- clock-names : from common clock binding: must contain "cec",
16+
corresponding to the entry in the clocks property.
17+
- hdmi-phandle : phandle to the HDMI controller, see also cec.txt.
18+
19+
Example:
20+
21+
cec@70015000 {
22+
compatible = "nvidia,tegra124-cec";
23+
reg = <0x0 0x70015000 0x0 0x00001000>;
24+
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
25+
clocks = <&tegra_car TEGRA124_CLK_CEC>;
26+
clock-names = "cec";
27+
};

‎Documentation/devicetree/bindings/media/video-interfaces.txt‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ divided into two separate ITU-R BT.656 8-bit busses. In such case bus-width
5555
and data-shift properties can be used to assign physical data lines to each
5656
endpoint node (logical bus).
5757

58+
Documenting bindings for devices
59+
--------------------------------
60+
61+
All required and optional bindings the device supports shall be explicitly
62+
documented in device DT binding documentation. This also includes port and
63+
endpoint nodes for the device, including unit-addresses and reg properties where
64+
relevant.
65+
66+
Please also see Documentation/devicetree/bindings/graph.txt .
5867

5968
Required properties
6069
-------------------
@@ -67,6 +76,16 @@ are required in a relevant parent node:
6776
identifier, should be 1.
6877
- #size-cells : should be zero.
6978

79+
80+
Optional properties
81+
-------------------
82+
83+
- flash-leds: An array of phandles, each referring to a flash LED, a sub-node
84+
of the LED driver device node.
85+
86+
- lens-focus: A phandle to the node of the focus lens controller.
87+
88+
7089
Optional endpoint properties
7190
----------------------------
7291

@@ -99,7 +118,10 @@ Optional endpoint properties
99118
determines the logical lane number, while the value of an entry indicates
100119
physical lane, e.g. for 2-lane MIPI CSI-2 bus we could have
101120
"data-lanes = <1 2>;", assuming the clock lane is on hardware lane 0.
102-
This property is valid for serial busses only (e.g. MIPI CSI-2).
121+
If the hardware does not support lane reordering, monotonically
122+
incremented values shall be used from 0 or 1 onwards, depending on
123+
whether or not there is also a clock lane. This property is valid for
124+
serial busses only (e.g. MIPI CSI-2).
103125
- clock-lanes: an array of physical clock lane indexes. Position of an entry
104126
determines the logical lane number, while the value of an entry indicates
105127
physical lane, e.g. for a MIPI CSI-2 bus we could have "clock-lanes = <0>;",

‎Documentation/media/cec.h.rst.exceptions‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ ignore define CEC_VENDOR_ID_NONE
2424
ignore define CEC_MODE_INITIATOR_MSK
2525
ignore define CEC_MODE_FOLLOWER_MSK
2626

27-
ignore define CEC_EVENT_FL_INITIAL_STATE
28-
2927
# Part of CEC 2.0 spec - shouldn't be documented too?
3028
ignore define CEC_LOG_ADDR_TV
3129
ignore define CEC_LOG_ADDR_RECORD_1

‎Documentation/media/kapi/cec-core.rst‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ CEC_TX_STATUS_LOW_DRIVE:
227227
retransmission.
228228

229229
CEC_TX_STATUS_ERROR:
230-
some unspecified error occurred: this can be one of
231-
the previous two if the hardware cannot differentiate or something
230+
some unspecified error occurred: this can be one of ARB_LOST
231+
or LOW_DRIVE if the hardware cannot differentiate or something
232232
else entirely.
233233

234234
CEC_TX_STATUS_MAX_RETRIES:
@@ -238,6 +238,9 @@ CEC_TX_STATUS_MAX_RETRIES:
238238
doesn't have to make another attempt to transmit the message
239239
since the hardware did that already.
240240

241+
The hardware must be able to differentiate between OK, NACK and 'something
242+
else'.
243+
241244
The \*_cnt arguments are the number of error conditions that were seen.
242245
This may be 0 if no information is available. Drivers that do not support
243246
hardware retry can just set the counter corresponding to the transmit error

0 commit comments

Comments
 (0)