Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2015-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 A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include <dt-bindings/msm/power-on.h> |
| 14 | |
| 15 | &spmi_bus { |
| 16 | qcom,pmi8950@2 { |
| 17 | compatible ="qcom,spmi-pmic"; |
| 18 | reg = <0x2 SPMI_USID>; |
| 19 | #address-cells = <2>; |
| 20 | #size-cells = <0>; |
| 21 | |
| 22 | pmi8950_revid: qcom,revid@100 { |
| 23 | compatible = "qcom,qpnp-revid"; |
| 24 | reg = <0x100 0x100>; |
| 25 | }; |
| 26 | |
| 27 | qcom,power-on@800 { |
| 28 | compatible = "qcom,qpnp-power-on"; |
| 29 | reg = <0x800 0x100>; |
| 30 | qcom,secondary-pon-reset; |
| 31 | qcom,hard-reset-poweroff-type = |
| 32 | <PON_POWER_OFF_SHUTDOWN>; |
| 33 | |
| 34 | pon_perph_reg: qcom,pon_perph_reg { |
| 35 | regulator-name = "pon_spare_reg"; |
| 36 | qcom,pon-spare-reg-addr = <0x8c>; |
| 37 | qcom,pon-spare-reg-bit = <1>; |
| 38 | }; |
| 39 | }; |
| 40 | |
| 41 | pmi8950_vadc: vadc@3100 { |
| 42 | compatible = "qcom,qpnp-vadc"; |
| 43 | reg = <0x3100 0x100>; |
| 44 | #address-cells = <1>; |
| 45 | #size-cells = <0>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 46 | interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 47 | interrupt-names = "eoc-int-en-set"; |
| 48 | qcom,adc-bit-resolution = <15>; |
| 49 | qcom,adc-vdd-reference = <1800>; |
| 50 | qcom,vadc-poll-eoc; |
| 51 | |
| 52 | chan@0 { |
| 53 | label = "usbin"; |
| 54 | reg = <0>; |
| 55 | qcom,decimation = <0>; |
| 56 | qcom,pre-div-channel-scaling = <4>; |
| 57 | qcom,calibration-type = "absolute"; |
| 58 | qcom,scale-function = <0>; |
| 59 | qcom,hw-settle-time = <0>; |
| 60 | qcom,fast-avg-setup = <0>; |
| 61 | }; |
| 62 | |
| 63 | chan@1 { |
| 64 | label = "dcin"; |
| 65 | reg = <1>; |
| 66 | qcom,decimation = <0>; |
| 67 | qcom,pre-div-channel-scaling = <4>; |
| 68 | qcom,calibration-type = "absolute"; |
| 69 | qcom,scale-function = <0>; |
| 70 | qcom,hw-settle-time = <0>; |
| 71 | qcom,fast-avg-setup = <0>; |
| 72 | }; |
| 73 | |
| 74 | chan@3 { |
| 75 | label = "vchg_sns"; |
| 76 | reg = <3>; |
| 77 | qcom,decimation = <0>; |
| 78 | qcom,pre-div-channel-scaling = <1>; |
| 79 | qcom,calibration-type = "absolute"; |
| 80 | qcom,scale-function = <0>; |
| 81 | qcom,hw-settle-time = <0>; |
| 82 | qcom,fast-avg-setup = <0>; |
| 83 | }; |
| 84 | |
| 85 | chan@9 { |
| 86 | label = "ref_625mv"; |
| 87 | reg = <9>; |
| 88 | qcom,decimation = <0>; |
| 89 | qcom,pre-div-channel-scaling = <0>; |
| 90 | qcom,calibration-type = "absolute"; |
| 91 | qcom,scale-function = <0>; |
| 92 | qcom,hw-settle-time = <0>; |
| 93 | qcom,fast-avg-setup = <0>; |
| 94 | }; |
| 95 | |
| 96 | chan@a { |
| 97 | label = "ref_1250v"; |
| 98 | reg = <0xa>; |
| 99 | qcom,decimation = <0>; |
| 100 | qcom,pre-div-channel-scaling = <0>; |
| 101 | qcom,calibration-type = "absolute"; |
| 102 | qcom,scale-function = <0>; |
| 103 | qcom,hw-settle-time = <0>; |
| 104 | qcom,fast-avg-setup = <0>; |
| 105 | }; |
| 106 | |
| 107 | chan@d { |
| 108 | label = "chg_temp"; |
| 109 | reg = <0xd>; |
| 110 | qcom,decimation = <0>; |
| 111 | qcom,pre-div-channel-scaling = <0>; |
| 112 | qcom,calibration-type = "absolute"; |
| 113 | qcom,scale-function = <16>; |
| 114 | qcom,hw-settle-time = <0>; |
| 115 | qcom,fast-avg-setup = <0>; |
| 116 | qcom,vadc-thermal-node; |
| 117 | }; |
| 118 | |
| 119 | chan@43 { |
| 120 | label = "usb_dp"; |
| 121 | reg = <0x43>; |
| 122 | qcom,decimation = <0>; |
| 123 | qcom,pre-div-channel-scaling = <1>; |
| 124 | qcom,calibration-type = "absolute"; |
| 125 | qcom,scale-function = <0>; |
| 126 | qcom,hw-settle-time = <0>; |
| 127 | qcom,fast-avg-setup = <0>; |
| 128 | }; |
| 129 | |
| 130 | chan@44 { |
| 131 | label = "usb_dm"; |
| 132 | reg = <0x44>; |
| 133 | qcom,decimation = <0>; |
| 134 | qcom,pre-div-channel-scaling = <1>; |
| 135 | qcom,calibration-type = "absolute"; |
| 136 | qcom,scale-function = <0>; |
| 137 | qcom,hw-settle-time = <0>; |
| 138 | qcom,fast-avg-setup = <0>; |
| 139 | }; |
| 140 | }; |
| 141 | |
| 142 | pmi8950_gpios: gpios { |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 143 | compatible = "qcom,qpnp-pin"; |
| 144 | gpio-controller; |
| 145 | #gpio-cells = <2>; |
| 146 | #address-cells = <1>; |
| 147 | #size-cells = <1>; |
| 148 | label = "pmi8950-gpio"; |
| 149 | |
| 150 | gpio@c000 { |
| 151 | reg = <0xc000 0x100>; |
| 152 | qcom,pin-num = <1>; |
| 153 | status = "disabled"; |
| 154 | }; |
| 155 | |
| 156 | gpio@c100 { |
| 157 | reg = <0xc100 0x100>; |
| 158 | qcom,pin-num = <2>; |
| 159 | status = "disabled"; |
| 160 | }; |
| 161 | }; |
| 162 | |
| 163 | pmi8950_mpps: mpps { |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 164 | compatible = "qcom,qpnp-pin"; |
| 165 | gpio-controller; |
| 166 | #gpio-cells = <2>; |
| 167 | #address-cells = <1>; |
| 168 | #size-cells = <1>; |
| 169 | label = "pmi8950-mpp"; |
| 170 | |
| 171 | mpp@a000 { |
| 172 | reg = <0xa000 0x100>; |
| 173 | qcom,pin-num = <1>; |
| 174 | status = "disabled"; |
| 175 | }; |
| 176 | |
| 177 | mpp@a100 { |
| 178 | reg = <0xa100 0x100>; |
| 179 | qcom,pin-num = <2>; |
| 180 | status = "disabled"; |
| 181 | }; |
| 182 | |
| 183 | mpp@a200 { |
| 184 | reg = <0xa200 0x100>; |
| 185 | qcom,pin-num = <3>; |
| 186 | status = "disabled"; |
| 187 | }; |
| 188 | |
| 189 | mpp@a300 { |
| 190 | reg = <0xa300 0x100>; |
| 191 | qcom,pin-num = <4>; |
| 192 | status = "disabled"; |
| 193 | }; |
| 194 | }; |
| 195 | |
| 196 | pmi8950_charger: qcom,qpnp-smbcharger { |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 197 | compatible = "qcom,qpnp-smbcharger"; |
| 198 | #address-cells = <1>; |
| 199 | #size-cells = <1>; |
| 200 | |
| 201 | qcom,iterm-ma = <100>; |
| 202 | qcom,float-voltage-mv = <4200>; |
| 203 | qcom,resume-delta-mv = <200>; |
| 204 | qcom,chg-inhibit-fg; |
| 205 | qcom,rparasitic-uohm = <100000>; |
| 206 | qcom,bms-psy-name = "bms"; |
| 207 | qcom,thermal-mitigation = <1500 700 600 0>; |
| 208 | qcom,parallel-usb-min-current-ma = <1400>; |
| 209 | qcom,parallel-usb-9v-min-current-ma = <900>; |
| 210 | qcom,parallel-allowed-lowering-ma = <500>; |
| 211 | qcom,pmic-revid = <&pmi8950_revid>; |
| 212 | qcom,force-aicl-rerun; |
| 213 | qcom,aicl-rerun-period-s = <180>; |
| 214 | qcom,autoadjust-vfloat; |
| 215 | |
| 216 | qcom,chgr@1000 { |
| 217 | reg = <0x1000 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 218 | interrupts = <0x2 0x10 0x0 IRQ_TYPE_NONE>, |
| 219 | <0x2 0x10 0x1 IRQ_TYPE_NONE>, |
| 220 | <0x2 0x10 0x2 IRQ_TYPE_NONE>, |
| 221 | <0x2 0x10 0x3 IRQ_TYPE_NONE>, |
| 222 | <0x2 0x10 0x4 IRQ_TYPE_NONE>, |
| 223 | <0x2 0x10 0x5 IRQ_TYPE_NONE>, |
| 224 | <0x2 0x10 0x6 IRQ_TYPE_NONE>, |
| 225 | <0x2 0x10 0x7 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 226 | |
| 227 | interrupt-names = "chg-error", |
| 228 | "chg-inhibit", |
| 229 | "chg-prechg-sft", |
| 230 | "chg-complete-chg-sft", |
| 231 | "chg-p2f-thr", |
| 232 | "chg-rechg-thr", |
| 233 | "chg-taper-thr", |
| 234 | "chg-tcc-thr"; |
| 235 | }; |
| 236 | |
| 237 | qcom,otg@1100 { |
| 238 | reg = <0x1100 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 239 | interrupts = <0x2 0x11 0x0 IRQ_TYPE_NONE>, |
| 240 | <0x2 0x11 0x1 IRQ_TYPE_NONE>, |
| 241 | <0x2 0x11 0x3 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 242 | interrupt-names = "otg-fail", |
| 243 | "otg-oc", |
| 244 | "usbid-change"; |
| 245 | }; |
| 246 | |
| 247 | qcom,bat-if@1200 { |
| 248 | reg = <0x1200 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 249 | interrupts = <0x2 0x12 0x0 IRQ_TYPE_NONE>, |
| 250 | <0x2 0x12 0x1 IRQ_TYPE_NONE>, |
| 251 | <0x2 0x12 0x2 IRQ_TYPE_NONE>, |
| 252 | <0x2 0x12 0x3 IRQ_TYPE_NONE>, |
| 253 | <0x2 0x12 0x4 IRQ_TYPE_NONE>, |
| 254 | <0x2 0x12 0x5 IRQ_TYPE_NONE>, |
| 255 | <0x2 0x12 0x6 IRQ_TYPE_NONE>, |
| 256 | <0x2 0x12 0x7 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 257 | |
| 258 | interrupt-names = "batt-hot", |
| 259 | "batt-warm", |
| 260 | "batt-cold", |
| 261 | "batt-cool", |
| 262 | "batt-ov", |
| 263 | "batt-low", |
| 264 | "batt-missing", |
| 265 | "batt-term-missing"; |
| 266 | }; |
| 267 | |
| 268 | qcom,usb-chgpth@1300 { |
| 269 | reg = <0x1300 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 270 | interrupts = <0x2 0x13 0x0 IRQ_TYPE_NONE>, |
| 271 | <0x2 0x13 0x1 IRQ_TYPE_NONE>, |
| 272 | <0x2 0x13 0x2 IRQ_TYPE_NONE>, |
| 273 | <0x2 0x13 0x5 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 274 | |
| 275 | interrupt-names = "usbin-uv", |
| 276 | "usbin-ov", |
| 277 | "usbin-src-det", |
| 278 | "aicl-done"; |
| 279 | }; |
| 280 | |
| 281 | qcom,dc-chgpth@1400 { |
| 282 | reg = <0x1400 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 283 | interrupts = <0x2 0x14 0x0 IRQ_TYPE_NONE>, |
| 284 | <0x2 0x14 0x1 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 285 | interrupt-names = "dcin-uv", |
| 286 | "dcin-ov"; |
| 287 | }; |
| 288 | |
| 289 | qcom,chgr-misc@1600 { |
| 290 | reg = <0x1600 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 291 | interrupts = <0x2 0x16 0x0 IRQ_TYPE_NONE>, |
| 292 | <0x2 0x16 0x1 IRQ_TYPE_NONE>, |
| 293 | <0x2 0x16 0x2 IRQ_TYPE_NONE>, |
| 294 | <0x2 0x16 0x3 IRQ_TYPE_NONE>, |
| 295 | <0x2 0x16 0x4 IRQ_TYPE_NONE>, |
| 296 | <0x2 0x16 0x5 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 297 | |
| 298 | interrupt-names = "power-ok", |
| 299 | "temp-shutdown", |
| 300 | "wdog-timeout", |
| 301 | "flash-fail", |
| 302 | "otst2", |
| 303 | "otst3"; |
| 304 | }; |
| 305 | |
| 306 | smbcharger_charger_otg: qcom,smbcharger-boost-otg { |
| 307 | regulator-name = "smbcharger_charger_otg"; |
| 308 | }; |
| 309 | }; |
| 310 | |
| 311 | pmi8950_fg: qcom,fg { |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 312 | compatible = "qcom,qpnp-fg"; |
| 313 | #address-cells = <1>; |
| 314 | #size-cells = <1>; |
| 315 | qcom,resume-soc = <95>; |
| 316 | status = "okay"; |
| 317 | qcom,bcl-lm-threshold-ma = <127>; |
| 318 | qcom,bcl-mh-threshold-ma = <405>; |
| 319 | qcom,fg-iterm-ma = <150>; |
| 320 | qcom,fg-chg-iterm-ma = <100>; |
| 321 | qcom,pmic-revid = <&pmi8950_revid>; |
| 322 | qcom,fg-cutoff-voltage-mv = <3500>; |
| 323 | qcom,cycle-counter-en; |
| 324 | qcom,capacity-learning-on; |
| 325 | |
| 326 | qcom,fg-soc@4000 { |
| 327 | status = "okay"; |
| 328 | reg = <0x4000 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 329 | interrupts = <0x2 0x40 0x0 IRQ_TYPE_NONE>, |
| 330 | <0x2 0x40 0x1 IRQ_TYPE_NONE>, |
| 331 | <0x2 0x40 0x2 IRQ_TYPE_NONE>, |
| 332 | <0x2 0x40 0x3 IRQ_TYPE_NONE>, |
| 333 | <0x2 0x40 0x4 IRQ_TYPE_NONE>, |
| 334 | <0x2 0x40 0x5 IRQ_TYPE_NONE>, |
| 335 | <0x2 0x40 0x6 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 336 | |
| 337 | interrupt-names = "high-soc", |
| 338 | "low-soc", |
| 339 | "full-soc", |
| 340 | "empty-soc", |
| 341 | "delta-soc", |
| 342 | "first-est-done", |
| 343 | "update-soc"; |
| 344 | }; |
| 345 | |
| 346 | qcom,fg-batt@4100 { |
| 347 | reg = <0x4100 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 348 | interrupts = <0x2 0x41 0x0 IRQ_TYPE_NONE>, |
| 349 | <0x2 0x41 0x1 IRQ_TYPE_NONE>, |
| 350 | <0x2 0x41 0x2 IRQ_TYPE_NONE>, |
| 351 | <0x2 0x41 0x3 IRQ_TYPE_NONE>, |
| 352 | <0x2 0x41 0x4 IRQ_TYPE_NONE>, |
| 353 | <0x2 0x41 0x5 IRQ_TYPE_NONE>, |
| 354 | <0x2 0x41 0x6 IRQ_TYPE_NONE>, |
| 355 | <0x2 0x41 0x7 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 356 | |
| 357 | interrupt-names = "soft-cold", |
| 358 | "soft-hot", |
| 359 | "vbatt-low", |
| 360 | "batt-ided", |
| 361 | "batt-id-req", |
| 362 | "batt-unknown", |
| 363 | "batt-missing", |
| 364 | "batt-match"; |
| 365 | }; |
| 366 | |
| 367 | qcom,revid-tp-rev@1f1 { |
| 368 | reg = <0x1f1 0x1>; |
| 369 | }; |
| 370 | |
| 371 | qcom,fg-memif@4400 { |
| 372 | status = "okay"; |
| 373 | reg = <0x4400 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 374 | interrupts = <0x2 0x44 0x0 IRQ_TYPE_NONE>, |
| 375 | <0x2 0x44 0x2 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 376 | |
| 377 | interrupt-names = "mem-avail", |
| 378 | "data-rcvry-sug"; |
| 379 | }; |
| 380 | }; |
| 381 | |
| 382 | bcl@4200 { |
| 383 | compatible = "qcom,msm-bcl"; |
| 384 | reg = <0x4200 0xFF 0x88E 0x2>; |
| 385 | reg-names = "fg_user_adc", "pon_spare"; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 386 | interrupts = <0x2 0x42 0x0 IRQ_TYPE_NONE>, |
| 387 | <0x2 0x42 0x1 IRQ_TYPE_NONE>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 388 | interrupt-names = "bcl-high-ibat-int", |
| 389 | "bcl-low-vbat-int"; |
| 390 | qcom,vbat-scaling-factor = <39000>; |
| 391 | qcom,vbat-gain-numerator = <1>; |
| 392 | qcom,vbat-gain-denominator = <128>; |
| 393 | qcom,vbat-polling-delay-ms = <100>; |
| 394 | qcom,ibat-scaling-factor = <39000>; |
| 395 | qcom,ibat-gain-numerator = <1>; |
| 396 | qcom,ibat-gain-denominator = <128>; |
| 397 | qcom,ibat-offset-numerator = <1200>; |
| 398 | qcom,ibat-offset-denominator = <1>; |
| 399 | qcom,ibat-polling-delay-ms = <100>; |
| 400 | qcom,inhibit-derating-ua = <550000>; |
| 401 | }; |
| 402 | |
| 403 | qcom,leds@a100 { |
| 404 | compatible = "qcom,leds-qpnp"; |
| 405 | reg = <0xa100 0x100>; |
| 406 | label = "mpp"; |
| 407 | }; |
| 408 | }; |
| 409 | |
| 410 | qcom,pmi8950@3 { |
| 411 | compatible ="qcom,spmi-pmic"; |
| 412 | reg = <0x3 SPMI_USID>; |
| 413 | #address-cells = <1>; |
| 414 | #size-cells = <1>; |
| 415 | |
| 416 | pmi8950_pwm: pwm@b000 { |
| 417 | status = "disabled"; |
| 418 | compatible = "qcom,qpnp-pwm"; |
| 419 | reg = <0xb000 0x100>; |
| 420 | reg-names = "qpnp-lpg-channel-base"; |
| 421 | qcom,channel-id = <0>; |
| 422 | qcom,supported-sizes = <6>, <9>; |
| 423 | #pwm-cells = <2>; |
| 424 | }; |
| 425 | |
| 426 | labibb: qpnp-labibb-regulator { |
| 427 | status = "disabled"; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 428 | compatible = "qcom,qpnp-labibb-regulator"; |
| 429 | #address-cells = <1>; |
| 430 | #size-cells = <1>; |
| 431 | qcom,pmic-revid = <&pmi8950_revid>; |
Kiran Gunda | d7e1d7c | 2017-11-29 17:07:25 +0530 | [diff] [blame] | 432 | qcom,qpnp-labibb-mode = "lcd"; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 433 | |
| 434 | ibb_regulator: qcom,ibb@dc00 { |
| 435 | reg = <0xdc00 0x100>; |
| 436 | reg-names = "ibb_reg"; |
| 437 | regulator-name = "ibb_reg"; |
| 438 | |
| 439 | regulator-min-microvolt = <4600000>; |
| 440 | regulator-max-microvolt = <6000000>; |
| 441 | |
| 442 | qcom,qpnp-ibb-min-voltage = <1400000>; |
| 443 | qcom,qpnp-ibb-step-size = <100000>; |
| 444 | qcom,qpnp-ibb-slew-rate = <2000000>; |
| 445 | qcom,qpnp-ibb-use-default-voltage; |
| 446 | qcom,qpnp-ibb-init-voltage = <5500000>; |
| 447 | qcom,qpnp-ibb-init-amoled-voltage = <4000000>; |
| 448 | qcom,qpnp-ibb-init-lcd-voltage = <5500000>; |
| 449 | |
| 450 | qcom,qpnp-ibb-soft-start = <1000>; |
| 451 | |
| 452 | qcom,qpnp-ibb-discharge-resistor = <32>; |
| 453 | qcom,qpnp-ibb-lab-pwrup-delay = <8000>; |
| 454 | qcom,qpnp-ibb-lab-pwrdn-delay = <8000>; |
| 455 | qcom,qpnp-ibb-en-discharge; |
| 456 | |
| 457 | qcom,qpnp-ibb-full-pull-down; |
| 458 | qcom,qpnp-ibb-pull-down-enable; |
| 459 | qcom,qpnp-ibb-switching-clock-frequency = |
| 460 | <1480>; |
| 461 | qcom,qpnp-ibb-limit-maximum-current = <1550>; |
| 462 | qcom,qpnp-ibb-debounce-cycle = <16>; |
| 463 | qcom,qpnp-ibb-limit-max-current-enable; |
| 464 | qcom,qpnp-ibb-ps-enable; |
| 465 | }; |
| 466 | |
| 467 | lab_regulator: qcom,lab@de00 { |
| 468 | reg = <0xde00 0x100>; |
| 469 | reg-names = "lab"; |
| 470 | regulator-name = "lab_reg"; |
| 471 | |
| 472 | regulator-min-microvolt = <4600000>; |
| 473 | regulator-max-microvolt = <6000000>; |
| 474 | |
| 475 | qcom,qpnp-lab-min-voltage = <4600000>; |
| 476 | qcom,qpnp-lab-step-size = <100000>; |
| 477 | qcom,qpnp-lab-slew-rate = <5000>; |
| 478 | qcom,qpnp-lab-use-default-voltage; |
| 479 | qcom,qpnp-lab-init-voltage = <5500000>; |
| 480 | qcom,qpnp-lab-init-amoled-voltage = <4600000>; |
| 481 | qcom,qpnp-lab-init-lcd-voltage = <5500000>; |
| 482 | |
| 483 | qcom,qpnp-lab-soft-start = <800>; |
| 484 | |
| 485 | qcom,qpnp-lab-full-pull-down; |
| 486 | qcom,qpnp-lab-pull-down-enable; |
| 487 | qcom,qpnp-lab-switching-clock-frequency = |
| 488 | <1600>; |
| 489 | qcom,qpnp-lab-limit-maximum-current = <800>; |
| 490 | qcom,qpnp-lab-limit-max-current-enable; |
| 491 | qcom,qpnp-lab-ps-threshold = <40>; |
| 492 | qcom,qpnp-lab-ps-enable; |
| 493 | qcom,qpnp-lab-nfet-size = <100>; |
| 494 | qcom,qpnp-lab-pfet-size = <100>; |
| 495 | qcom,qpnp-lab-max-precharge-time = <500>; |
| 496 | }; |
| 497 | |
| 498 | }; |
| 499 | |
| 500 | wled: qcom,leds@d800 { |
| 501 | compatible = "qcom,qpnp-wled"; |
| 502 | reg = <0xd800 0x100>, |
| 503 | <0xd900 0x100>, |
| 504 | <0xdc00 0x100>, |
| 505 | <0xde00 0x100>; |
| 506 | reg-names = "qpnp-wled-ctrl-base", |
| 507 | "qpnp-wled-sink-base", |
| 508 | "qpnp-wled-ibb-base", |
| 509 | "qpnp-wled-lab-base"; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 510 | interrupts = <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 511 | interrupt-names = "sc-irq"; |
| 512 | status = "okay"; |
| 513 | linux,name = "wled"; |
| 514 | linux,default-trigger = "bkl-trigger"; |
| 515 | qcom,fdbk-output = "auto"; |
| 516 | qcom,vref-mv = <350>; |
| 517 | qcom,switch-freq-khz = <800>; |
| 518 | qcom,ovp-mv = <29500>; |
| 519 | qcom,ilim-ma = <980>; |
| 520 | qcom,boost-duty-ns = <26>; |
| 521 | qcom,mod-freq-khz = <9600>; |
| 522 | qcom,dim-mode = "hybrid"; |
| 523 | qcom,dim-method = "linear"; |
| 524 | qcom,hyb-thres = <625>; |
| 525 | qcom,sync-dly-us = <800>; |
| 526 | qcom,fs-curr-ua = <20000>; |
| 527 | qcom,led-strings-list = [00 01]; |
| 528 | qcom,en-ext-pfet-sc-pro; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 529 | qcom,pmic-revid = <&pmi8950_revid>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 530 | qcom,cons-sync-write-delay-us = <1000>; |
| 531 | }; |
| 532 | |
| 533 | flash_led: qcom,leds@d300 { |
| 534 | compatible = "qcom,qpnp-flash-led"; |
| 535 | status = "okay"; |
| 536 | reg = <0xd300 0x100>; |
| 537 | label = "flash"; |
| 538 | qcom,headroom = <500>; |
| 539 | qcom,startup-dly = <128>; |
| 540 | qcom,clamp-curr = <200>; |
| 541 | qcom,pmic-charger-support; |
| 542 | qcom,self-check-enabled; |
| 543 | qcom,thermal-derate-enabled; |
| 544 | qcom,thermal-derate-threshold = <100>; |
| 545 | qcom,thermal-derate-rate = "5_PERCENT"; |
| 546 | qcom,current-ramp-enabled; |
| 547 | qcom,ramp_up_step = "6P7_US"; |
| 548 | qcom,ramp_dn_step = "6P7_US"; |
| 549 | qcom,vph-pwr-droop-enabled; |
| 550 | qcom,vph-pwr-droop-threshold = <3000>; |
| 551 | qcom,vph-pwr-droop-debounce-time = <10>; |
| 552 | qcom,headroom-sense-ch0-enabled; |
| 553 | qcom,headroom-sense-ch1-enabled; |
| 554 | qcom,pmic-revid = <&pmi8950_revid>; |
| 555 | |
| 556 | pmi8950_flash0: qcom,flash_0 { |
| 557 | label = "flash"; |
| 558 | qcom,led-name = "led:flash_0"; |
| 559 | qcom,default-led-trigger = |
| 560 | "flash0_trigger"; |
| 561 | qcom,max-current = <1000>; |
| 562 | qcom,duration = <1280>; |
| 563 | qcom,id = <0>; |
| 564 | qcom,current = <625>; |
| 565 | }; |
| 566 | |
| 567 | pmi8950_flash1: qcom,flash_1 { |
| 568 | label = "flash"; |
| 569 | qcom,led-name = "led:flash_1"; |
| 570 | qcom,default-led-trigger = |
| 571 | "flash1_trigger"; |
| 572 | qcom,max-current = <1000>; |
| 573 | qcom,duration = <1280>; |
| 574 | qcom,id = <1>; |
| 575 | qcom,current = <625>; |
| 576 | }; |
| 577 | |
| 578 | pmi8950_torch0: qcom,torch_0 { |
| 579 | label = "torch"; |
| 580 | qcom,led-name = "led:torch_0"; |
| 581 | qcom,default-led-trigger = |
| 582 | "torch0_trigger"; |
| 583 | qcom,max-current = <200>; |
| 584 | qcom,id = <0>; |
| 585 | qcom,current = <120>; |
| 586 | }; |
| 587 | |
| 588 | pmi8950_torch1: qcom,torch_1 { |
| 589 | label = "torch"; |
| 590 | qcom,led-name = "led:torch_1"; |
| 591 | qcom,default-led-trigger = |
| 592 | "torch1_trigger"; |
| 593 | qcom,max-current = <200>; |
| 594 | qcom,id = <1>; |
| 595 | qcom,current = <120>; |
| 596 | }; |
| 597 | |
| 598 | pmi8950_switch: qcom,switch { |
| 599 | label = "switch"; |
| 600 | qcom,led-name = "led:switch"; |
| 601 | qcom,default-led-trigger = |
| 602 | "switch_trigger"; |
| 603 | qcom,max-current = <1000>; |
| 604 | qcom,duration = <1280>; |
| 605 | qcom,id = <2>; |
| 606 | qcom,current = <625>; |
| 607 | reg0 { |
| 608 | regulator-name = "pon_spare_reg"; |
| 609 | }; |
| 610 | }; |
| 611 | }; |
| 612 | |
| 613 | pmi_haptic: qcom,haptic@c000 { |
| 614 | compatible = "qcom,qpnp-haptic"; |
| 615 | reg = <0xc000 0x100>; |
Kiran Gunda | e066576 | 2017-11-22 17:20:24 +0530 | [diff] [blame] | 616 | interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 617 | <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>; |
Kiran Gunda | c1c1de7 | 2017-09-21 15:05:09 +0530 | [diff] [blame] | 618 | interrupt-names = "sc-irq", "play-irq"; |
| 619 | qcom,pmic-revid = <&pmi8950_revid>; |
| 620 | vcc_pon-supply = <&pon_perph_reg>; |
| 621 | qcom,play-mode = "direct"; |
| 622 | qcom,wave-play-rate-us = <5263>; |
| 623 | qcom,actuator-type = "erm"; |
| 624 | qcom,wave-shape = "square"; |
| 625 | qcom,vmax-mv = <2000>; |
| 626 | qcom,ilim-ma = <800>; |
| 627 | qcom,sc-deb-cycles = <8>; |
| 628 | qcom,int-pwm-freq-khz = <505>; |
| 629 | qcom,en-brake; |
| 630 | qcom,brake-pattern = [03 03 00 00]; |
| 631 | qcom,use-play-irq; |
| 632 | qcom,use-sc-irq; |
| 633 | qcom,wave-samples = [3e 3e 3e 3e 3e 3e 3e 3e]; |
| 634 | qcom,wave-rep-cnt = <1>; |
| 635 | qcom,wave-samp-rep-cnt = <1>; |
| 636 | }; |
| 637 | }; |
| 638 | }; |