]> git.ipfire.org Git - thirdparty/openwrt.git/blob
50ae214755b1cf711d8ffe7a8296619ce35aa95c
[thirdparty/openwrt.git] /
1 From b96da8c337de4fd4000d3b0dc7956181ffac79f4 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 11 May 2023 15:40:16 +0100
4 Subject: [PATCH 0460/1085] dt-bindings: media: imx258: Rename to include
5 vendor prefix
6
7 imx258.yaml doesn't include the vendor prefix of sony, so
8 rename to add it.
9 Update the id entry and MAINTAINERS to match.
10
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 .../bindings/media/i2c/{imx258.yaml => sony,imx258.yaml} | 2 +-
14 MAINTAINERS | 2 +-
15 2 files changed, 2 insertions(+), 2 deletions(-)
16 rename Documentation/devicetree/bindings/media/i2c/{imx258.yaml => sony,imx258.yaml} (97%)
17
18 --- a/Documentation/devicetree/bindings/media/i2c/imx258.yaml
19 +++ /dev/null
20 @@ -1,134 +0,0 @@
21 -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22 -%YAML 1.2
23 ----
24 -$id: http://devicetree.org/schemas/media/i2c/imx258.yaml#
25 -$schema: http://devicetree.org/meta-schemas/core.yaml#
26 -
27 -title: Sony IMX258 13 Mpixel CMOS Digital Image Sensor
28 -
29 -maintainers:
30 - - Krzysztof Kozlowski <krzk@kernel.org>
31 -
32 -description: |-
33 - IMX258 is a diagonal 5.867mm (Type 1/3.06) 13 Mega-pixel CMOS active pixel
34 - type stacked image sensor with a square pixel array of size 4208 x 3120. It
35 - is programmable through I2C interface. Image data is sent through MIPI
36 - CSI-2.
37 -
38 -properties:
39 - compatible:
40 - const: sony,imx258
41 -
42 - assigned-clocks: true
43 - assigned-clock-parents: true
44 - assigned-clock-rates: true
45 -
46 - clocks:
47 - description:
48 - Clock frequency from 6 to 27 MHz.
49 - maxItems: 1
50 -
51 - reg:
52 - maxItems: 1
53 -
54 - reset-gpios:
55 - description: |-
56 - Reference to the GPIO connected to the XCLR pin, if any.
57 -
58 - vana-supply:
59 - description:
60 - Analog voltage (VANA) supply, 2.7 V
61 -
62 - vdig-supply:
63 - description:
64 - Digital I/O voltage (VDIG) supply, 1.2 V
65 -
66 - vif-supply:
67 - description:
68 - Interface voltage (VIF) supply, 1.8 V
69 -
70 - # See ../video-interfaces.txt for more details
71 - port:
72 - $ref: /schemas/graph.yaml#/$defs/port-base
73 - additionalProperties: false
74 -
75 - properties:
76 - endpoint:
77 - $ref: /schemas/media/video-interfaces.yaml#
78 - unevaluatedProperties: false
79 -
80 - properties:
81 - data-lanes:
82 - oneOf:
83 - - items:
84 - - const: 1
85 - - const: 2
86 - - const: 3
87 - - const: 4
88 - - items:
89 - - const: 1
90 - - const: 2
91 -
92 - link-frequencies: true
93 -
94 - required:
95 - - data-lanes
96 - - link-frequencies
97 -
98 -required:
99 - - compatible
100 - - reg
101 - - port
102 -
103 -additionalProperties: false
104 -
105 -examples:
106 - - |
107 - i2c {
108 - #address-cells = <1>;
109 - #size-cells = <0>;
110 -
111 - sensor@6c {
112 - compatible = "sony,imx258";
113 - reg = <0x6c>;
114 - clocks = <&imx258_clk>;
115 -
116 - port {
117 - endpoint {
118 - remote-endpoint = <&csi1_ep>;
119 - data-lanes = <1 2 3 4>;
120 - link-frequencies = /bits/ 64 <320000000>;
121 - };
122 - };
123 - };
124 - };
125 -
126 - /* Oscillator on the camera board */
127 - imx258_clk: clk {
128 - compatible = "fixed-clock";
129 - #clock-cells = <0>;
130 - clock-frequency = <19200000>;
131 - };
132 -
133 - - |
134 - i2c {
135 - #address-cells = <1>;
136 - #size-cells = <0>;
137 -
138 - sensor@6c {
139 - compatible = "sony,imx258";
140 - reg = <0x6c>;
141 - clocks = <&imx258_clk>;
142 -
143 - assigned-clocks = <&imx258_clk>;
144 - assigned-clock-rates = <19200000>;
145 -
146 - port {
147 - endpoint {
148 - remote-endpoint = <&csi1_ep>;
149 - data-lanes = <1 2 3 4>;
150 - link-frequencies = /bits/ 64 <633600000>;
151 - };
152 - };
153 - };
154 - };
155 --- /dev/null
156 +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml
157 @@ -0,0 +1,134 @@
158 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
159 +%YAML 1.2
160 +---
161 +$id: http://devicetree.org/schemas/media/i2c/sony,imx258.yaml#
162 +$schema: http://devicetree.org/meta-schemas/core.yaml#
163 +
164 +title: Sony IMX258 13 Mpixel CMOS Digital Image Sensor
165 +
166 +maintainers:
167 + - Krzysztof Kozlowski <krzk@kernel.org>
168 +
169 +description: |-
170 + IMX258 is a diagonal 5.867mm (Type 1/3.06) 13 Mega-pixel CMOS active pixel
171 + type stacked image sensor with a square pixel array of size 4208 x 3120. It
172 + is programmable through I2C interface. Image data is sent through MIPI
173 + CSI-2.
174 +
175 +properties:
176 + compatible:
177 + const: sony,imx258
178 +
179 + assigned-clocks: true
180 + assigned-clock-parents: true
181 + assigned-clock-rates: true
182 +
183 + clocks:
184 + description:
185 + Clock frequency from 6 to 27 MHz.
186 + maxItems: 1
187 +
188 + reg:
189 + maxItems: 1
190 +
191 + reset-gpios:
192 + description: |-
193 + Reference to the GPIO connected to the XCLR pin, if any.
194 +
195 + vana-supply:
196 + description:
197 + Analog voltage (VANA) supply, 2.7 V
198 +
199 + vdig-supply:
200 + description:
201 + Digital I/O voltage (VDIG) supply, 1.2 V
202 +
203 + vif-supply:
204 + description:
205 + Interface voltage (VIF) supply, 1.8 V
206 +
207 + # See ../video-interfaces.txt for more details
208 + port:
209 + $ref: /schemas/graph.yaml#/$defs/port-base
210 + additionalProperties: false
211 +
212 + properties:
213 + endpoint:
214 + $ref: /schemas/media/video-interfaces.yaml#
215 + unevaluatedProperties: false
216 +
217 + properties:
218 + data-lanes:
219 + oneOf:
220 + - items:
221 + - const: 1
222 + - const: 2
223 + - const: 3
224 + - const: 4
225 + - items:
226 + - const: 1
227 + - const: 2
228 +
229 + link-frequencies: true
230 +
231 + required:
232 + - data-lanes
233 + - link-frequencies
234 +
235 +required:
236 + - compatible
237 + - reg
238 + - port
239 +
240 +additionalProperties: false
241 +
242 +examples:
243 + - |
244 + i2c {
245 + #address-cells = <1>;
246 + #size-cells = <0>;
247 +
248 + sensor@6c {
249 + compatible = "sony,imx258";
250 + reg = <0x6c>;
251 + clocks = <&imx258_clk>;
252 +
253 + port {
254 + endpoint {
255 + remote-endpoint = <&csi1_ep>;
256 + data-lanes = <1 2 3 4>;
257 + link-frequencies = /bits/ 64 <320000000>;
258 + };
259 + };
260 + };
261 + };
262 +
263 + /* Oscillator on the camera board */
264 + imx258_clk: clk {
265 + compatible = "fixed-clock";
266 + #clock-cells = <0>;
267 + clock-frequency = <19200000>;
268 + };
269 +
270 + - |
271 + i2c {
272 + #address-cells = <1>;
273 + #size-cells = <0>;
274 +
275 + sensor@6c {
276 + compatible = "sony,imx258";
277 + reg = <0x6c>;
278 + clocks = <&imx258_clk>;
279 +
280 + assigned-clocks = <&imx258_clk>;
281 + assigned-clock-rates = <19200000>;
282 +
283 + port {
284 + endpoint {
285 + remote-endpoint = <&csi1_ep>;
286 + data-lanes = <1 2 3 4>;
287 + link-frequencies = /bits/ 64 <633600000>;
288 + };
289 + };
290 + };
291 + };
292 --- a/MAINTAINERS
293 +++ b/MAINTAINERS
294 @@ -20014,7 +20014,7 @@ M: Sakari Ailus <sakari.ailus@linux.inte
295 L: linux-media@vger.kernel.org
296 S: Maintained
297 T: git git://linuxtv.org/media_tree.git
298 -F: Documentation/devicetree/bindings/media/i2c/imx258.yaml
299 +F: Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml
300 F: drivers/media/i2c/imx258.c
301
302 SONY IMX274 SENSOR DRIVER