blob: 3cad0e241ad6ffe04e2c199e5d2226ec33dac790 [file] [log] [blame]
Suresh Vankadara402d0ca2017-10-26 22:54:54 +05301/*
Ravi Kishore Tanuku6ef2d532018-01-22 14:18:27 +05302 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
Suresh Vankadara402d0ca2017-10-26 22:54:54 +05303 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14&soc {
15 led_flash_rear: qcom,camera-flash@0 {
16 cell-index = <0>;
17 reg = <0x00 0x00>;
18 compatible = "qcom,camera-flash";
19 flash-source = <&pm660l_flash0 &pm660l_flash1>;
20 torch-source = <&pm660l_torch0 &pm660l_torch1>;
21 switch-source = <&pm660l_switch0>;
22 status = "ok";
23 };
24
Ravi Kishore Tanuku6ef2d532018-01-22 14:18:27 +053025 led_flash_rear_aux: qcom,camera-flash@1 {
Suresh Vankadara402d0ca2017-10-26 22:54:54 +053026 cell-index = <1>;
27 reg = <0x01 0x00>;
28 compatible = "qcom,camera-flash";
Ravi Kishore Tanuku6ef2d532018-01-22 14:18:27 +053029 flash-source = <&pm660l_flash0 &pm660l_flash1>;
30 torch-source = <&pm660l_torch0 &pm660l_torch1>;
31 switch-source = <&pm660l_switch0>;
32 status = "ok";
33 };
34
35 led_flash_front: qcom,camera-flash@2 {
36 cell-index = <2>;
37 reg = <0x02 0x00>;
38 compatible = "qcom,camera-flash";
Suresh Vankadara402d0ca2017-10-26 22:54:54 +053039 flash-source = <&pm660l_flash2>;
40 torch-source = <&pm660l_torch2>;
41 switch-source = <&pm660l_switch1>;
42 status = "ok";
43 };
44
45 actuator_regulator: gpio-regulator@0 {
46 compatible = "regulator-fixed";
47 reg = <0x00 0x00>;
48 regulator-name = "actuator_regulator";
49 regulator-min-microvolt = <2800000>;
50 regulator-max-microvolt = <2800000>;
51 regulator-enable-ramp-delay = <100>;
52 enable-active-high;
53 gpio = <&tlmm 27 0>;
54 };
55
56 camera_ldo: gpio-regulator@2 {
57 compatible = "regulator-fixed";
58 reg = <0x02 0x00>;
59 regulator-name = "camera_ldo";
60 regulator-min-microvolt = <1352000>;
61 regulator-max-microvolt = <1352000>;
62 regulator-enable-ramp-delay = <233>;
63 enable-active-high;
64 gpio = <&pm660l_gpios 3 0>;
65 pinctrl-names = "default";
66 pinctrl-0 = <&camera_dvdd_en_default>;
67 vin-supply = <&pm660_s6>;
68 };
69
70 camera_rear_ldo: gpio-regulator@1 {
71 compatible = "regulator-fixed";
72 reg = <0x01 0x00>;
73 regulator-name = "camera_rear_ldo";
74 regulator-min-microvolt = <1352000>;
75 regulator-max-microvolt = <1352000>;
76 regulator-enable-ramp-delay = <135>;
77 enable-active-high;
78 gpio = <&pm660l_gpios 4 0>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&camera_rear_dvdd_en_default>;
81 vin-supply = <&pm660_s6>;
82 };
83
84 camera_vio_ldo: gpio-regulator@3 {
85 compatible = "regulator-fixed";
86 reg = <0x03 0x00>;
87 regulator-name = "camera_vio_ldo";
88 regulator-min-microvolt = <1800000>;
89 regulator-max-microvolt = <1800000>;
90 regulator-enable-ramp-delay = <233>;
91 enable-active-high;
92 gpio = <&tlmm 29 0>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&cam_sensor_rear_vio>;
95 vin-supply = <&pm660_s4>;
96 };
97
98 camera_vana_ldo: gpio-regulator@4 {
99 compatible = "regulator-fixed";
100 reg = <0x04 0x00>;
101 regulator-name = "camera_vana_ldo";
102 regulator-min-microvolt = <2850000>;
103 regulator-max-microvolt = <2850000>;
104 regulator-enable-ramp-delay = <233>;
105 enable-active-high;
106 gpio = <&tlmm 8 0>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&cam_sensor_rear_vana>;
109 vin-supply = <&pm660l_bob>;
110 };
111};
112
113&cam_cci {
Depeng Shao4d29a0c2017-11-02 16:12:03 +0800114 qcom,cam-res-mgr {
115 compatible = "qcom,cam-res-mgr";
116 status = "ok";
117 };
118
Suresh Vankadara402d0ca2017-10-26 22:54:54 +0530119 actuator_rear: qcom,actuator@0 {
120 cell-index = <0>;
121 reg = <0x0>;
122 compatible = "qcom,actuator";
123 cci-master = <0>;
124 cam_vaf-supply = <&actuator_regulator>;
125 regulator-names = "cam_vaf";
126 rgltr-cntrl-support;
127 rgltr-min-voltage = <2800000>;
128 rgltr-max-voltage = <2800000>;
129 rgltr-load-current = <0>;
130 };
131
132 actuator_front: qcom,actuator@1 {
133 cell-index = <1>;
134 reg = <0x1>;
135 compatible = "qcom,actuator";
136 cci-master = <1>;
137 cam_vaf-supply = <&actuator_regulator>;
138 regulator-names = "cam_vaf";
139 rgltr-cntrl-support;
140 rgltr-min-voltage = <2800000>;
141 rgltr-max-voltage = <2800000>;
142 rgltr-load-current = <0>;
143 };
144
145 ois_rear: qcom,ois@0 {
146 cell-index = <0>;
147 reg = <0x0>;
148 compatible = "qcom,ois";
149 cci-master = <0>;
150 cam_vaf-supply = <&actuator_regulator>;
151 regulator-names = "cam_vaf";
152 rgltr-cntrl-support;
153 rgltr-min-voltage = <2800000>;
154 rgltr-max-voltage = <2800000>;
155 rgltr-load-current = <0>;
156 status = "disabled";
157 };
158
159 eeprom_rear: qcom,eeprom@0 {
160 cell-index = <0>;
161 reg = <0>;
162 compatible = "qcom,eeprom";
163 cam_vio-supply = <&camera_vio_ldo>;
164 cam_vana-supply = <&camera_vana_ldo>;
165 cam_vdig-supply = <&camera_rear_ldo>;
166 cam_clk-supply = <&titan_top_gdsc>;
167 cam_vaf-supply = <&actuator_regulator>;
168 regulator-names = "cam_vio", "cam_vana", "cam_vdig",
169 "cam_clk", "cam_vaf";
170 rgltr-cntrl-support;
171 rgltr-min-voltage = <1800000 2850000 1352000 0 2800000>;
172 rgltr-max-voltage = <1800000 2850000 1352000 0 2800000>;
173 rgltr-load-current = <0 80000 105000 0 0>;
174 gpio-no-mux = <0>;
175 pinctrl-names = "cam_default", "cam_suspend";
176 pinctrl-0 = <&cam_sensor_mclk0_active
177 &cam_sensor_rear_active>;
178 pinctrl-1 = <&cam_sensor_mclk0_suspend
179 &cam_sensor_rear_suspend>;
180 gpios = <&tlmm 13 0>,
181 <&tlmm 30 0>;
182 gpio-reset = <1>;
183 gpio-req-tbl-num = <0 1>;
184 gpio-req-tbl-flags = <1 0>;
185 gpio-req-tbl-label = "CAMIF_MCLK0",
186 "CAM_RESET0";
187 sensor-mode = <0>;
188 cci-master = <0>;
189 status = "ok";
190 clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
191 clock-names = "cam_clk";
192 clock-cntl-level = "turbo";
193 clock-rates = <24000000>;
194 };
195
196 eeprom_rear_aux: qcom,eeprom@1 {
197 cell-index = <1>;
198 reg = <0x1>;
199 compatible = "qcom,eeprom";
200 cam_vio-supply = <&camera_vio_ldo>;
201 cam_vana-supply = <&camera_vana_ldo>;
202 cam_vdig-supply = <&camera_ldo>;
203 cam_clk-supply = <&titan_top_gdsc>;
204 cam_vaf-supply = <&actuator_regulator>;
205 regulator-names = "cam_vdig", "cam_vio", "cam_vana",
206 "cam_clk", "cam_vaf";
207 rgltr-cntrl-support;
208 rgltr-min-voltage = <1352000 1800000 2850000 0 2800000>;
209 rgltr-max-voltage = <1352000 1800000 2850000 0 2800000>;
Ravi Kishore Tanukuc02d9112017-11-14 12:04:41 +0530210 rgltr-load-current = <105000 0 80000 0 0>;
Suresh Vankadara402d0ca2017-10-26 22:54:54 +0530211 gpio-no-mux = <0>;
212 pinctrl-names = "cam_default", "cam_suspend";
213 pinctrl-0 = <&cam_sensor_mclk1_active
214 &cam_sensor_rear2_active>;
215 pinctrl-1 = <&cam_sensor_mclk1_suspend
216 &cam_sensor_rear2_suspend>;
217 gpios = <&tlmm 14 0>,
218 <&tlmm 28 0>;
219 gpio-reset = <1>;
220 gpio-req-tbl-num = <0 1>;
221 gpio-req-tbl-flags = <1 0>;
222 gpio-req-tbl-label = "CAMIF_MCLK1",
223 "CAM_RESET1";
224 sensor-position = <0>;
225 sensor-mode = <0>;
226 cci-master = <1>;
227 status = "ok";
228 clock-names = "cam_clk";
229 clock-cntl-level = "turbo";
230 clock-rates = <24000000>;
231 };
232
233 eeprom_front: qcom,eeprom@2 {
234 cell-index = <2>;
235 reg = <0x2>;
236 compatible = "qcom,eeprom";
237 cam_vio-supply = <&camera_vio_ldo>;
238 cam_vana-supply = <&camera_vana_ldo>;
239 cam_vdig-supply = <&camera_ldo>;
240 cam_clk-supply = <&titan_top_gdsc>;
241 cam_vaf-supply = <&actuator_regulator>;
242 regulator-names = "cam_vio", "cam_vana", "cam_vdig",
243 "cam_clk", "cam_vaf";
244 rgltr-cntrl-support;
245 rgltr-min-voltage = <1800000 2850000 1352000 0 2800000>;
246 rgltr-max-voltage = <1800000 2850000 1352000 0 2800000>;
Ravi Kishore Tanukuc02d9112017-11-14 12:04:41 +0530247 rgltr-load-current = <0 80000 105000 0 0>;
Suresh Vankadara402d0ca2017-10-26 22:54:54 +0530248 gpio-no-mux = <0>;
249 pinctrl-names = "cam_default", "cam_suspend";
250 pinctrl-0 = <&cam_sensor_mclk2_active
251 &cam_sensor_front_active>;
252 pinctrl-1 = <&cam_sensor_mclk2_suspend
253 &cam_sensor_front_suspend>;
254 gpios = <&tlmm 15 0>,
255 <&tlmm 9 0>;
256 gpio-reset = <1>;
257 gpio-req-tbl-num = <0 1>;
258 gpio-req-tbl-flags = <1 0>;
259 gpio-req-tbl-label = "CAMIF_MCLK2",
260 "CAM_RESET2";
261 sensor-mode = <0>;
262 cci-master = <1>;
263 status = "ok";
264 clocks = <&clock_camcc CAM_CC_MCLK2_CLK>;
265 clock-names = "cam_clk";
266 clock-cntl-level = "turbo";
267 clock-rates = <24000000>;
268 };
269
270 qcom,cam-sensor@0 {
271 cell-index = <0>;
272 compatible = "qcom,cam-sensor";
273 reg = <0x0>;
274 csiphy-sd-index = <0>;
275 sensor-position-roll = <270>;
276 sensor-position-pitch = <0>;
277 sensor-position-yaw = <180>;
278 led-flash-src = <&led_flash_rear>;
279 actuator-src = <&actuator_rear>;
280 ois-src = <&ois_rear>;
281 eeprom-src = <&eeprom_rear>;
282 cam_vio-supply = <&camera_vio_ldo>;
283 cam_vana-supply = <&camera_vana_ldo>;
284 cam_vdig-supply = <&camera_rear_ldo>;
285 cam_clk-supply = <&titan_top_gdsc>;
286 regulator-names = "cam_vio", "cam_vana", "cam_vdig",
287 "cam_clk";
288 rgltr-cntrl-support;
289 rgltr-min-voltage = <1800000 2850000 1352000 0>;
290 rgltr-max-voltage = <1800000 2850000 1352000 0>;
291 rgltr-load-current = <0 80000 105000 0>;
292 gpio-no-mux = <0>;
293 pinctrl-names = "cam_default", "cam_suspend";
294 pinctrl-0 = <&cam_sensor_mclk0_active
295 &cam_sensor_rear_active>;
296 pinctrl-1 = <&cam_sensor_mclk0_suspend
297 &cam_sensor_rear_suspend>;
298 gpios = <&tlmm 13 0>,
299 <&tlmm 30 0>;
300 gpio-reset = <1>;
301 gpio-req-tbl-num = <0 1>;
302 gpio-req-tbl-flags = <1 0>;
303 gpio-req-tbl-label = "CAMIF_MCLK0",
304 "CAM_RESET0";
305 sensor-mode = <0>;
306 cci-master = <0>;
307 status = "ok";
308 clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
309 clock-names = "cam_clk";
310 clock-cntl-level = "turbo";
311 clock-rates = <24000000>;
312 };
313
314 qcom,cam-sensor@1 {
315 cell-index = <1>;
316 compatible = "qcom,cam-sensor";
317 reg = <0x1>;
318 csiphy-sd-index = <1>;
319 sensor-position-roll = <90>;
320 sensor-position-pitch = <0>;
321 sensor-position-yaw = <180>;
Ravi Kishore Tanuku6ef2d532018-01-22 14:18:27 +0530322 led-flash-src = <&led_flash_rear_aux>;
Suresh Vankadara402d0ca2017-10-26 22:54:54 +0530323 eeprom-src = <&eeprom_rear_aux>;
324 cam_vio-supply = <&camera_vio_ldo>;
325 cam_vana-supply = <&camera_vana_ldo>;
326 cam_vdig-supply = <&camera_ldo>;
327 cam_clk-supply = <&titan_top_gdsc>;
328 regulator-names = "cam_vdig", "cam_vio", "cam_vana",
329 "cam_clk";
330 rgltr-cntrl-support;
331 rgltr-min-voltage = <1352000 1800000 2850000 0>;
332 rgltr-max-voltage = <1352000 1800000 2850000 0>;
333 rgltr-load-current = <105000 0 80000 0>;
334 gpio-no-mux = <0>;
335 pinctrl-names = "cam_default", "cam_suspend";
336 pinctrl-0 = <&cam_sensor_mclk1_active
337 &cam_sensor_rear2_active>;
338 pinctrl-1 = <&cam_sensor_mclk1_suspend
339 &cam_sensor_rear2_suspend>;
340 gpios = <&tlmm 14 0>,
341 <&tlmm 28 0>;
342 gpio-reset = <1>;
343 gpio-req-tbl-num = <0 1>;
344 gpio-req-tbl-flags = <1 0>;
345 gpio-req-tbl-label = "CAMIF_MCLK1",
346 "CAM_RESET1";
347 sensor-mode = <0>;
348 cci-master = <1>;
349 status = "ok";
350 clocks = <&clock_camcc CAM_CC_MCLK1_CLK>;
351 clock-names = "cam_clk";
352 clock-cntl-level = "turbo";
353 clock-rates = <24000000>;
354 };
355
356 qcom,cam-sensor@2 {
357 cell-index = <2>;
358 compatible = "qcom,cam-sensor";
359 reg = <0x02>;
360 csiphy-sd-index = <2>;
361 sensor-position-roll = <270>;
362 sensor-position-pitch = <0>;
363 sensor-position-yaw = <0>;
364 eeprom-src = <&eeprom_front>;
365 actuator-src = <&actuator_front>;
366 led-flash-src = <&led_flash_front>;
367 cam_vio-supply = <&camera_vio_ldo>;
368 cam_vana-supply = <&camera_vana_ldo>;
369 cam_vdig-supply = <&camera_ldo>;
370 cam_clk-supply = <&titan_top_gdsc>;
371 regulator-names = "cam_vio", "cam_vana", "cam_vdig",
372 "cam_clk";
373 rgltr-cntrl-support;
374 rgltr-min-voltage = <1800000 2850000 1352000 0>;
375 rgltr-max-voltage = <1800000 2850000 1352000 0>;
376 rgltr-load-current = <0 80000 105000 0>;
377 gpio-no-mux = <0>;
378 pinctrl-names = "cam_default", "cam_suspend";
379 pinctrl-0 = <&cam_sensor_mclk2_active
380 &cam_sensor_front_active>;
381 pinctrl-1 = <&cam_sensor_mclk2_suspend
382 &cam_sensor_front_suspend>;
383 gpios = <&tlmm 15 0>,
384 <&tlmm 9 0>;
385 gpio-reset = <1>;
386 gpio-req-tbl-num = <0 1>;
387 gpio-req-tbl-flags = <1 0>;
388 gpio-req-tbl-label = "CAMIF_MCLK2",
389 "CAM_RESET2";
390 sensor-mode = <0>;
391 cci-master = <1>;
392 status = "ok";
393 clocks = <&clock_camcc CAM_CC_MCLK2_CLK>;
394 clock-names = "cam_clk";
395 clock-cntl-level = "turbo";
396 clock-rates = <24000000>;
397 };
398};