Tirupathi Reddy | 0cfe208 | 2017-06-08 14:24:13 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 14 | |
| 15 | /* Stub regulators */ |
| 16 | |
| 17 | / { |
Tirupathi Reddy | 0cfe208 | 2017-06-08 14:24:13 +0530 | [diff] [blame] | 18 | apc0_pwrcl_vreg: regulator-pwrcl { |
| 19 | compatible = "qcom,stub-regulator"; |
| 20 | regulator-name = "apc0_pwrcl_corner"; |
| 21 | regulator-min-microvolt = <1>; |
| 22 | regulator-max-microvolt = <7>; |
| 23 | }; |
| 24 | |
| 25 | apc0_l3_vreg: regulator-l3 { |
| 26 | compatible = "qcom,stub-regulator"; |
| 27 | regulator-name = "apc0_l3_corner"; |
| 28 | regulator-min-microvolt = <1>; |
| 29 | regulator-max-microvolt = <7>; |
| 30 | }; |
| 31 | |
| 32 | apc1_perfcl_vreg: regulator-perfcl { |
| 33 | compatible = "qcom,stub-regulator"; |
| 34 | regulator-name = "apc1_perfcl_corner"; |
| 35 | regulator-min-microvolt = <1>; |
| 36 | regulator-max-microvolt = <7>; |
| 37 | }; |
| 38 | }; |
Tirupathi Reddy | 242bd80 | 2017-06-09 11:31:05 +0530 | [diff] [blame] | 39 | |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 40 | &soc { |
| 41 | /* RPMh regulators: */ |
| 42 | rpmh-regulator-smpa4 { |
| 43 | compatible = "qcom,rpmh-vrm-regulator"; |
| 44 | mboxes = <&apps_rsc 0>; |
| 45 | qcom,resource-name = "smpa4"; |
| 46 | pm660_s4: regulator-pm660-s4 { |
| 47 | regulator-name = "pm660_s4"; |
| 48 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
Tirupathi Reddy | 8fbcede | 2017-11-14 10:11:49 +0530 | [diff] [blame] | 49 | regulator-min-microvolt = <1808000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 50 | regulator-max-microvolt = <2040000>; |
Tirupathi Reddy | 8fbcede | 2017-11-14 10:11:49 +0530 | [diff] [blame] | 51 | qcom,init-voltage = <1808000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 52 | }; |
| 53 | }; |
| 54 | |
| 55 | /* pm660 S5 - VDD_MODEM supply */ |
| 56 | rpmh-regulator-modemlvl { |
| 57 | compatible = "qcom,rpmh-arc-regulator"; |
| 58 | mboxes = <&apps_rsc 0>; |
| 59 | qcom,resource-name = "mss.lvl"; |
| 60 | pm660_s5_level: regulator-pm660-s5 { |
| 61 | regulator-name = "pm660_s5_level"; |
| 62 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 63 | regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>; |
| 64 | regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>; |
| 65 | }; |
| 66 | }; |
| 67 | |
| 68 | rpmh-regulator-smpa6 { |
| 69 | compatible = "qcom,rpmh-vrm-regulator"; |
| 70 | mboxes = <&apps_rsc 0>; |
| 71 | qcom,resource-name = "smpa6"; |
| 72 | pm660_s6: regulator-pm660-s6 { |
| 73 | regulator-name = "pm660_s6"; |
| 74 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
Tirupathi Reddy | 8fbcede | 2017-11-14 10:11:49 +0530 | [diff] [blame] | 75 | regulator-min-microvolt = <1224000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 76 | regulator-max-microvolt = <1352000>; |
Tirupathi Reddy | 8fbcede | 2017-11-14 10:11:49 +0530 | [diff] [blame] | 77 | qcom,init-voltage = <1224000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 78 | }; |
| 79 | }; |
| 80 | |
| 81 | /* pm660l S1 - VDD_MX supply */ |
| 82 | rpmh-regulator-mxlvl { |
| 83 | compatible = "qcom,rpmh-arc-regulator"; |
| 84 | mboxes = <&apps_rsc 0>; |
| 85 | qcom,resource-name = "mx.lvl"; |
| 86 | pm660l_s1_level: regulator-pm660l-s1 { |
| 87 | regulator-name = "pm660l_s1_level"; |
| 88 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 89 | regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>; |
| 90 | regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>; |
| 91 | }; |
| 92 | |
| 93 | pm660l_s1_level_ao: regulator-pm660l-s1-level-ao { |
| 94 | regulator-name = "pm660l_s1_level_ao"; |
| 95 | qcom,set = <RPMH_REGULATOR_SET_ACTIVE>; |
| 96 | regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>; |
| 97 | regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>; |
| 98 | }; |
Manaf Meethalavalappu Pallikunhi | ef3ee25 | 2017-08-24 11:44:32 +0530 | [diff] [blame] | 99 | |
| 100 | mx_cdev: mx-cdev-lvl { |
| 101 | compatible = "qcom,regulator-cooling-device"; |
| 102 | regulator-cdev-supply = <&pm660l_s1_level>; |
| 103 | regulator-levels = <RPMH_REGULATOR_LEVEL_NOM |
| 104 | RPMH_REGULATOR_LEVEL_OFF>; |
| 105 | #cooling-cells = <2>; |
| 106 | }; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 107 | }; |
| 108 | |
| 109 | /* pm660l S2 - VDD_GFX supply */ |
| 110 | rpmh-regulator-gfxlvl { |
| 111 | compatible = "qcom,rpmh-arc-regulator"; |
| 112 | mboxes = <&apps_rsc 0>; |
| 113 | qcom,resource-name = "gfx.lvl"; |
| 114 | pm660l_s2_level: regulator-pm660l-s2 { |
| 115 | regulator-name = "pm660l_s2_level"; |
| 116 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 117 | regulator-min-microvolt |
| 118 | = <RPMH_REGULATOR_LEVEL_MIN_SVS>; |
| 119 | regulator-max-microvolt |
| 120 | = <RPMH_REGULATOR_LEVEL_MAX>; |
| 121 | qcom,init-voltage-level |
| 122 | = <RPMH_REGULATOR_LEVEL_MIN_SVS>; |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | /* pm660l S3 + S4 - VDD_CX supply */ |
| 127 | rpmh-regulator-cxlvl { |
| 128 | compatible = "qcom,rpmh-arc-regulator"; |
| 129 | mboxes = <&apps_rsc 0>; |
| 130 | qcom,resource-name = "cx.lvl"; |
| 131 | pm660l_s3_level-parent-supply = <&pm660l_s1_level>; |
| 132 | pm660l_s3_level_ao-parent-supply = <&pm660l_s1_level_ao>; |
| 133 | pm660l_s3_level: regulator-pm660l-s3-level { |
| 134 | regulator-name = "pm660l_s3_level"; |
| 135 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 136 | regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>; |
| 137 | regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>; |
| 138 | qcom,min-dropout-voltage-level = <(-1)>; |
| 139 | }; |
| 140 | |
| 141 | pm660l_s3_level_ao: regulator-pm660l-s3-level-ao { |
| 142 | regulator-name = "pm660l_s3_level_ao"; |
| 143 | qcom,set = <RPMH_REGULATOR_SET_ACTIVE>; |
| 144 | regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>; |
| 145 | regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>; |
| 146 | qcom,min-dropout-voltage-level = <(-1)>; |
| 147 | }; |
Manaf Meethalavalappu Pallikunhi | ef3ee25 | 2017-08-24 11:44:32 +0530 | [diff] [blame] | 148 | |
| 149 | cx_cdev: regulator-cdev { |
| 150 | compatible = "qcom,rpmh-reg-cdev"; |
| 151 | mboxes = <&qmp_aop 0>; |
| 152 | qcom,reg-resource-name = "cx"; |
| 153 | #cooling-cells = <2>; |
| 154 | }; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 155 | }; |
| 156 | |
| 157 | rpmh-regulator-ldoa1 { |
| 158 | compatible = "qcom,rpmh-vrm-regulator"; |
| 159 | mboxes = <&apps_rsc 0>; |
| 160 | qcom,resource-name = "ldoa1"; |
| 161 | qcom,supported-modes = |
| 162 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 163 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 164 | qcom,mode-threshold-currents = <0 1>; |
Sandeep Panda | ae88835 | 2017-11-15 13:15:31 +0530 | [diff] [blame] | 165 | proxy-supply = <&pm660_l1>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 166 | pm660_l1: regulator-pm660-l1 { |
| 167 | regulator-name = "pm660_l1"; |
| 168 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 169 | regulator-min-microvolt = <1200000>; |
| 170 | regulator-max-microvolt = <1250000>; |
Sandeep Panda | ae88835 | 2017-11-15 13:15:31 +0530 | [diff] [blame] | 171 | qcom,proxy-consumer-enable; |
| 172 | qcom,proxy-consumer-current = <43600>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 173 | qcom,init-voltage = <1200000>; |
| 174 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 175 | }; |
| 176 | }; |
| 177 | |
| 178 | rpmh-regulator-ldoa2 { |
| 179 | compatible = "qcom,rpmh-vrm-regulator"; |
| 180 | mboxes = <&apps_rsc 0>; |
| 181 | qcom,resource-name = "ldoa2"; |
| 182 | qcom,supported-modes = |
| 183 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 184 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 185 | qcom,mode-threshold-currents = <0 1>; |
| 186 | pm660_l2: regulator-pm660-l2 { |
| 187 | regulator-name = "pm660_l2"; |
| 188 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 189 | regulator-min-microvolt = <1000000>; |
| 190 | regulator-max-microvolt = <1000000>; |
| 191 | qcom,init-voltage = <1000000>; |
| 192 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 193 | }; |
| 194 | }; |
| 195 | |
| 196 | rpmh-regulator-ldoa3 { |
| 197 | compatible = "qcom,rpmh-vrm-regulator"; |
| 198 | mboxes = <&apps_rsc 0>; |
| 199 | qcom,resource-name = "ldoa3"; |
| 200 | qcom,supported-modes = |
| 201 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 202 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 203 | qcom,mode-threshold-currents = <0 1>; |
| 204 | pm660_l3: regulator-pm660-l3 { |
| 205 | regulator-name = "pm660_l3"; |
| 206 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 207 | regulator-min-microvolt = <1000000>; |
| 208 | regulator-max-microvolt = <1000000>; |
| 209 | qcom,init-voltage = <1000000>; |
| 210 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 211 | }; |
| 212 | }; |
| 213 | |
| 214 | rpmh-regulator-ldoa5 { |
| 215 | compatible = "qcom,rpmh-vrm-regulator"; |
| 216 | mboxes = <&apps_rsc 0>; |
| 217 | qcom,resource-name = "ldoa5"; |
| 218 | qcom,supported-modes = |
| 219 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 220 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 221 | qcom,mode-threshold-currents = <0 1>; |
| 222 | pm660_l5: regulator-pm660-l5 { |
| 223 | regulator-name = "pm660_l5"; |
| 224 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 225 | regulator-min-microvolt = <800000>; |
| 226 | regulator-max-microvolt = <800000>; |
| 227 | qcom,init-voltage = <800000>; |
| 228 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 229 | }; |
| 230 | }; |
| 231 | |
| 232 | rpmh-regulator-ldoa6 { |
| 233 | compatible = "qcom,rpmh-vrm-regulator"; |
| 234 | mboxes = <&apps_rsc 0>; |
| 235 | qcom,resource-name = "ldoa6"; |
| 236 | qcom,supported-modes = |
| 237 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 238 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 239 | qcom,mode-threshold-currents = <0 1>; |
| 240 | pm660_l6: regulator-pm660-l6 { |
| 241 | regulator-name = "pm660_l6"; |
| 242 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
Tirupathi Reddy | 8fbcede | 2017-11-14 10:11:49 +0530 | [diff] [blame] | 243 | regulator-min-microvolt = <1248000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 244 | regulator-max-microvolt = <1304000>; |
Tirupathi Reddy | 8fbcede | 2017-11-14 10:11:49 +0530 | [diff] [blame] | 245 | qcom,init-voltage = <1248000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 246 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 247 | }; |
| 248 | }; |
| 249 | |
| 250 | rpmh-regulator-ldoa7 { |
| 251 | compatible = "qcom,rpmh-vrm-regulator"; |
| 252 | mboxes = <&apps_rsc 0>; |
| 253 | qcom,resource-name = "ldoa7"; |
| 254 | qcom,supported-modes = |
| 255 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 256 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 257 | qcom,mode-threshold-currents = <0 1>; |
| 258 | pm660_l7: regulator-pm660-l7 { |
| 259 | regulator-name = "pm660_l7"; |
| 260 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 261 | regulator-min-microvolt = <1200000>; |
| 262 | regulator-max-microvolt = <1200000>; |
| 263 | qcom,init-voltage = <1200000>; |
| 264 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 265 | }; |
| 266 | }; |
| 267 | |
| 268 | rpmh-regulator-ldoa8 { |
| 269 | compatible = "qcom,rpmh-vrm-regulator"; |
| 270 | mboxes = <&apps_rsc 0>; |
| 271 | qcom,resource-name = "ldoa8"; |
| 272 | qcom,supported-modes = |
| 273 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 274 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 275 | qcom,mode-threshold-currents = <0 1>; |
| 276 | pm660_l8: regulator-pm660-l8 { |
| 277 | regulator-name = "pm660_l8"; |
| 278 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 279 | regulator-min-microvolt = <1800000>; |
| 280 | regulator-max-microvolt = <1800000>; |
| 281 | qcom,init-voltage = <1800000>; |
| 282 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 283 | }; |
| 284 | }; |
| 285 | |
| 286 | rpmh-regulator-ldoa9 { |
| 287 | compatible = "qcom,rpmh-vrm-regulator"; |
| 288 | mboxes = <&apps_rsc 0>; |
| 289 | qcom,resource-name = "ldoa9"; |
| 290 | qcom,supported-modes = |
| 291 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 292 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 293 | qcom,mode-threshold-currents = <0 1>; |
| 294 | pm660_l9: regulator-pm660-l9 { |
| 295 | regulator-name = "pm660_l9"; |
| 296 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 297 | regulator-min-microvolt = <1800000>; |
| 298 | regulator-max-microvolt = <1800000>; |
| 299 | qcom,init-voltage = <1800000>; |
| 300 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 301 | }; |
| 302 | }; |
| 303 | |
| 304 | rpmh-regulator-ldoa10 { |
| 305 | compatible = "qcom,rpmh-vrm-regulator"; |
| 306 | mboxes = <&apps_rsc 0>; |
| 307 | qcom,resource-name = "ldoa10"; |
| 308 | qcom,supported-modes = |
| 309 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 310 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 311 | qcom,mode-threshold-currents = <0 1>; |
| 312 | pm660_l10: regulator-pm660-l10 { |
| 313 | regulator-name = "pm660_l10"; |
| 314 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 315 | regulator-min-microvolt = <1800000>; |
| 316 | regulator-max-microvolt = <1800000>; |
| 317 | qcom,init-voltage = <1800000>; |
| 318 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 319 | }; |
| 320 | }; |
| 321 | |
| 322 | rpmh-regulator-ldoa11 { |
| 323 | compatible = "qcom,rpmh-vrm-regulator"; |
| 324 | mboxes = <&apps_rsc 0>; |
| 325 | qcom,resource-name = "ldoa11"; |
| 326 | qcom,supported-modes = |
| 327 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 328 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 329 | qcom,mode-threshold-currents = <0 1>; |
Sandeep Panda | ae88835 | 2017-11-15 13:15:31 +0530 | [diff] [blame] | 330 | proxy-supply = <&pm660_l11>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 331 | pm660_l11: regulator-pm660-l11 { |
| 332 | regulator-name = "pm660_l11"; |
| 333 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 334 | regulator-min-microvolt = <1800000>; |
| 335 | regulator-max-microvolt = <1800000>; |
Sandeep Panda | ae88835 | 2017-11-15 13:15:31 +0530 | [diff] [blame] | 336 | qcom,proxy-consumer-enable; |
| 337 | qcom,proxy-consumer-current = <115000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 338 | qcom,init-voltage = <1800000>; |
| 339 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 340 | }; |
| 341 | }; |
| 342 | |
| 343 | rpmh-regulator-ldoa12 { |
| 344 | compatible = "qcom,rpmh-vrm-regulator"; |
| 345 | mboxes = <&apps_rsc 0>; |
| 346 | qcom,resource-name = "ldoa12"; |
| 347 | qcom,supported-modes = |
| 348 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 349 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 350 | qcom,mode-threshold-currents = <0 1>; |
| 351 | pm660_l12: regulator-pm660-l12 { |
| 352 | regulator-name = "pm660_l12"; |
| 353 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 354 | regulator-min-microvolt = <1800000>; |
| 355 | regulator-max-microvolt = <1800000>; |
| 356 | qcom,init-voltage = <1800000>; |
| 357 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 358 | }; |
| 359 | }; |
| 360 | |
| 361 | rpmh-regulator-ldoa13 { |
| 362 | compatible = "qcom,rpmh-vrm-regulator"; |
| 363 | mboxes = <&apps_rsc 0>; |
| 364 | qcom,resource-name = "ldoa13"; |
| 365 | qcom,supported-modes = |
| 366 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 367 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 368 | qcom,mode-threshold-currents = <0 1>; |
| 369 | pm660_l13: regulator-pm660-l13 { |
| 370 | regulator-name = "pm660_l13"; |
| 371 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 372 | regulator-min-microvolt = <1800000>; |
| 373 | regulator-max-microvolt = <1800000>; |
| 374 | qcom,init-voltage = <1800000>; |
| 375 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 376 | }; |
| 377 | }; |
| 378 | |
| 379 | rpmh-regulator-ldoa14 { |
| 380 | compatible = "qcom,rpmh-vrm-regulator"; |
| 381 | mboxes = <&apps_rsc 0>; |
| 382 | qcom,resource-name = "ldoa14"; |
| 383 | qcom,supported-modes = |
| 384 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 385 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 386 | qcom,mode-threshold-currents = <0 1>; |
| 387 | pm660_l14: regulator-pm660-l14 { |
| 388 | regulator-name = "pm660_l14"; |
| 389 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 390 | regulator-min-microvolt = <1800000>; |
| 391 | regulator-max-microvolt = <1800000>; |
| 392 | qcom,init-voltage = <1800000>; |
| 393 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 394 | }; |
| 395 | }; |
| 396 | |
| 397 | rpmh-regulator-ldoa15 { |
| 398 | compatible = "qcom,rpmh-vrm-regulator"; |
| 399 | mboxes = <&apps_rsc 0>; |
| 400 | qcom,resource-name = "ldoa15"; |
| 401 | qcom,supported-modes = |
| 402 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 403 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 404 | qcom,mode-threshold-currents = <0 1>; |
| 405 | pm660_l15: regulator-pm660-l15 { |
| 406 | regulator-name = "pm660_l15"; |
| 407 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 408 | regulator-min-microvolt = <1800000>; |
| 409 | regulator-max-microvolt = <2950000>; |
| 410 | qcom,init-voltage = <1800000>; |
| 411 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 412 | }; |
| 413 | }; |
| 414 | |
| 415 | rpmh-regulator-ldoa16 { |
| 416 | compatible = "qcom,rpmh-vrm-regulator"; |
| 417 | mboxes = <&apps_rsc 0>; |
| 418 | qcom,resource-name = "ldoa16"; |
| 419 | qcom,supported-modes = |
| 420 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 421 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 422 | qcom,mode-threshold-currents = <0 1>; |
| 423 | pm660_l16: regulator-pm660-l16 { |
| 424 | regulator-name = "pm660_l16"; |
| 425 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 426 | regulator-min-microvolt = <2700000>; |
| 427 | regulator-max-microvolt = <2700000>; |
| 428 | qcom,init-voltage = <2700000>; |
| 429 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 430 | }; |
| 431 | }; |
| 432 | |
| 433 | rpmh-regulator-ldoa17 { |
| 434 | compatible = "qcom,rpmh-vrm-regulator"; |
| 435 | mboxes = <&apps_rsc 0>; |
| 436 | qcom,resource-name = "ldoa17"; |
| 437 | qcom,supported-modes = |
| 438 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 439 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 440 | qcom,mode-threshold-currents = <0 1>; |
| 441 | pm660_l17: regulator-pm660-l17 { |
| 442 | regulator-name = "pm660_l17"; |
| 443 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 444 | regulator-min-microvolt = <1800000>; |
| 445 | regulator-max-microvolt = <2950000>; |
| 446 | qcom,init-voltage = <1800000>; |
| 447 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 448 | }; |
| 449 | }; |
| 450 | |
| 451 | rpmh-regulator-ldoa19 { |
| 452 | compatible = "qcom,rpmh-vrm-regulator"; |
| 453 | mboxes = <&apps_rsc 0>; |
| 454 | qcom,resource-name = "ldoa19"; |
| 455 | qcom,supported-modes = |
| 456 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 457 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 458 | qcom,mode-threshold-currents = <0 1>; |
| 459 | pm660_l19: regulator-pm660-l19 { |
| 460 | regulator-name = "pm660_l19"; |
| 461 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
Tirupathi Reddy | 573886e | 2017-12-06 09:03:52 +0530 | [diff] [blame] | 462 | regulator-min-microvolt = <3000000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 463 | regulator-max-microvolt = <3312000>; |
Tirupathi Reddy | 573886e | 2017-12-06 09:03:52 +0530 | [diff] [blame] | 464 | qcom,init-voltage = <3000000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 465 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 466 | }; |
| 467 | }; |
| 468 | |
| 469 | rpmh-regulator-ldob1 { |
| 470 | compatible = "qcom,rpmh-vrm-regulator"; |
| 471 | mboxes = <&apps_rsc 0>; |
| 472 | qcom,resource-name = "ldob1"; |
| 473 | qcom,supported-modes = |
| 474 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 475 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 476 | qcom,mode-threshold-currents = <0 1>; |
Sandeep Panda | ae88835 | 2017-11-15 13:15:31 +0530 | [diff] [blame] | 477 | proxy-supply = <&pm660l_l1>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 478 | pm660l_l1: regulator-pm660l-l1 { |
| 479 | regulator-name = "pm660l_l1"; |
| 480 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 481 | regulator-min-microvolt = <880000>; |
| 482 | regulator-max-microvolt = <900000>; |
Sandeep Panda | ae88835 | 2017-11-15 13:15:31 +0530 | [diff] [blame] | 483 | qcom,proxy-consumer-enable; |
| 484 | qcom,proxy-consumer-current = <72000>; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 485 | qcom,init-voltage = <880000>; |
| 486 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 487 | }; |
| 488 | }; |
| 489 | |
| 490 | rpmh-regulator-ldob2 { |
| 491 | compatible = "qcom,rpmh-vrm-regulator"; |
| 492 | mboxes = <&apps_rsc 0>; |
| 493 | qcom,resource-name = "ldob2"; |
| 494 | qcom,supported-modes = |
| 495 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 496 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 497 | qcom,mode-threshold-currents = <0 1>; |
| 498 | pm660l_l2: regulator-pm660l-l2 { |
| 499 | regulator-name = "pm660l_l2"; |
| 500 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 501 | regulator-min-microvolt = <1800000>; |
| 502 | regulator-max-microvolt = <2960000>; |
| 503 | qcom,init-voltage = <1800000>; |
| 504 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 505 | }; |
| 506 | }; |
| 507 | |
| 508 | rpmh-regulator-ldob3 { |
| 509 | compatible = "qcom,rpmh-vrm-regulator"; |
| 510 | mboxes = <&apps_rsc 0>; |
| 511 | qcom,resource-name = "ldob3"; |
| 512 | qcom,supported-modes = |
| 513 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 514 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 515 | qcom,mode-threshold-currents = <0 1>; |
| 516 | pm660l_l3: regulator-pm660l-l3 { |
| 517 | regulator-name = "pm660l_l3"; |
| 518 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 519 | regulator-min-microvolt = <2850000>; |
| 520 | regulator-max-microvolt = <3008000>; |
| 521 | qcom,init-voltage = <2850000>; |
| 522 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 523 | }; |
| 524 | }; |
| 525 | |
| 526 | rpmh-regulator-ldob4 { |
| 527 | compatible = "qcom,rpmh-vrm-regulator"; |
| 528 | mboxes = <&apps_rsc 0>; |
| 529 | qcom,resource-name = "ldob4"; |
| 530 | qcom,supported-modes = |
| 531 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 532 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 533 | qcom,mode-threshold-currents = <0 1>; |
| 534 | pm660l_l4: regulator-pm660l-l4 { |
| 535 | regulator-name = "pm660l_l4"; |
| 536 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 537 | regulator-min-microvolt = <2960000>; |
| 538 | regulator-max-microvolt = <2960000>; |
| 539 | qcom,init-voltage = <2960000>; |
| 540 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 541 | }; |
| 542 | }; |
| 543 | |
| 544 | rpmh-regulator-ldob5 { |
| 545 | compatible = "qcom,rpmh-vrm-regulator"; |
| 546 | mboxes = <&apps_rsc 0>; |
| 547 | qcom,resource-name = "ldob5"; |
| 548 | qcom,supported-modes = |
| 549 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 550 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 551 | qcom,mode-threshold-currents = <0 1>; |
| 552 | pm660l_l5: regulator-pm660l-l5 { |
| 553 | regulator-name = "pm660l_l5"; |
| 554 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 555 | regulator-min-microvolt = <2960000>; |
| 556 | regulator-max-microvolt = <2960000>; |
| 557 | qcom,init-voltage = <2960000>; |
| 558 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 559 | }; |
| 560 | }; |
| 561 | |
| 562 | rpmh-regulator-ldob6 { |
| 563 | compatible = "qcom,rpmh-vrm-regulator"; |
| 564 | mboxes = <&apps_rsc 0>; |
| 565 | qcom,resource-name = "ldob6"; |
| 566 | qcom,supported-modes = |
| 567 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 568 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 569 | qcom,mode-threshold-currents = <0 1>; |
| 570 | pm660l_l6: regulator-pm660l-l6 { |
| 571 | regulator-name = "pm660l_l6"; |
| 572 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 573 | regulator-min-microvolt = <3008000>; |
| 574 | regulator-max-microvolt = <3300000>; |
| 575 | qcom,init-voltage = <3008000>; |
| 576 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 577 | }; |
| 578 | }; |
| 579 | |
| 580 | rpmh-regulator-ldob7 { |
| 581 | compatible = "qcom,rpmh-vrm-regulator"; |
| 582 | mboxes = <&apps_rsc 0>; |
| 583 | qcom,resource-name = "ldob7"; |
| 584 | qcom,supported-modes = |
| 585 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 586 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 587 | qcom,mode-threshold-currents = <0 1>; |
| 588 | pm660l_l7: regulator-pm660l-l7 { |
| 589 | regulator-name = "pm660l_l7"; |
| 590 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 591 | regulator-min-microvolt = <3088000>; |
| 592 | regulator-max-microvolt = <3100000>; |
| 593 | qcom,init-voltage = <3088000>; |
| 594 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 595 | }; |
| 596 | }; |
| 597 | |
| 598 | rpmh-regulator-ldob8 { |
| 599 | compatible = "qcom,rpmh-vrm-regulator"; |
| 600 | mboxes = <&apps_rsc 0>; |
| 601 | qcom,resource-name = "ldob8"; |
| 602 | qcom,supported-modes = |
| 603 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 604 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 605 | qcom,mode-threshold-currents = <0 1>; |
| 606 | pm660l_l8: regulator-pm660l-l8 { |
| 607 | regulator-name = "pm660l_l8"; |
| 608 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 609 | regulator-min-microvolt = <3300000>; |
| 610 | regulator-max-microvolt = <3312000>; |
| 611 | qcom,init-voltage = <3300000>; |
| 612 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
| 613 | }; |
| 614 | }; |
| 615 | |
| 616 | /* pm660l L9 = VDD_LPI_CX supply */ |
| 617 | rpmh-regulator-lcxlvl { |
| 618 | compatible = "qcom,rpmh-arc-regulator"; |
| 619 | mboxes = <&apps_rsc 0>; |
| 620 | qcom,resource-name = "lcx.lvl"; |
| 621 | pm660l_l9_level: regulator-pm660l-l9-level { |
| 622 | regulator-name = "pm660l_l9_level"; |
| 623 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 624 | regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>; |
| 625 | regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>; |
| 626 | }; |
| 627 | }; |
| 628 | |
| 629 | /* pm660l L10 = VDD_LPI_MX supply */ |
| 630 | rpmh-regulator-lmxlvl { |
| 631 | compatible = "qcom,rpmh-arc-regulator"; |
| 632 | mboxes = <&apps_rsc 0>; |
| 633 | qcom,resource-name = "lmx.lvl"; |
| 634 | pm660l_l10_level: regulator-pm660l-l10-level { |
| 635 | regulator-name = "pm660l_l10_level"; |
| 636 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 637 | regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>; |
| 638 | regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>; |
| 639 | }; |
| 640 | }; |
| 641 | |
| 642 | rpmh-regulator-bobb1 { |
| 643 | compatible = "qcom,rpmh-vrm-regulator"; |
| 644 | mboxes = <&apps_rsc 0>; |
| 645 | qcom,resource-name = "bobb1"; |
| 646 | pm660l_bob: regulator-pm660l-bob { |
| 647 | regulator-name = "pm660l_bob"; |
| 648 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 649 | regulator-min-microvolt = <3312000>; |
| 650 | regulator-max-microvolt = <3312000>; |
| 651 | qcom,init-voltage = <3312000>; |
| 652 | }; |
| 653 | }; |
Tirupathi Reddy | 2ca9122 | 2017-09-20 10:49:23 +0530 | [diff] [blame] | 654 | |
| 655 | refgen: refgen-regulator@ff1000 { |
| 656 | compatible = "qcom,refgen-regulator"; |
| 657 | reg = <0xff1000 0x60>; |
| 658 | regulator-name = "refgen"; |
| 659 | regulator-enable-ramp-delay = <5>; |
| 660 | proxy-supply = <&refgen>; |
| 661 | qcom,proxy-consumer-enable; |
| 662 | regulator-always-on; |
| 663 | }; |
Tirupathi Reddy | 58064f1 | 2017-07-27 16:37:22 +0530 | [diff] [blame] | 664 | }; |