blob: 41346118441ac83664b2646aad6084379c3c43d6 [file] [log] [blame]
Vijay kumar Tumati299fec02018-02-24 15:30:31 +05301/*
Kavya Nunnaba92b502019-01-28 15:25:47 +05302 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
Vijay kumar Tumati299fec02018-02-24 15:30:31 +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&cci {
Tengfei Fanf08a94f2019-04-12 15:59:52 +080015 #address-cells = <1>;
16 #size-cells = <0>;
17
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053018 actuator0: qcom,actuator@0 {
19 cell-index = <0>;
20 reg = <0x0>;
21 compatible = "qcom,actuator";
22 qcom,cci-master = <0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053023 qcom,cam-vreg-name = "cam_vaf";
24 qcom,cam-vreg-min-voltage = <2850000>;
25 qcom,cam-vreg-max-voltage = <2850000>;
26 qcom,cam-vreg-op-mode = <80000>;
27 };
28
29 actuator1: qcom,actuator@1 {
30 cell-index = <1>;
31 reg = <0x1>;
32 compatible = "qcom,actuator";
33 qcom,cci-master = <1>;
34 cam_vaf-supply = <&pm8953_l17>;
35 qcom,cam-vreg-name = "cam_vaf";
36 qcom,cam-vreg-min-voltage = <2850000>;
37 qcom,cam-vreg-max-voltage = <2850000>;
38 qcom,cam-vreg-op-mode = <80000>;
39 };
40
41 eeprom0: qcom,eeprom@0 {
42 cell-index = <0>;
43 compatible = "qcom,eeprom";
44 qcom,cci-master = <0>;
45 reg = <0x0>;
frankcheng211a78f2020-05-09 20:59:58 +080046 cam_vana-supply = <&pm8953_l22>;
47 cam_v_custom1-supply = <&pm8953_l2>;
48 qcom,cam-vreg-name = "cam_vana", "cam_v_custom1";
49 qcom,cam-vreg-min-voltage = <2800000 1175000>;
50 qcom,cam-vreg-max-voltage = <2800000 1175000>;
51 qcom,cam-vreg-op-mode = <80000 105000>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053052 pinctrl-names = "cam_default", "cam_suspend";
frankcheng211a78f2020-05-09 20:59:58 +080053 pinctrl-0 = <&cam_sensor_mclk0_default &cam_sensor_rear_default>;
54 pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053055 gpios = <&tlmm 26 0>,
56 <&tlmm 40 0>,
frankcheng211a78f2020-05-09 20:59:58 +080057 <&tlmm 130 0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053058 qcom,gpio-reset = <1>;
frankcheng211a78f2020-05-09 20:59:58 +080059 qcom,gpio-vio = <2>;
60 qcom,gpio-req-tbl-num = <0 1 2>;
61 qcom,gpio-req-tbl-flags = <1 0 0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053062 qcom,gpio-req-tbl-label = "CAMIF_MCLK0",
63 "CAM_RESET0",
frankcheng211a78f2020-05-09 20:59:58 +080064 "CAM_VIO";
65 qcom,sensor-position = <0>;
66 qcom,sensor-mode = <0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053067 status = "ok";
68 clocks = <&clock_gcc clk_mclk0_clk_src>,
69 <&clock_gcc clk_gcc_camss_mclk0_clk>;
70 clock-names = "cam_src_clk", "cam_clk";
frankcheng211a78f2020-05-09 20:59:58 +080071 qcom,clock-rates = <24000000 0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053072 };
73
74 eeprom1: qcom,eeprom@1 {
75 cell-index = <1>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053076 compatible = "qcom,eeprom";
Samyukta Mogily304ac0d2018-08-31 12:21:28 +053077 qcom,cci-master = <1>;
frankcheng211a78f2020-05-09 20:59:58 +080078 reg = <0x1>;
79
Samyukta Mogily304ac0d2018-08-31 12:21:28 +053080 cam_vana-supply = <&pm8953_l22>;
frankcheng211a78f2020-05-09 20:59:58 +080081 qcom,cam-vreg-name = "cam_vana";
82 qcom,cam-vreg-min-voltage = <2800000>;
83 qcom,cam-vreg-max-voltage = <2800000>;
84 qcom,cam-vreg-op-mode = <80000>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053085 qcom,gpio-no-mux = <0>;
frankcheng211a78f2020-05-09 20:59:58 +080086
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053087 pinctrl-names = "cam_default", "cam_suspend";
88 pinctrl-0 = <&cam_sensor_mclk1_default
frankcheng211a78f2020-05-09 20:59:58 +080089 &cam_sensor_front1_default
90 &cam_sensor_front1_vdig_default
91 &cam_sensor_front1_vio_default>;
Samyukta Mogily304ac0d2018-08-31 12:21:28 +053092 pinctrl-1 = <&cam_sensor_mclk1_sleep
frankcheng211a78f2020-05-09 20:59:58 +080093 &cam_sensor_front1_sleep
94 &cam_sensor_front1_vdig_sleep
95 &cam_sensor_front1_vio_sleep>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +053096
frankcheng211a78f2020-05-09 20:59:58 +080097 gpios = <&tlmm 27 0>,
98 <&tlmm 129 0>,
99 <&tlmm 46 0>,
100 <&tlmm 130 0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530101 qcom,gpio-reset = <1>;
frankcheng211a78f2020-05-09 20:59:58 +0800102 qcom,gpio-vdig = <2>;
103 qcom,gpio-vio = <3>;
104 qcom,gpio-req-tbl-num = <0 1 2 3>;
105 qcom,gpio-req-tbl-flags = <1 0 0 0>;
106 qcom,gpio-req-tbl-label = "CAMIF_MCLK2",
107 "CAM_RESET2",
108 "CAM_VDIG2",
109 "CAM_VIO2";
110
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530111 status = "ok";
frankcheng211a78f2020-05-09 20:59:58 +0800112 qcom,cam-power-seq-val = "sensor_gpio_reset",
113 "cam_vana", "sensor_gpio_vdig",
114 "sensor_gpio_vio", "sensor_gpio_reset",
115 "sensor_cam_mclk";
116 qcom,cam-power-seq-type = "sensor_gpio",
117 "sensor_vreg", "sensor_gpio",
118 "sensor_gpio", "sensor_gpio",
119 "sensor_clk";
120 qcom,cam-power-seq-cfg-val = <0 1 1 1 1 24000000>;
121 qcom,cam-power-seq-delay = <5 1 1 3 3 10>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530122 clock-names = "cam_src_clk", "cam_clk";
frankcheng211a78f2020-05-09 20:59:58 +0800123 clocks = <&clock_gcc clk_mclk1_clk_src>,
124 <&clock_gcc clk_gcc_camss_mclk1_clk>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530125 qcom,clock-rates = <19200000 0>;
126 };
127
Vijay kumar Tumati408b0962018-03-16 17:28:31 +0530128 camera0: qcom,camera@0 {
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530129 cell-index = <0>;
130 compatible = "qcom,camera";
131 reg = <0x0>;
132 qcom,csiphy-sd-index = <0>;
133 qcom,csid-sd-index = <0>;
134 qcom,mount-angle = <270>;
Kavya Nunnaf62523f2019-11-28 17:44:02 +0530135 qcom,led-flash-src = <&led_flash0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530136 qcom,eeprom-src = <&eeprom0>;
137 qcom,actuator-src = <&actuator0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530138 cam_vana-supply = <&pm8953_l22>;
frankcheng211a78f2020-05-09 20:59:58 +0800139 cam_v_custom1-supply = <&pm8953_l2>;
140 qcom,cam-vreg-name = "cam_vana", "cam_v_custom1";
141 qcom,cam-vreg-min-voltage = <2800000 1175000>;
142 qcom,cam-vreg-max-voltage = <2800000 1175000>;
143 qcom,cam-vreg-op-mode = <80000 105000>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530144 pinctrl-names = "cam_default", "cam_suspend";
145 pinctrl-0 = <&cam_sensor_mclk0_default
146 &cam_sensor_rear_default
147 &cam_sensor_rear_vana>;
148 pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep
149 &cam_sensor_rear_vana_sleep>;
150 gpios = <&tlmm 26 0>,
151 <&tlmm 40 0>,
frankcheng211a78f2020-05-09 20:59:58 +0800152 <&tlmm 130 0>,
153 <&tlmm 128 0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530154 qcom,gpio-reset = <1>;
frankcheng211a78f2020-05-09 20:59:58 +0800155 qcom,gpio-vio = <2>;
156 qcom,gpio-vaf = <3>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530157 qcom,gpio-req-tbl-num = <0 1 2 3>;
158 qcom,gpio-req-tbl-flags = <1 0 0 0>;
159 qcom,gpio-req-tbl-label = "CAMIF_MCLK0",
160 "CAM_RESET0",
frankcheng211a78f2020-05-09 20:59:58 +0800161 "CAM_VIO",
162 "CAM_VAF";
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530163 qcom,sensor-position = <0>;
164 qcom,sensor-mode = <0>;
165 qcom,cci-master = <0>;
166 status = "ok";
167 clocks = <&clock_gcc clk_mclk0_clk_src>,
168 <&clock_gcc clk_gcc_camss_mclk0_clk>;
169 clock-names = "cam_src_clk", "cam_clk";
170 qcom,clock-rates = <24000000 0>;
171 };
172
frankcheng211a78f2020-05-09 20:59:58 +0800173 camera2: qcom,camera@2 {
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530174 cell-index = <2>;
175 compatible = "qcom,camera";
176 reg = <0x02>;
177 qcom,csiphy-sd-index = <2>;
frankcheng211a78f2020-05-09 20:59:58 +0800178 qcom,csid-sd-index = <1>;
179 qcom,mount-angle = <270>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530180 qcom,eeprom-src = <&eeprom1>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530181 cam_vana-supply = <&pm8953_l22>;
frankcheng211a78f2020-05-09 20:59:58 +0800182 qcom,cam-vreg-name = "cam_vana";
183 qcom,cam-vreg-min-voltage = <2800000>;
184 qcom,cam-vreg-max-voltage = <2800000>;
185 qcom,cam-vreg-op-mode = <80000>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530186 qcom,gpio-no-mux = <0>;
frankcheng211a78f2020-05-09 20:59:58 +0800187
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530188 pinctrl-names = "cam_default", "cam_suspend";
189 pinctrl-0 = <&cam_sensor_mclk1_default
frankcheng211a78f2020-05-09 20:59:58 +0800190 &cam_sensor_front1_default
191 &cam_sensor_front1_vdig_default
192 &cam_sensor_front1_vio_default>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530193 pinctrl-1 = <&cam_sensor_mclk1_sleep
frankcheng211a78f2020-05-09 20:59:58 +0800194 &cam_sensor_front1_sleep
195 &cam_sensor_front1_vdig_sleep
196 &cam_sensor_front1_vio_sleep>;
197
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530198 gpios = <&tlmm 27 0>,
frankcheng211a78f2020-05-09 20:59:58 +0800199 <&tlmm 129 0>,
200 <&tlmm 46 0>,
201 <&tlmm 130 0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530202 qcom,gpio-reset = <1>;
frankcheng211a78f2020-05-09 20:59:58 +0800203 qcom,gpio-vdig = <2>;
204 qcom,gpio-vio = <3>;
205 qcom,gpio-req-tbl-num = <0 1 2 3>;
206 qcom,gpio-req-tbl-flags = <1 0 0 0>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530207 qcom,gpio-req-tbl-label = "CAMIF_MCLK2",
frankcheng211a78f2020-05-09 20:59:58 +0800208 "CAM_RESET2",
209 "CAM_VDIG2",
210 "CAM_VIO2";
211
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530212 qcom,sensor-position = <1>;
213 qcom,sensor-mode = <0>;
214 qcom,cci-master = <1>;
215 status = "ok";
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530216 clock-names = "cam_src_clk", "cam_clk";
frankcheng211a78f2020-05-09 20:59:58 +0800217 clocks = <&clock_gcc clk_mclk1_clk_src>,
218 <&clock_gcc clk_gcc_camss_mclk1_clk>;
Vijay kumar Tumati299fec02018-02-24 15:30:31 +0530219 qcom,clock-rates = <24000000 0>;
220 };
221};