Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 1 | /* |
Kavya Nunna | ba92b50 | 2019-01-28 15:25:47 +0530 | [diff] [blame] | 2 | * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 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 { |
Tengfei Fan | f08a94f | 2019-04-12 15:59:52 +0800 | [diff] [blame] | 15 | #address-cells = <1>; |
| 16 | #size-cells = <0>; |
| 17 | |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 18 | actuator0: qcom,actuator@0 { |
| 19 | cell-index = <0>; |
| 20 | reg = <0x0>; |
| 21 | compatible = "qcom,actuator"; |
| 22 | qcom,cci-master = <0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 23 | 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>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 46 | 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 Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 52 | pinctrl-names = "cam_default", "cam_suspend"; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 53 | pinctrl-0 = <&cam_sensor_mclk0_default &cam_sensor_rear_default>; |
| 54 | pinctrl-1 = <&cam_sensor_mclk0_sleep &cam_sensor_rear_sleep>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 55 | gpios = <&tlmm 26 0>, |
| 56 | <&tlmm 40 0>, |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 57 | <&tlmm 130 0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 58 | qcom,gpio-reset = <1>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 59 | qcom,gpio-vio = <2>; |
| 60 | qcom,gpio-req-tbl-num = <0 1 2>; |
| 61 | qcom,gpio-req-tbl-flags = <1 0 0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 62 | qcom,gpio-req-tbl-label = "CAMIF_MCLK0", |
| 63 | "CAM_RESET0", |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 64 | "CAM_VIO"; |
| 65 | qcom,sensor-position = <0>; |
| 66 | qcom,sensor-mode = <0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 67 | 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"; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 71 | qcom,clock-rates = <24000000 0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 72 | }; |
| 73 | |
| 74 | eeprom1: qcom,eeprom@1 { |
| 75 | cell-index = <1>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 76 | compatible = "qcom,eeprom"; |
Samyukta Mogily | 304ac0d | 2018-08-31 12:21:28 +0530 | [diff] [blame] | 77 | qcom,cci-master = <1>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 78 | reg = <0x1>; |
| 79 | |
Samyukta Mogily | 304ac0d | 2018-08-31 12:21:28 +0530 | [diff] [blame] | 80 | cam_vana-supply = <&pm8953_l22>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 81 | 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 Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 85 | qcom,gpio-no-mux = <0>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 86 | |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 87 | pinctrl-names = "cam_default", "cam_suspend"; |
| 88 | pinctrl-0 = <&cam_sensor_mclk1_default |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 89 | &cam_sensor_front1_default |
| 90 | &cam_sensor_front1_vdig_default |
| 91 | &cam_sensor_front1_vio_default>; |
Samyukta Mogily | 304ac0d | 2018-08-31 12:21:28 +0530 | [diff] [blame] | 92 | pinctrl-1 = <&cam_sensor_mclk1_sleep |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 93 | &cam_sensor_front1_sleep |
| 94 | &cam_sensor_front1_vdig_sleep |
| 95 | &cam_sensor_front1_vio_sleep>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 96 | |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 97 | gpios = <&tlmm 27 0>, |
| 98 | <&tlmm 129 0>, |
| 99 | <&tlmm 46 0>, |
| 100 | <&tlmm 130 0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 101 | qcom,gpio-reset = <1>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 102 | 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 Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 111 | status = "ok"; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 112 | 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 Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 122 | clock-names = "cam_src_clk", "cam_clk"; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 123 | clocks = <&clock_gcc clk_mclk1_clk_src>, |
| 124 | <&clock_gcc clk_gcc_camss_mclk1_clk>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 125 | qcom,clock-rates = <19200000 0>; |
| 126 | }; |
| 127 | |
Vijay kumar Tumati | 408b096 | 2018-03-16 17:28:31 +0530 | [diff] [blame] | 128 | camera0: qcom,camera@0 { |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 129 | 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 Nunna | f62523f | 2019-11-28 17:44:02 +0530 | [diff] [blame] | 135 | qcom,led-flash-src = <&led_flash0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 136 | qcom,eeprom-src = <&eeprom0>; |
| 137 | qcom,actuator-src = <&actuator0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 138 | cam_vana-supply = <&pm8953_l22>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 139 | 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 Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 144 | 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>, |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 152 | <&tlmm 130 0>, |
| 153 | <&tlmm 128 0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 154 | qcom,gpio-reset = <1>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 155 | qcom,gpio-vio = <2>; |
| 156 | qcom,gpio-vaf = <3>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 157 | 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", |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 161 | "CAM_VIO", |
| 162 | "CAM_VAF"; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 163 | 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 | |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 173 | camera2: qcom,camera@2 { |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 174 | cell-index = <2>; |
| 175 | compatible = "qcom,camera"; |
| 176 | reg = <0x02>; |
| 177 | qcom,csiphy-sd-index = <2>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 178 | qcom,csid-sd-index = <1>; |
| 179 | qcom,mount-angle = <270>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 180 | qcom,eeprom-src = <&eeprom1>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 181 | cam_vana-supply = <&pm8953_l22>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 182 | 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 Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 186 | qcom,gpio-no-mux = <0>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 187 | |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 188 | pinctrl-names = "cam_default", "cam_suspend"; |
| 189 | pinctrl-0 = <&cam_sensor_mclk1_default |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 190 | &cam_sensor_front1_default |
| 191 | &cam_sensor_front1_vdig_default |
| 192 | &cam_sensor_front1_vio_default>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 193 | pinctrl-1 = <&cam_sensor_mclk1_sleep |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 194 | &cam_sensor_front1_sleep |
| 195 | &cam_sensor_front1_vdig_sleep |
| 196 | &cam_sensor_front1_vio_sleep>; |
| 197 | |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 198 | gpios = <&tlmm 27 0>, |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 199 | <&tlmm 129 0>, |
| 200 | <&tlmm 46 0>, |
| 201 | <&tlmm 130 0>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 202 | qcom,gpio-reset = <1>; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 203 | 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 Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 207 | qcom,gpio-req-tbl-label = "CAMIF_MCLK2", |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 208 | "CAM_RESET2", |
| 209 | "CAM_VDIG2", |
| 210 | "CAM_VIO2"; |
| 211 | |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 212 | qcom,sensor-position = <1>; |
| 213 | qcom,sensor-mode = <0>; |
| 214 | qcom,cci-master = <1>; |
| 215 | status = "ok"; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 216 | clock-names = "cam_src_clk", "cam_clk"; |
frankcheng | 211a78f | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 217 | clocks = <&clock_gcc clk_mclk1_clk_src>, |
| 218 | <&clock_gcc clk_gcc_camss_mclk1_clk>; |
Vijay kumar Tumati | 299fec0 | 2018-02-24 15:30:31 +0530 | [diff] [blame] | 219 | qcom,clock-rates = <24000000 0>; |
| 220 | }; |
| 221 | }; |