|
| 1 | +/* |
| 2 | + * Copyright (c) 2019, 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 | +#include <dt-bindings/clock/qcom,camcc-atoll.h> |
| 15 | + |
| 16 | +&soc { |
| 17 | + led_flash_rear: qcom,camera-flash@0 { |
| 18 | + cell-index = <0>; |
| 19 | + reg = <0x00 0x00>; |
| 20 | + compatible = "qcom,camera-flash"; |
| 21 | + flash-source = <&pm6150l_flash0 &pm6150l_flash1>; |
| 22 | + torch-source = <&pm6150l_torch0 &pm6150l_torch1>; |
| 23 | + switch-source = <&pm6150l_switch2 &pm6150l_switch2>; |
| 24 | + status = "ok"; |
| 25 | + }; |
| 26 | + |
| 27 | + led_flash_rear_aux: qcom,camera-flash@1 { |
| 28 | + cell-index = <1>; |
| 29 | + reg = <0x01 0x00>; |
| 30 | + compatible = "qcom,camera-flash"; |
| 31 | + flash-source = <&pm6150l_flash0 &pm6150l_flash1>; |
| 32 | + torch-source = <&pm6150l_torch0 &pm6150l_torch1>; |
| 33 | + switch-source = <&pm6150l_switch2 &pm6150l_switch2>; |
| 34 | + status = "ok"; |
| 35 | + }; |
| 36 | +}; |
| 37 | + |
| 38 | +&cam_cci0 { |
| 39 | + qcom,cam-res-mgr { |
| 40 | + compatible = "qcom,cam-res-mgr"; |
| 41 | + status = "ok"; |
| 42 | + }; |
| 43 | + |
| 44 | + actuator_rear: qcom,actuator@0 { |
| 45 | + cell-index = <0>; |
| 46 | + reg = <0x0>; |
| 47 | + compatible = "qcom,actuator"; |
| 48 | + cci-master = <0>; |
| 49 | + cam_vaf-supply = <&L6P>; |
| 50 | + regulator-names = "cam_vaf"; |
| 51 | + rgltr-cntrl-support; |
| 52 | + rgltr-min-voltage = <2800000>; |
| 53 | + rgltr-max-voltage = <2800000>; |
| 54 | + rgltr-load-current = <100000>; |
| 55 | + }; |
| 56 | + |
| 57 | + eeprom_rear: qcom,eeprom@0 { |
| 58 | + cell-index = <0>; |
| 59 | + reg = <0>; |
| 60 | + compatible = "qcom,eeprom"; |
| 61 | + cam_vio-supply = <&L5P>; |
| 62 | + cam_vana-supply = <&L4P>; |
| 63 | + cam_vdig-supply = <&L1P>; |
| 64 | + cam_clk-supply = <&titan_top_gdsc>; |
| 65 | + cam_vaf-supply = <&L6P>; |
| 66 | + regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| 67 | + "cam_clk", "cam_vaf"; |
| 68 | + rgltr-cntrl-support; |
| 69 | + rgltr-min-voltage = <1800000 2800000 1104000 0 2800000>; |
| 70 | + rgltr-max-voltage = <1800000 2800000 1104000 0 2800000>; |
| 71 | + rgltr-load-current = <0 80000 105000 0 100000>; |
| 72 | + gpio-no-mux = <0>; |
| 73 | + pinctrl-names = "cam_default", "cam_suspend"; |
| 74 | + pinctrl-0 = <&cam_sensor_mclk0_active |
| 75 | + &cam_sensor_rear_active>; |
| 76 | + pinctrl-1 = <&cam_sensor_mclk0_suspend |
| 77 | + &cam_sensor_rear_suspend>; |
| 78 | + gpios = <&tlmm 13 0>, |
| 79 | + <&tlmm 30 0>; |
| 80 | + gpio-reset = <1>; |
| 81 | + gpio-req-tbl-num = <0 1>; |
| 82 | + gpio-req-tbl-flags = <1 0>; |
| 83 | + gpio-req-tbl-label = "CAMIF_MCLK0", |
| 84 | + "CAM_RESET0"; |
| 85 | + sensor-mode = <0>; |
| 86 | + cci-master = <0>; |
| 87 | + status = "ok"; |
| 88 | + clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; |
| 89 | + clock-names = "cam_clk"; |
| 90 | + clock-cntl-level = "turbo"; |
| 91 | + clock-rates = <24000000>; |
| 92 | + }; |
| 93 | + |
| 94 | + eeprom_front: qcom,eeprom@2 { |
| 95 | + cell-index = <2>; |
| 96 | + reg = <0x2>; |
| 97 | + compatible = "qcom,eeprom"; |
| 98 | + cam_vio-supply = <&L5P>; |
| 99 | + cam_vana-supply = <&L3P>; |
| 100 | + cam_vdig-supply = <&L1P>; |
| 101 | + cam_clk-supply = <&titan_top_gdsc>; |
| 102 | + regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| 103 | + "cam_clk"; |
| 104 | + rgltr-cntrl-support; |
| 105 | + rgltr-min-voltage = <1800000 2800000 1104000 0>; |
| 106 | + rgltr-max-voltage = <1800000 2800000 1104000 0>; |
| 107 | + rgltr-load-current = <0 80000 105000 0>; |
| 108 | + gpio-no-mux = <0>; |
| 109 | + pinctrl-names = "cam_default", "cam_suspend"; |
| 110 | + pinctrl-0 = <&cam_sensor_mclk2_active |
| 111 | + &cam_sensor_front_active>; |
| 112 | + pinctrl-1 = <&cam_sensor_mclk2_suspend |
| 113 | + &cam_sensor_front_suspend>; |
| 114 | + gpios = <&tlmm 15 0>, |
| 115 | + <&tlmm 29 0>; |
| 116 | + gpio-reset = <1>; |
| 117 | + gpio-req-tbl-num = <0 1>; |
| 118 | + gpio-req-tbl-flags = <1 0>; |
| 119 | + gpio-req-tbl-label = "CAMIF_MCLK2", |
| 120 | + "CAM_RESET2"; |
| 121 | + sensor-mode = <0>; |
| 122 | + cci-device = <0>; |
| 123 | + cci-master = <1>; |
| 124 | + status = "ok"; |
| 125 | + clocks = <&clock_camcc CAM_CC_MCLK2_CLK>; |
| 126 | + clock-names = "cam_clk"; |
| 127 | + clock-cntl-level = "turbo"; |
| 128 | + clock-rates = <24000000>; |
| 129 | + }; |
| 130 | + |
| 131 | + qcom,cam-sensor@0 { |
| 132 | + cell-index = <0>; |
| 133 | + compatible = "qcom,cam-sensor"; |
| 134 | + reg = <0x0>; |
| 135 | + csiphy-sd-index = <0>; |
| 136 | + sensor-position-roll = <90>; |
| 137 | + sensor-position-pitch = <0>; |
| 138 | + sensor-position-yaw = <180>; |
| 139 | + led-flash-src = <&led_flash_rear>; |
| 140 | + eeprom-src = <&eeprom_rear>; |
| 141 | + actuator-src = <&actuator_rear>; |
| 142 | + cam_vio-supply = <&L5P>; |
| 143 | + cam_vana-supply = <&L4P>; |
| 144 | + cam_vdig-supply = <&L1P>; |
| 145 | + cam_clk-supply = <&titan_top_gdsc>; |
| 146 | + regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| 147 | + "cam_clk"; |
| 148 | + rgltr-cntrl-support; |
| 149 | + rgltr-min-voltage = <1800000 2800000 1104000 0>; |
| 150 | + rgltr-max-voltage = <1800000 2800000 1104000 0>; |
| 151 | + rgltr-load-current = <0 80000 105000 0>; |
| 152 | + gpio-no-mux = <0>; |
| 153 | + pinctrl-names = "cam_default", "cam_suspend"; |
| 154 | + pinctrl-0 = <&cam_sensor_mclk0_active |
| 155 | + &cam_sensor_rear_active>; |
| 156 | + pinctrl-1 = <&cam_sensor_mclk0_suspend |
| 157 | + &cam_sensor_rear_suspend>; |
| 158 | + gpios = <&tlmm 13 0>, |
| 159 | + <&tlmm 30 0>; |
| 160 | + gpio-reset = <1>; |
| 161 | + gpio-req-tbl-num = <0 1>; |
| 162 | + gpio-req-tbl-flags = <1 0>; |
| 163 | + gpio-req-tbl-label = "CAMIF_MCLK0", |
| 164 | + "CAM_RESET0"; |
| 165 | + sensor-mode = <0>; |
| 166 | + cci-master = <0>; |
| 167 | + status = "ok"; |
| 168 | + clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; |
| 169 | + clock-names = "cam_clk"; |
| 170 | + clock-cntl-level = "turbo"; |
| 171 | + clock-rates = <24000000>; |
| 172 | + }; |
| 173 | + |
| 174 | + qcom,cam-sensor@1 { |
| 175 | + cell-index = <1>; |
| 176 | + compatible = "qcom,cam-sensor"; |
| 177 | + reg = <0x1>; |
| 178 | + csiphy-sd-index = <1>; |
| 179 | + sensor-position-roll = <90>; |
| 180 | + sensor-position-pitch = <0>; |
| 181 | + sensor-position-yaw = <180>; |
| 182 | + led-flash-src = <&led_flash_rear_aux>; |
| 183 | + cam_vio-supply = <&L5P>; |
| 184 | + cam_vana-supply = <&L3P>; |
| 185 | + cam_vdig-supply = <&L2P>; |
| 186 | + cam_clk-supply = <&titan_top_gdsc>; |
| 187 | + regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| 188 | + "cam_clk"; |
| 189 | + rgltr-cntrl-support; |
| 190 | + rgltr-min-voltage = <1800000 2800000 1104000 0>; |
| 191 | + rgltr-max-voltage = <1800000 2800000 1104000 0>; |
| 192 | + rgltr-load-current = <0 80000 105000 0>; |
| 193 | + gpio-no-mux = <0>; |
| 194 | + pinctrl-names = "cam_default", "cam_suspend"; |
| 195 | + pinctrl-0 = <&cam_sensor_mclk1_active |
| 196 | + &cam_sensor_rear2_active>; |
| 197 | + pinctrl-1 = <&cam_sensor_mclk1_suspend |
| 198 | + &cam_sensor_rear2_suspend>; |
| 199 | + gpios = <&tlmm 14 0>, |
| 200 | + <&tlmm 25 0>; |
| 201 | + gpio-reset = <1>; |
| 202 | + gpio-req-tbl-num = <0 1>; |
| 203 | + gpio-req-tbl-flags = <1 0>; |
| 204 | + gpio-req-tbl-label = "CAMIF_MCLK1", |
| 205 | + "CAM_RESET1"; |
| 206 | + sensor-mode = <0>; |
| 207 | + cci-master = <1>; |
| 208 | + status = "ok"; |
| 209 | + clocks = <&clock_camcc CAM_CC_MCLK1_CLK>; |
| 210 | + clock-names = "cam_clk"; |
| 211 | + clock-cntl-level = "turbo"; |
| 212 | + clock-rates = <24000000>; |
| 213 | + }; |
| 214 | + |
| 215 | + qcom,cam-sensor@2 { |
| 216 | + cell-index = <2>; |
| 217 | + compatible = "qcom,cam-sensor"; |
| 218 | + reg = <0x2>; |
| 219 | + csiphy-sd-index = <2>; |
| 220 | + sensor-position-roll = <270>; |
| 221 | + sensor-position-pitch = <0>; |
| 222 | + sensor-position-yaw = <0>; |
| 223 | + eeprom-src = <&eeprom_front>; |
| 224 | + cam_vio-supply = <&L5P>; |
| 225 | + cam_vana-supply = <&L3P>; |
| 226 | + cam_vdig-supply = <&L1P>; |
| 227 | + cam_clk-supply = <&titan_top_gdsc>; |
| 228 | + regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| 229 | + "cam_clk"; |
| 230 | + rgltr-cntrl-support; |
| 231 | + rgltr-min-voltage = <1800000 2800000 1104000 0>; |
| 232 | + rgltr-max-voltage = <1800000 2800000 1104000 0>; |
| 233 | + rgltr-load-current = <0 80000 105000 0>; |
| 234 | + gpio-no-mux = <0>; |
| 235 | + pinctrl-names = "cam_default", "cam_suspend"; |
| 236 | + pinctrl-0 = <&cam_sensor_mclk2_active |
| 237 | + &cam_sensor_front_active>; |
| 238 | + pinctrl-1 = <&cam_sensor_mclk2_suspend |
| 239 | + &cam_sensor_front_suspend>; |
| 240 | + gpios = <&tlmm 15 0>, |
| 241 | + <&tlmm 29 0>; |
| 242 | + gpio-reset = <1>; |
| 243 | + gpio-req-tbl-num = <0 1>; |
| 244 | + gpio-req-tbl-flags = <1 0>; |
| 245 | + gpio-req-tbl-label = "CAMIF_MCLK2", |
| 246 | + "CAM_RESET2"; |
| 247 | + sensor-mode = <0>; |
| 248 | + cci-device = <0>; |
| 249 | + cci-master = <1>; |
| 250 | + status = "ok"; |
| 251 | + clocks = <&clock_camcc CAM_CC_MCLK2_CLK>; |
| 252 | + clock-names = "cam_clk"; |
| 253 | + clock-cntl-level = "turbo"; |
| 254 | + clock-rates = <24000000>; |
| 255 | + }; |
| 256 | +}; |
0 commit comments