Tirupathi Reddy | 4b98308 | 2017-09-04 10:11:15 +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 A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | &pm660_0{ |
| 14 | pm660_charger: qcom,qpnp-smb2 { |
| 15 | compatible = "qcom,qpnp-smb2"; |
| 16 | #address-cells = <1>; |
| 17 | #size-cells = <1>; |
Manaf Meethalavalappu Pallikunhi | 7ccd9f2 | 2017-08-24 17:58:11 +0530 | [diff] [blame] | 18 | #cooling-cells = <2>; |
Tirupathi Reddy | 4b98308 | 2017-09-04 10:11:15 +0530 | [diff] [blame] | 19 | |
| 20 | qcom,pmic-revid = <&pm660_revid>; |
| 21 | |
| 22 | io-channels = <&pm660_rradc 8>, |
| 23 | <&pm660_rradc 10>, |
| 24 | <&pm660_rradc 3>, |
| 25 | <&pm660_rradc 4>; |
| 26 | io-channel-names = "charger_temp", |
| 27 | "charger_temp_max", |
| 28 | "usbin_i", |
| 29 | "usbin_v"; |
| 30 | |
| 31 | qcom,wipower-max-uw = <5000000>; |
| 32 | |
| 33 | /* Enable after the qusb_phy0 device node is added */ |
| 34 | /* dpdm-supply = <&qusb_phy0>; */ |
| 35 | |
| 36 | qcom,thermal-mitigation |
| 37 | = <3000000 2500000 2000000 1500000 |
| 38 | 1000000 500000>; |
| 39 | |
| 40 | qcom,chgr@1000 { |
| 41 | reg = <0x1000 0x100>; |
| 42 | interrupts = |
| 43 | <0x0 0x10 0x0 IRQ_TYPE_EDGE_RISING>, |
| 44 | <0x0 0x10 0x1 IRQ_TYPE_EDGE_RISING>, |
| 45 | <0x0 0x10 0x2 IRQ_TYPE_EDGE_RISING>, |
| 46 | <0x0 0x10 0x3 IRQ_TYPE_EDGE_RISING>, |
| 47 | <0x0 0x10 0x4 IRQ_TYPE_EDGE_RISING>; |
| 48 | |
| 49 | interrupt-names = "chg-error", |
| 50 | "chg-state-change", |
| 51 | "step-chg-state-change", |
| 52 | "step-chg-soc-update-fail", |
| 53 | "step-chg-soc-update-request"; |
| 54 | }; |
| 55 | |
| 56 | qcom,otg@1100 { |
| 57 | reg = <0x1100 0x100>; |
| 58 | interrupts = <0x0 0x11 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 59 | <0x0 0x11 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 60 | <0x0 0x11 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 61 | <0x0 0x11 0x3 IRQ_TYPE_EDGE_BOTH>; |
| 62 | |
| 63 | interrupt-names = "otg-fail", |
| 64 | "otg-overcurrent", |
| 65 | "otg-oc-dis-sw-sts", |
| 66 | "testmode-change-detect"; |
| 67 | }; |
| 68 | |
| 69 | qcom,bat-if@1200 { |
| 70 | reg = <0x1200 0x100>; |
| 71 | interrupts = |
| 72 | <0x0 0x12 0x0 IRQ_TYPE_EDGE_RISING>, |
| 73 | <0x0 0x12 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 74 | <0x0 0x12 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 75 | <0x0 0x12 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 76 | <0x0 0x12 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 77 | <0x0 0x12 0x5 IRQ_TYPE_EDGE_BOTH>; |
| 78 | |
| 79 | interrupt-names = "bat-temp", |
| 80 | "bat-ocp", |
| 81 | "bat-ov", |
| 82 | "bat-low", |
| 83 | "bat-therm-or-id-missing", |
| 84 | "bat-terminal-missing"; |
| 85 | }; |
| 86 | |
| 87 | qcom,usb-chgpth@1300 { |
| 88 | reg = <0x1300 0x100>; |
| 89 | interrupts = |
| 90 | <0x0 0x13 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 91 | <0x0 0x13 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 92 | <0x0 0x13 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 93 | <0x0 0x13 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 94 | <0x0 0x13 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 95 | <0x0 0x13 0x5 IRQ_TYPE_EDGE_RISING>, |
| 96 | <0x0 0x13 0x6 IRQ_TYPE_EDGE_RISING>, |
| 97 | <0x0 0x13 0x7 IRQ_TYPE_EDGE_RISING>; |
| 98 | |
| 99 | interrupt-names = "usbin-collapse", |
| 100 | "usbin-lt-3p6v", |
| 101 | "usbin-uv", |
| 102 | "usbin-ov", |
| 103 | "usbin-plugin", |
| 104 | "usbin-src-change", |
| 105 | "usbin-icl-change", |
| 106 | "type-c-change"; |
| 107 | }; |
| 108 | |
| 109 | qcom,dc-chgpth@1400 { |
| 110 | reg = <0x1400 0x100>; |
| 111 | interrupts = |
| 112 | <0x0 0x14 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 113 | <0x0 0x14 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 114 | <0x0 0x14 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 115 | <0x0 0x14 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 116 | <0x0 0x14 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 117 | <0x0 0x14 0x5 IRQ_TYPE_EDGE_BOTH>, |
| 118 | <0x0 0x14 0x6 IRQ_TYPE_EDGE_RISING>; |
| 119 | |
| 120 | interrupt-names = "dcin-collapse", |
| 121 | "dcin-lt-3p6v", |
| 122 | "dcin-uv", |
| 123 | "dcin-ov", |
| 124 | "dcin-plugin", |
| 125 | "div2-en-dg", |
| 126 | "dcin-icl-change"; |
| 127 | }; |
| 128 | |
| 129 | qcom,chgr-misc@1600 { |
| 130 | reg = <0x1600 0x100>; |
| 131 | interrupts = |
| 132 | <0x0 0x16 0x0 IRQ_TYPE_EDGE_RISING>, |
| 133 | <0x0 0x16 0x1 IRQ_TYPE_EDGE_RISING>, |
| 134 | <0x0 0x16 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 135 | <0x0 0x16 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 136 | <0x0 0x16 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 137 | <0x0 0x16 0x5 IRQ_TYPE_EDGE_BOTH>, |
| 138 | <0x0 0x16 0x6 IRQ_TYPE_EDGE_FALLING>, |
| 139 | <0x0 0x16 0x7 IRQ_TYPE_EDGE_BOTH>; |
| 140 | |
| 141 | interrupt-names = "wdog-snarl", |
| 142 | "wdog-bark", |
| 143 | "aicl-fail", |
| 144 | "aicl-done", |
| 145 | "high-duty-cycle", |
| 146 | "input-current-limiting", |
| 147 | "temperature-change", |
| 148 | "switcher-power-ok"; |
| 149 | }; |
| 150 | smb2_vbus: qcom,smb2-vbus { |
| 151 | regulator-name = "smb2-vbus"; |
| 152 | }; |
| 153 | |
| 154 | smb2_vconn: qcom,smb2-vconn { |
| 155 | regulator-name = "smb2-vconn"; |
| 156 | }; |
| 157 | }; |
| 158 | |
| 159 | pm660_fg: qpnp,fg { |
| 160 | compatible = "qcom,fg-gen3"; |
| 161 | #address-cells = <1>; |
| 162 | #size-cells = <1>; |
| 163 | qcom,pmic-revid = <&pm660_revid>; |
| 164 | io-channels = <&pm660_rradc 0>, |
| 165 | <&pm660_rradc 7>; |
| 166 | io-channel-names = "rradc_batt_id", |
| 167 | "rradc_die_temp"; |
| 168 | qcom,rradc-base = <0x4500>; |
| 169 | qcom,fg-esr-timer-awake = <96 96>; |
| 170 | qcom,fg-esr-timer-asleep = <256 256>; |
| 171 | qcom,fg-esr-timer-charging = <0 96>; |
| 172 | qcom,cycle-counter-en; |
| 173 | status = "okay"; |
| 174 | |
| 175 | qcom,fg-batt-soc@4000 { |
| 176 | status = "okay"; |
| 177 | reg = <0x4000 0x100>; |
| 178 | interrupts = <0x0 0x40 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 179 | <0x0 0x40 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 180 | <0x0 0x40 0x2 |
| 181 | IRQ_TYPE_EDGE_RISING>, |
| 182 | <0x0 0x40 0x3 |
| 183 | IRQ_TYPE_EDGE_RISING>, |
| 184 | <0x0 0x40 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 185 | <0x0 0x40 0x5 |
| 186 | IRQ_TYPE_EDGE_RISING>, |
| 187 | <0x0 0x40 0x6 IRQ_TYPE_EDGE_BOTH>, |
| 188 | <0x0 0x40 0x7 IRQ_TYPE_EDGE_BOTH>; |
| 189 | interrupt-names = "soc-update", |
| 190 | "soc-ready", |
| 191 | "bsoc-delta", |
| 192 | "msoc-delta", |
| 193 | "msoc-low", |
| 194 | "msoc-empty", |
| 195 | "msoc-high", |
| 196 | "msoc-full"; |
| 197 | }; |
| 198 | |
| 199 | qcom,fg-batt-info@4100 { |
| 200 | status = "okay"; |
| 201 | reg = <0x4100 0x100>; |
| 202 | interrupts = <0x0 0x41 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 203 | <0x0 0x41 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 204 | <0x0 0x41 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 205 | <0x0 0x41 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 206 | <0x0 0x41 0x6 IRQ_TYPE_EDGE_BOTH>; |
| 207 | interrupt-names = "vbatt-pred-delta", |
| 208 | "vbatt-low", |
| 209 | "esr-delta", |
| 210 | "batt-missing", |
| 211 | "batt-temp-delta"; |
| 212 | }; |
| 213 | |
| 214 | qcom,fg-memif@4400 { |
| 215 | status = "okay"; |
| 216 | reg = <0x4400 0x100>; |
| 217 | interrupts = <0x0 0x44 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 218 | <0x0 0x44 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 219 | <0x0 0x44 0x2 IRQ_TYPE_EDGE_BOTH>; |
| 220 | interrupt-names = "ima-rdy", |
| 221 | "mem-xcp", |
| 222 | "dma-grant"; |
| 223 | }; |
| 224 | }; |
| 225 | }; |
| 226 | |
| 227 | &pm660_1 { |
| 228 | pm660_haptics: qcom,haptics@c000 { |
| 229 | compatible = "qcom,qpnp-haptics"; |
| 230 | reg = <0xc000 0x100>; |
| 231 | interrupts = <0x1 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 232 | <0x1 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>; |
| 233 | interrupt-names = "hap-sc-irq", "hap-play-irq"; |
| 234 | qcom,pmic-revid = <&pm660_revid>; |
| 235 | qcom,pmic-misc = <&pm660_misc>; |
| 236 | qcom,misc-clk-trim-error-reg = <0xf3>; |
| 237 | qcom,actuator-type = <0>; |
| 238 | qcom,play-mode = "direct"; |
| 239 | qcom,vmax-mv = <3200>; |
| 240 | qcom,ilim-ma = <800>; |
| 241 | qcom,sc-dbc-cycles = <8>; |
| 242 | qcom,wave-play-rate-us = <6667>; |
| 243 | qcom,en-brake; |
| 244 | qcom,lra-high-z = "opt0"; |
| 245 | qcom,lra-auto-res-mode = "qwd"; |
| 246 | qcom,lra-res-cal-period = <4>; |
| 247 | }; |
| 248 | }; |
| 249 | |
| 250 | &pm660l_3 { |
| 251 | pm660l_wled: qcom,leds@d800 { |
| 252 | compatible = "qcom,qpnp-wled"; |
| 253 | reg = <0xd800 0x100>, |
| 254 | <0xd900 0x100>; |
| 255 | reg-names = "qpnp-wled-ctrl-base", |
| 256 | "qpnp-wled-sink-base"; |
| 257 | interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>; |
| 258 | interrupt-names = "ovp-irq"; |
| 259 | linux,name = "wled"; |
| 260 | linux,default-trigger = "bkl-trigger"; |
| 261 | qcom,fdbk-output = "auto"; |
| 262 | qcom,vref-uv = <127500>; |
| 263 | qcom,switch-freq-khz = <800>; |
| 264 | qcom,ovp-mv = <29600>; |
| 265 | qcom,ilim-ma = <970>; |
| 266 | qcom,boost-duty-ns = <26>; |
| 267 | qcom,mod-freq-khz = <9600>; |
| 268 | qcom,dim-mode = "hybrid"; |
| 269 | qcom,hyb-thres = <625>; |
| 270 | qcom,sync-dly-us = <800>; |
| 271 | qcom,fs-curr-ua = <25000>; |
| 272 | qcom,cons-sync-write-delay-us = <1000>; |
| 273 | qcom,led-strings-list = [00 01 02]; |
| 274 | qcom,loop-auto-gm-en; |
| 275 | qcom,pmic-revid = <&pm660l_revid>; |
| 276 | qcom,auto-calibration-enable; |
| 277 | status = "ok"; |
| 278 | }; |
| 279 | |
| 280 | pm660l_lcdb: qpnp-lcdb@ec00 { |
| 281 | compatible = "qcom,qpnp-lcdb-regulator"; |
| 282 | #address-cells = <1>; |
| 283 | #size-cells = <1>; |
| 284 | reg = <0xec00 0x100>; |
| 285 | interrupts = <0x3 0xec 0x1 IRQ_TYPE_EDGE_RISING>; |
| 286 | interrupt-names = "sc-irq"; |
| 287 | |
| 288 | qcom,pmic-revid = <&pm660l_revid>; |
| 289 | |
| 290 | lcdb_ldo_vreg: ldo { |
| 291 | label = "ldo"; |
| 292 | regulator-name = "lcdb_ldo"; |
| 293 | regulator-min-microvolt = <4000000>; |
| 294 | regulator-max-microvolt = <6000000>; |
| 295 | }; |
| 296 | |
| 297 | lcdb_ncp_vreg: ncp { |
| 298 | label = "ncp"; |
| 299 | regulator-name = "lcdb_ncp"; |
| 300 | regulator-min-microvolt = <4000000>; |
| 301 | regulator-max-microvolt = <6000000>; |
| 302 | }; |
| 303 | }; |
| 304 | |
| 305 | pm660a_oledb: qpnp-oledb@e000 { |
| 306 | compatible = "qcom,qpnp-oledb-regulator"; |
| 307 | #address-cells = <1>; |
| 308 | #size-cells = <1>; |
| 309 | qcom,pmic-revid = <&pm660l_revid>; |
| 310 | reg = <0xe000 0x100>; |
| 311 | qcom,pbs-client = <&pm660l_pbs>; |
| 312 | |
| 313 | label = "oledb"; |
| 314 | regulator-name = "regulator-oledb"; |
| 315 | regulator-min-microvolt = <5000000>; |
| 316 | regulator-max-microvolt = <8100000>; |
| 317 | |
| 318 | qcom,swire-control; |
| 319 | qcom,ext-pin-control; |
| 320 | status = "disabled"; |
| 321 | }; |
| 322 | |
| 323 | pm660a_labibb: qpnp-labibb-regulator { |
| 324 | compatible = "qcom,qpnp-labibb-regulator"; |
| 325 | #address-cells = <1>; |
| 326 | #size-cells = <1>; |
| 327 | qcom,pmic-revid = <&pm660l_revid>; |
| 328 | qcom,swire-control; |
| 329 | status = "disabled"; |
| 330 | |
| 331 | ibb_regulator: qcom,ibb@dc00 { |
| 332 | reg = <0xdc00 0x100>; |
| 333 | reg-names = "ibb_reg"; |
| 334 | regulator-name = "ibb_reg"; |
| 335 | |
| 336 | regulator-min-microvolt = <4000000>; |
| 337 | regulator-max-microvolt = <6300000>; |
| 338 | |
| 339 | qcom,qpnp-ibb-min-voltage = <1400000>; |
| 340 | qcom,qpnp-ibb-step-size = <100000>; |
| 341 | qcom,qpnp-ibb-slew-rate = <2000000>; |
| 342 | qcom,qpnp-ibb-init-voltage = <4000000>; |
| 343 | qcom,qpnp-ibb-init-amoled-voltage = <4000000>; |
| 344 | }; |
| 345 | |
| 346 | lab_regulator: qcom,lab@de00 { |
| 347 | reg = <0xde00 0x100>; |
| 348 | reg-names = "lab"; |
| 349 | regulator-name = "lab_reg"; |
| 350 | |
| 351 | regulator-min-microvolt = <4600000>; |
| 352 | regulator-max-microvolt = <6100000>; |
| 353 | |
| 354 | qcom,qpnp-lab-min-voltage = <4600000>; |
| 355 | qcom,qpnp-lab-step-size = <100000>; |
| 356 | qcom,qpnp-lab-slew-rate = <5000>; |
| 357 | qcom,qpnp-lab-init-voltage = <4600000>; |
| 358 | qcom,qpnp-lab-init-amoled-voltage = <4600000>; |
| 359 | |
| 360 | qcom,notify-lab-vreg-ok-sts; |
| 361 | }; |
| 362 | }; |
| 363 | }; |
| 364 | |
| 365 | &pm660_pdphy { |
| 366 | vbus-supply = <&smb2_vbus>; |
| 367 | vconn-supply = <&smb2_vconn>; |
| 368 | }; |
Pratham Pratap | 1cb6883 | 2017-09-14 15:47:58 +0530 | [diff] [blame^] | 369 | |
| 370 | &usb0 { |
| 371 | extcon = <&pm660_pdphy>, <&pm660_pdphy>, <0> /* <&eud> */; |
| 372 | }; |