Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. |
| 3 | * |
| 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 { |
| 15 | actuator0: qcom,actuator@0 { |
| 16 | cell-index = <0>; |
| 17 | reg = <0x0>; |
| 18 | compatible = "qcom,actuator"; |
| 19 | qcom,cci-master = <0>; |
| 20 | cam_vaf-supply = <&pm8953_l17>; |
| 21 | qcom,cam-vreg-name = "cam_vaf"; |
| 22 | qcom,cam-vreg-min-voltage = <2850000>; |
| 23 | qcom,cam-vreg-max-voltage = <2850000>; |
| 24 | qcom,cam-vreg-op-mode = <80000>; |
| 25 | }; |
| 26 | |
| 27 | actuator1: qcom,actuator@1 { |
| 28 | cell-index = <1>; |
| 29 | reg = <0x1>; |
| 30 | compatible = "qcom,actuator"; |
| 31 | qcom,cci-master = <1>; |
| 32 | cam_vaf-supply = <&pm8953_l17>; |
| 33 | qcom,cam-vreg-name = "cam_vaf"; |
| 34 | qcom,cam-vreg-min-voltage = <2850000>; |
| 35 | qcom,cam-vreg-max-voltage = <2850000>; |
| 36 | qcom,cam-vreg-op-mode = <80000>; |
| 37 | }; |
| 38 | |
| 39 | eeprom0: qcom,eeprom@0 { |
| 40 | cell-index = <0>; |
| 41 | compatible = "qcom,eeprom"; |
| 42 | qcom,cci-master = <0>; |
| 43 | reg = <0x0>; |
| 44 | cam_vio-supply = <&pm8953_l6>; |
| 45 | cam_vdig-supply = <&pm8953_l2>; |
| 46 | cam_vaf-supply = <&pm8953_l17>; |
| 47 | qcom,cam-vreg-name = "cam_vio", "cam_vdig", "cam_vaf"; |
Vijay kumar Tumati | f3619c4 | 2018-04-13 17:15:49 +0530 | [diff] [blame] | 48 | qcom,cam-vreg-min-voltage = <0 1200000 2850000>; |
| 49 | qcom,cam-vreg-max-voltage = <0 1200000 2850000>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 50 | qcom,cam-vreg-op-mode = <0 105000 100000>; |
| 51 | pinctrl-names = "cam_default", "cam_suspend"; |
| 52 | pinctrl-0 = <&cam_sensor_mclk0_default |
| 53 | &cam_sensor_rear_default |
| 54 | &cam_sensor_rear_vana>; |
| 55 | pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep |
| 56 | &cam_sensor_rear_vana_sleep>; |
| 57 | gpios = <&tlmm 26 0>, |
| 58 | <&tlmm 40 0>, |
| 59 | <&tlmm 39 0>, |
| 60 | <&tlmm 134 0>; |
| 61 | qcom,gpio-reset = <1>; |
| 62 | qcom,gpio-standby = <2>; |
| 63 | qcom,gpio-vana = <3>; |
| 64 | qcom,gpio-req-tbl-num = <0 1 2 3>; |
| 65 | qcom,gpio-req-tbl-flags = <1 0 0 0>; |
| 66 | qcom,gpio-req-tbl-label = "CAMIF_MCLK0", |
| 67 | "CAM_RESET0", |
| 68 | "CAM_STANDBY0", |
| 69 | "CAM_VANA"; |
| 70 | status = "ok"; |
| 71 | clocks = <&clock_gcc clk_mclk0_clk_src>, |
| 72 | <&clock_gcc clk_gcc_camss_mclk0_clk>; |
| 73 | clock-names = "cam_src_clk", "cam_clk"; |
| 74 | qcom,clock-rates = <19200000 0>; |
| 75 | }; |
| 76 | |
| 77 | eeprom1: qcom,eeprom@1 { |
| 78 | cell-index = <1>; |
| 79 | reg = <0x1>; |
| 80 | qcom,eeprom-name = "sunny_8865"; |
| 81 | compatible = "qcom,eeprom"; |
| 82 | qcom,slave-addr = <0x6c>; |
| 83 | qcom,cci-master = <0>; |
| 84 | qcom,num-blocks = <8>; |
| 85 | |
| 86 | qcom,page0 = <1 0x0100 2 0x01 1 1>; |
| 87 | qcom,poll0 = <0 0x0 2 0x0 1 0>; |
| 88 | qcom,mem0 = <0 0x0 2 0x0 1 0>; |
| 89 | |
| 90 | qcom,page1 = <1 0x5002 2 0x00 1 0>; |
| 91 | qcom,poll1 = <0 0x0 2 0x0 1 0>; |
| 92 | qcom,mem1 = <0 0x0 2 0x0 1 0>; |
| 93 | |
| 94 | qcom,page2 = <1 0x3d84 2 0xc0 1 0>; |
| 95 | qcom,poll2 = <0 0x0 2 0x0 1 0>; |
| 96 | qcom,mem2 = <0 0x0 2 0x0 1 0>; |
| 97 | |
| 98 | qcom,page3 = <1 0x3d88 2 0x70 1 0>; |
| 99 | qcom,poll3 = <0 0x0 2 0x0 1 0>; |
| 100 | qcom,mem3 = <0 0x0 2 0x0 1 0>; |
| 101 | |
| 102 | qcom,page4 = <1 0x3d89 2 0x10 1 0>; |
| 103 | qcom,poll4 = <0 0x0 2 0x0 1 0>; |
| 104 | qcom,mem4 = <0 0x0 2 0x0 1 0>; |
| 105 | |
| 106 | qcom,page5 = <1 0x3d8a 2 0x70 1 0>; |
| 107 | qcom,poll5 = <0 0x0 2 0x0 1 0>; |
| 108 | qcom,mem5 = <0 0x0 2 0x0 1 0>; |
| 109 | |
| 110 | qcom,page6 = <1 0x3d8b 2 0xf4 1 0>; |
| 111 | qcom,poll6 = <0 0x0 2 0x0 1 0>; |
| 112 | qcom,mem6 = <0 0x0 2 0x0 1 0>; |
| 113 | |
| 114 | qcom,page7 = <1 0x3d81 2 0x01 1 10>; |
| 115 | qcom,poll7 = <0 0x0 2 0x0 1 1>; |
| 116 | qcom,mem7 = <1536 0x7010 2 0 1 0>; |
| 117 | |
| 118 | cam_vdig-supply = <&pm8953_l23>; |
| 119 | cam_vana-supply = <&pm8953_l22>; |
| 120 | cam_vio-supply = <&pm8953_l6>; |
| 121 | cam_vaf-supply = <&pm8953_l17>; |
| 122 | qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana", |
| 123 | "cam_vaf"; |
| 124 | qcom,cam-vreg-min-voltage = <1200000 0 2800000 2850000>; |
| 125 | qcom,cam-vreg-max-voltage = <1200000 0 2800000 2850000>; |
| 126 | qcom,cam-vreg-op-mode = <105000 0 80000 100000>; |
| 127 | qcom,gpio-no-mux = <0>; |
| 128 | pinctrl-names = "cam_default", "cam_suspend"; |
| 129 | pinctrl-0 = <&cam_sensor_mclk1_default |
| 130 | &cam_sensor_front1_default>; |
| 131 | pinctrl-1 = <&cam_sensor_mclk1_sleep &cam_sensor_front1_sleep>; |
| 132 | gpios = <&tlmm 27 0>, |
| 133 | <&tlmm 129 0>, |
| 134 | <&tlmm 130 0>; |
| 135 | qcom,gpio-reset = <1>; |
| 136 | qcom,gpio-standby = <2>; |
| 137 | qcom,gpio-req-tbl-num = <0 1 2>; |
| 138 | qcom,gpio-req-tbl-flags = <1 0 0>; |
| 139 | qcom,gpio-req-tbl-label = "CAMIF_MCLK2", |
| 140 | "CAM_RESET2", |
| 141 | "CAM_STANDBY2"; |
| 142 | qcom,cam-power-seq-type = "sensor_vreg", "sensor_vreg", |
| 143 | "sensor_vreg", |
| 144 | "sensor_gpio", "sensor_gpio" , "sensor_clk"; |
| 145 | qcom,cam-power-seq-val = "cam_vdig", "cam_vana", "cam_vio", |
| 146 | "sensor_gpio_reset", "sensor_gpio_standby", |
| 147 | "sensor_cam_mclk"; |
| 148 | qcom,cam-power-seq-cfg-val = <1 1 1 1 1 24000000>; |
| 149 | qcom,cam-power-seq-delay = <1 1 1 30 30 5>; |
| 150 | status = "ok"; |
| 151 | clocks = <&clock_gcc clk_mclk1_clk_src>, |
| 152 | <&clock_gcc clk_gcc_camss_mclk1_clk>; |
| 153 | clock-names = "cam_src_clk", "cam_clk"; |
| 154 | qcom,clock-rates = <19200000 0>; |
| 155 | }; |
| 156 | |
| 157 | eeprom2: qcom,eeprom@2 { |
| 158 | cell-index = <2>; |
| 159 | compatible = "qcom,eeprom"; |
| 160 | qcom,cci-master = <1>; |
| 161 | reg = <0x2>; |
| 162 | cam_vdig-supply = <&pm8953_l23>; |
| 163 | cam_vana-supply = <&pm8953_l22>; |
| 164 | cam_vio-supply = <&pm8953_l6>; |
| 165 | cam_vaf-supply = <&pm8953_l17>; |
| 166 | qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana", |
| 167 | "cam_vaf"; |
| 168 | qcom,cam-vreg-min-voltage = <1200000 0 2800000 2850000>; |
| 169 | qcom,cam-vreg-max-voltage = <1200000 0 2800000 2850000>; |
| 170 | qcom,cam-vreg-op-mode = <200000 0 80000 100000>; |
| 171 | pinctrl-names = "cam_default", "cam_suspend"; |
| 172 | pinctrl-0 = <&cam_sensor_mclk2_default |
| 173 | &cam_sensor_front_default>; |
| 174 | pinctrl-1 = <&cam_sensor_mclk2_sleep |
| 175 | &cam_sensor_front_sleep>; |
| 176 | gpios = <&tlmm 28 0>, |
| 177 | <&tlmm 131 0>, |
| 178 | <&tlmm 132 0>; |
| 179 | qcom,gpio-reset = <1>; |
| 180 | qcom,gpio-standby = <2>; |
| 181 | qcom,gpio-req-tbl-num = <0 1 2>; |
| 182 | qcom,gpio-req-tbl-flags = <1 0 0>; |
| 183 | qcom,gpio-req-tbl-label = "CAMIF_MCLK1", |
| 184 | "CAM_RESET1", |
| 185 | "CAM_STANDBY1"; |
| 186 | status = "ok"; |
| 187 | clocks = <&clock_gcc clk_mclk2_clk_src>, |
| 188 | <&clock_gcc clk_gcc_camss_mclk2_clk>; |
| 189 | clock-names = "cam_src_clk", "cam_clk"; |
| 190 | qcom,clock-rates = <19200000 0>; |
| 191 | }; |
| 192 | |
Vijay kumar Tumati | 408b096 | 2018-03-16 17:28:31 +0530 | [diff] [blame] | 193 | camera0: qcom,camera@0 { |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 194 | cell-index = <0>; |
| 195 | compatible = "qcom,camera"; |
| 196 | reg = <0x0>; |
| 197 | qcom,csiphy-sd-index = <0>; |
| 198 | qcom,csid-sd-index = <0>; |
| 199 | qcom,mount-angle = <270>; |
Vijay kumar Tumati | 26fe628 | 2018-02-21 18:40:21 +0530 | [diff] [blame] | 200 | qcom,led-flash-src = <&led_flash0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 201 | qcom,eeprom-src = <&eeprom0>; |
| 202 | qcom,actuator-src = <&actuator0>; |
| 203 | cam_vio-supply = <&pm8953_l6>; |
| 204 | cam_vdig-supply = <&pm8953_l2>; |
| 205 | cam_vaf-supply = <&pm8953_l17>; |
| 206 | cam_vana-supply = <&pm8953_l22>; |
Samyukta Mogily | ceee3f3 | 2018-03-26 14:11:33 +0530 | [diff] [blame] | 207 | cam_v_custom1-supply = <&pm8953_l23>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 208 | qcom,cam-vreg-name = "cam_vio", "cam_vdig", "cam_vaf", |
Samyukta Mogily | ceee3f3 | 2018-03-26 14:11:33 +0530 | [diff] [blame] | 209 | "cam_vana", "cam_v_custom1"; |
Vijay kumar Tumati | f3619c4 | 2018-04-13 17:15:49 +0530 | [diff] [blame] | 210 | qcom,cam-vreg-min-voltage = <0 1200000 2850000 2800000 1220000>; |
| 211 | qcom,cam-vreg-max-voltage = <0 1200000 2850000 2800000 1220000>; |
Samyukta Mogily | ceee3f3 | 2018-03-26 14:11:33 +0530 | [diff] [blame] | 212 | qcom,cam-vreg-op-mode = <0 105000 100000 80000 105000>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 213 | pinctrl-names = "cam_default", "cam_suspend"; |
| 214 | pinctrl-0 = <&cam_sensor_mclk0_default |
| 215 | &cam_sensor_rear_default |
| 216 | &cam_sensor_rear_vana>; |
| 217 | pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep |
| 218 | &cam_sensor_rear_vana_sleep>; |
| 219 | gpios = <&tlmm 26 0>, |
| 220 | <&tlmm 40 0>, |
| 221 | <&tlmm 39 0>, |
| 222 | <&tlmm 134 0>; |
| 223 | qcom,gpio-reset = <1>; |
| 224 | qcom,gpio-standby = <2>; |
| 225 | qcom,gpio-vana = <3>; |
| 226 | qcom,gpio-req-tbl-num = <0 1 2 3>; |
| 227 | qcom,gpio-req-tbl-flags = <1 0 0 0>; |
| 228 | qcom,gpio-req-tbl-label = "CAMIF_MCLK0", |
| 229 | "CAM_RESET0", |
| 230 | "CAM_STANDBY0", |
| 231 | "CAM_VANA"; |
| 232 | qcom,sensor-position = <0>; |
| 233 | qcom,sensor-mode = <0>; |
| 234 | qcom,cci-master = <0>; |
| 235 | status = "ok"; |
| 236 | clocks = <&clock_gcc clk_mclk0_clk_src>, |
| 237 | <&clock_gcc clk_gcc_camss_mclk0_clk>; |
| 238 | clock-names = "cam_src_clk", "cam_clk"; |
| 239 | qcom,clock-rates = <24000000 0>; |
| 240 | }; |
| 241 | |
| 242 | qcom,camera@1 { |
| 243 | cell-index = <1>; |
| 244 | compatible = "qcom,camera"; |
| 245 | reg = <0x1>; |
| 246 | qcom,csiphy-sd-index = <1>; |
| 247 | qcom,csid-sd-index = <1>; |
| 248 | qcom,mount-angle = <90>; |
| 249 | qcom,eeprom-src = <&eeprom2>; |
| 250 | qcom,actuator-src = <&actuator1>; |
| 251 | cam_vdig-supply = <&pm8953_l23>; |
| 252 | cam_vana-supply = <&pm8953_l22>; |
| 253 | cam_vio-supply = <&pm8953_l6>; |
| 254 | cam_vaf-supply = <&pm8953_l17>; |
| 255 | qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana", |
| 256 | "cam_vaf"; |
| 257 | qcom,cam-vreg-min-voltage = <1200000 0 2800000 2850000>; |
| 258 | qcom,cam-vreg-max-voltage = <1200000 0 2800000 2850000>; |
| 259 | qcom,cam-vreg-op-mode = <200000 0 80000 100000>; |
| 260 | pinctrl-names = "cam_default", "cam_suspend"; |
| 261 | pinctrl-0 = <&cam_sensor_mclk2_default |
| 262 | &cam_sensor_front_default>; |
| 263 | pinctrl-1 = <&cam_sensor_mclk2_sleep |
| 264 | &cam_sensor_front_sleep>; |
| 265 | gpios = <&tlmm 28 0>, |
| 266 | <&tlmm 131 0>, |
| 267 | <&tlmm 132 0>; |
| 268 | qcom,gpio-reset = <1>; |
| 269 | qcom,gpio-standby = <2>; |
| 270 | qcom,gpio-req-tbl-num = <0 1 2>; |
| 271 | qcom,gpio-req-tbl-flags = <1 0 0>; |
| 272 | qcom,gpio-req-tbl-label = "CAMIF_MCLK1", |
| 273 | "CAM_RESET1", |
| 274 | "CAM_STANDBY1"; |
| 275 | qcom,sensor-position = <0x100>; |
| 276 | qcom,sensor-mode = <1>; |
| 277 | qcom,cci-master = <1>; |
| 278 | status = "ok"; |
| 279 | clocks = <&clock_gcc clk_mclk2_clk_src>, |
| 280 | <&clock_gcc clk_gcc_camss_mclk2_clk>; |
| 281 | clock-names = "cam_src_clk", "cam_clk"; |
| 282 | qcom,clock-rates = <24000000 0>; |
| 283 | }; |
| 284 | |
| 285 | qcom,camera@2 { |
| 286 | cell-index = <2>; |
| 287 | compatible = "qcom,camera"; |
| 288 | reg = <0x02>; |
| 289 | qcom,csiphy-sd-index = <2>; |
| 290 | qcom,csid-sd-index = <2>; |
| 291 | qcom,mount-angle = <90>; |
| 292 | qcom,eeprom-src = <&eeprom1>; |
| 293 | qcom,actuator-src = <&actuator1>; |
| 294 | cam_vdig-supply = <&pm8953_l23>; |
| 295 | cam_vio-supply = <&pm8953_l6>; |
| 296 | cam_vana-supply = <&pm8953_l22>; |
| 297 | cam_vaf-supply = <&pm8953_l17>; |
| 298 | qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana", |
| 299 | "cam_vaf"; |
Vijay kumar Tumati | f3619c4 | 2018-04-13 17:15:49 +0530 | [diff] [blame] | 300 | qcom,cam-vreg-min-voltage = <1200000 0 2800000 2850000>; |
| 301 | qcom,cam-vreg-max-voltage = <1200000 0 2800000 2850000>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 302 | qcom,cam-vreg-op-mode = <105000 0 80000 100000>; |
| 303 | qcom,gpio-no-mux = <0>; |
| 304 | pinctrl-names = "cam_default", "cam_suspend"; |
| 305 | pinctrl-0 = <&cam_sensor_mclk1_default |
| 306 | &cam_sensor_front1_default>; |
| 307 | pinctrl-1 = <&cam_sensor_mclk1_sleep |
| 308 | &cam_sensor_front1_sleep>; |
| 309 | gpios = <&tlmm 27 0>, |
| 310 | <&tlmm 129 0>, |
| 311 | <&tlmm 130 0>; |
| 312 | qcom,gpio-reset = <1>; |
| 313 | qcom,gpio-standby = <2>; |
| 314 | qcom,gpio-req-tbl-num = <0 1 2>; |
| 315 | qcom,gpio-req-tbl-flags = <1 0 0>; |
| 316 | qcom,gpio-req-tbl-label = "CAMIF_MCLK2", |
| 317 | "CAM_RESET2", |
| 318 | "CAM_STANDBY2"; |
| 319 | qcom,sensor-position = <1>; |
| 320 | qcom,sensor-mode = <0>; |
| 321 | qcom,cci-master = <1>; |
| 322 | status = "ok"; |
| 323 | clocks = <&clock_gcc clk_mclk1_clk_src>, |
| 324 | <&clock_gcc clk_gcc_camss_mclk1_clk>; |
| 325 | clock-names = "cam_src_clk", "cam_clk"; |
| 326 | qcom,clock-rates = <24000000 0>; |
| 327 | }; |
| 328 | }; |