1 From f3dbbaa2a6c8ddfc22feac62e1fea6310a4fd659 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Fri, 31 Mar 2023 11:52:25 +0100
4 Subject: [PATCH] dt-bindings: media: i2c: Replace IMX708 sensor
5 binding documentation file
7 Replace the existing imx708.yaml file with sony,imx708.yaml that follows
8 the latest devicetree conventions for camera sensors.
10 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
12 .../devicetree/bindings/media/i2c/imx708.yaml | 119 ----------------
13 .../bindings/media/i2c/sony,imx708.yaml | 128 ++++++++++++++++++
15 3 files changed, 129 insertions(+), 120 deletions(-)
16 delete mode 100644 Documentation/devicetree/bindings/media/i2c/imx708.yaml
17 create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx708.yaml
19 --- a/Documentation/devicetree/bindings/media/i2c/imx708.yaml
22 -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25 -$id: http://devicetree.org/schemas/media/i2c/imx708.yaml#
26 -$schema: http://devicetree.org/meta-schemas/core.yaml#
28 -title: Sony 1/2.3-Inch 12Mpixel CMOS Digital Image Sensor
31 - - Naushir Patuck <naush@raspberypi.com>
34 - The Sony IMX708 is a 1/2.3-inch CMOS active pixel digital image sensor
35 - with an active array size of 4608H x 2592V. It is programmable through
36 - I2C interface. The I2C address is fixed to 0x1A as per sensor data sheet.
37 - Image data is sent through MIPI CSI-2, which is configured as either 2 or
45 - description: I2C device address
53 - Digital I/O voltage supply, 1.1 volts
57 - Analog1 voltage supply, 2.8 volts
61 - Analog2 voltage supply, 1.8 volts
65 - Digital core voltage supply, 1.8 volts
69 - Reference to the GPIO connected to the xclr pin, if any.
70 - Must be released (set high) after all supplies and INCK are applied.
72 - # See ../video-interfaces.txt for more details
81 - The sensor supports either two-lane, or four-lane operation.
82 - For two-lane operation the property must be set to <1 2>.
87 - clock-noncontinuous:
90 - MIPI CSI-2 clock is non-continuous if this property is present,
91 - otherwise it's continuous.
95 - - $ref: /schemas/types.yaml#/definitions/uint64-array
97 - Allowed data bus frequencies.
112 -additionalProperties: false
117 - #address-cells = <1>;
120 - imx708: sensor@1a {
121 - compatible = "sony,imx708";
123 - clocks = <&imx708_clk>;
124 - VANA1-supply = <&imx708_vana1>; /* 1.8v */
125 - VANA2-supply = <&imx708_vana2>; /* 2.8v */
126 - VDIG-supply = <&imx708_vdig>; /* 1.1v */
127 - VDDL-supply = <&imx708_vddl>; /* 1.8v */
130 - imx708_0: endpoint {
131 - remote-endpoint = <&csi1_ep>;
132 - data-lanes = <1 2>;
133 - clock-noncontinuous;
134 - link-frequencies = /bits/ 64 <450000000>;
142 +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx708.yaml
144 +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
147 +$id: http://devicetree.org/schemas/media/i2c/sony,imx708.yaml#
148 +$schema: http://devicetree.org/meta-schemas/core.yaml#
150 +title: Sony 1/2.3-Inch 12Mpixel CMOS Digital Image Sensor
153 + - Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>
156 + The Sony IMX708 is a 1/2.3-inch CMOS active pixel digital image sensor
157 + with an active array size of 4608H x 2592V. It is programmable through
158 + I2C interface. The I2C address is fixed to 0x1A as per sensor data sheet.
159 + Image data is sent through MIPI CSI-2, which is configured as either 2 or
173 + description: Input clock (6 to 27 MHz)
179 + Digital I/O voltage supply, 1.1 volts
183 + Analog1 voltage supply, 2.8 volts
187 + Analog2 voltage supply, 1.8 volts
191 + Digital core voltage supply, 1.8 volts
194 + description: Sensor reset (XCLR) GPIO
198 + $ref: /schemas/graph.yaml#/$defs/port-base
204 + $ref: /schemas/media/video-interfaces.yaml#
205 + unevaluatedProperties: false
219 + link-frequencies: true
225 + additionalProperties: false
238 +additionalProperties: false
242 + #include <dt-bindings/gpio/gpio.h>
245 + #address-cells = <1>;
248 + imx708: camera-sensor@1a {
249 + compatible = "sony,imx708";
252 + clocks = <&clk 90>;
253 + clock-names = "inck";
255 + vdig-supply = <&camera_vdig>;
256 + vana1-supply = <&camera_vana1>;
257 + vana2-supply = <&camera_vana2>;
258 + vddl-supply = <&camera_vddl>;
260 + reset-gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
263 + imx708_ep: endpoint {
264 + data-lanes = <1 2>;
265 + link-frequencies = /bits/ 64 <450000000>;
266 + remote-endpoint = <&csi_ep>;
274 @@ -19346,7 +19346,7 @@ M: Raspberry Pi Kernel Maintenance <kern
275 L: linux-media@vger.kernel.org
277 T: git git://linuxtv.org/media_tree.git
278 -F: Documentation/devicetree/bindings/media/i2c/imx708.yaml
279 +F: Documentation/devicetree/bindings/media/i2c/sony,imx708.yaml
280 F: drivers/media/i2c/imx708.c
282 SONY MEMORYSTICK SUBSYSTEM