bcm27xx: import latest patches from the RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0815-media-dt-bindings-media-i2c-Add-IMX290-CMOS-sensor-b.patch
1 From 6bbb873c79b9bb0b3ca95fa4a4fe6cfd0ebe9d2c Mon Sep 17 00:00:00 2001
2 From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
3 Date: Fri, 4 Oct 2019 13:05:24 -0300
4 Subject: [PATCH] media: dt-bindings: media: i2c: Add IMX290 CMOS
5 sensor binding
6
7 Commit 8a97a4676f8b1badcd9cfbed2b081342847bb1b1 upstream.
8
9 Add devicetree binding for IMX290 CMOS image sensor. Let's also
10 add MAINTAINERS entry for the binding and driver.
11
12 Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
13 Reviewed-by: Rob Herring <robh@kernel.org>
14 Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
15 Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
16 ---
17 .../devicetree/bindings/media/i2c/imx290.txt | 57 +++++++++++++++++++
18 MAINTAINERS | 8 +++
19 2 files changed, 65 insertions(+)
20 create mode 100644 Documentation/devicetree/bindings/media/i2c/imx290.txt
21
22 --- /dev/null
23 +++ b/Documentation/devicetree/bindings/media/i2c/imx290.txt
24 @@ -0,0 +1,57 @@
25 +* Sony IMX290 1/2.8-Inch CMOS Image Sensor
26 +
27 +The Sony IMX290 is a 1/2.8-Inch CMOS Solid-state image sensor with
28 +Square Pixel for Color Cameras. It is programmable through I2C and 4-wire
29 +interfaces. The sensor output is available via CMOS logic parallel SDR output,
30 +Low voltage LVDS DDR output and CSI-2 serial data output. The CSI-2 bus is the
31 +default. No bindings have been defined for the other busses.
32 +
33 +Required Properties:
34 +- compatible: Should be "sony,imx290"
35 +- reg: I2C bus address of the device
36 +- clocks: Reference to the xclk clock.
37 +- clock-names: Should be "xclk".
38 +- clock-frequency: Frequency of the xclk clock in Hz.
39 +- vdddo-supply: Sensor digital IO regulator.
40 +- vdda-supply: Sensor analog regulator.
41 +- vddd-supply: Sensor digital core regulator.
42 +
43 +Optional Properties:
44 +- reset-gpios: Sensor reset GPIO
45 +
46 +The imx290 device node should contain one 'port' child node with
47 +an 'endpoint' subnode. For further reading on port node refer to
48 +Documentation/devicetree/bindings/media/video-interfaces.txt.
49 +
50 +Required Properties on endpoint:
51 +- data-lanes: check ../video-interfaces.txt
52 +- link-frequencies: check ../video-interfaces.txt
53 +- remote-endpoint: check ../video-interfaces.txt
54 +
55 +Example:
56 + &i2c1 {
57 + ...
58 + imx290: camera-sensor@1a {
59 + compatible = "sony,imx290";
60 + reg = <0x1a>;
61 +
62 + reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>;
63 + pinctrl-names = "default";
64 + pinctrl-0 = <&camera_rear_default>;
65 +
66 + clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
67 + clock-names = "xclk";
68 + clock-frequency = <37125000>;
69 +
70 + vdddo-supply = <&camera_vdddo_1v8>;
71 + vdda-supply = <&camera_vdda_2v8>;
72 + vddd-supply = <&camera_vddd_1v5>;
73 +
74 + port {
75 + imx290_ep: endpoint {
76 + data-lanes = <1 2 3 4>;
77 + link-frequencies = /bits/ 64 <445500000>;
78 + remote-endpoint = <&csiphy0_ep>;
79 + };
80 + };
81 + };
82 --- a/MAINTAINERS
83 +++ b/MAINTAINERS
84 @@ -15200,6 +15200,14 @@ S: Maintained
85 F: drivers/media/i2c/imx274.c
86 F: Documentation/devicetree/bindings/media/i2c/imx274.txt
87
88 +SONY IMX290 SENSOR DRIVER
89 +M: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
90 +L: linux-media@vger.kernel.org
91 +T: git git://linuxtv.org/media_tree.git
92 +S: Maintained
93 +F: drivers/media/i2c/imx290.c
94 +F: Documentation/devicetree/bindings/media/i2c/imx290.txt
95 +
96 SONY IMX319 SENSOR DRIVER
97 M: Bingbu Cao <bingbu.cao@intel.com>
98 L: linux-media@vger.kernel.org