David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2016-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/spmi/spmi.h> |
| 14 | #include <dt-bindings/interrupt-controller/irq.h> |
David Collins | de33ee9 | 2017-07-12 11:55:32 -0700 | [diff] [blame] | 15 | #include <dt-bindings/thermal/thermal.h> |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 16 | |
| 17 | &spmi_bus { |
David Collins | de33ee9 | 2017-07-12 11:55:32 -0700 | [diff] [blame] | 18 | pmi8998_lsid0: qcom,pmi8998@2 { |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 19 | compatible = "qcom,spmi-pmic"; |
| 20 | reg = <0x2 SPMI_USID>; |
| 21 | #address-cells = <2>; |
| 22 | #size-cells = <0>; |
| 23 | |
| 24 | pmi8998_revid: qcom,revid@100 { |
| 25 | compatible = "qcom,qpnp-revid"; |
| 26 | reg = <0x100 0x100>; |
| 27 | qcom,fab-id-valid; |
| 28 | }; |
| 29 | |
Subbaraman Narayanamurthy | 4ed0b4b | 2017-05-15 20:00:12 -0700 | [diff] [blame] | 30 | pmi8998_misc: qcom,misc@900 { |
| 31 | compatible = "qcom,qpnp-misc"; |
| 32 | reg = <0x900 0x100>; |
| 33 | }; |
| 34 | |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 35 | qcom,power-on@800 { |
| 36 | compatible = "qcom,qpnp-power-on"; |
| 37 | reg = <0x800 0x100>; |
| 38 | }; |
| 39 | |
Ram Chandrasekar | 9920cf0 | 2017-04-21 17:38:51 -0600 | [diff] [blame] | 40 | pmi8998_tz: qcom,temp-alarm@2400 { |
David Collins | 0b6fa76 | 2017-05-03 17:59:13 -0700 | [diff] [blame] | 41 | compatible = "qcom,spmi-temp-alarm"; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 42 | reg = <0x2400 0x100>; |
| 43 | interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_RISING>; |
David Collins | 0b6fa76 | 2017-05-03 17:59:13 -0700 | [diff] [blame] | 44 | io-channels = <&pmi8998_rradc 7>; |
| 45 | io-channel-names = "thermal"; |
Ram Chandrasekar | 9920cf0 | 2017-04-21 17:38:51 -0600 | [diff] [blame] | 46 | #thermal-sensor-cells = <0>; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 47 | }; |
| 48 | |
Fenglin Wu | 5a50fc8 | 2017-03-22 12:27:31 +0800 | [diff] [blame] | 49 | pmi8998_gpios: pinctrl@c000 { |
| 50 | compatible = "qcom,spmi-gpio"; |
| 51 | reg = <0xc000 0xe00>; |
| 52 | interrupts = <0x2 0xc0 0 IRQ_TYPE_NONE>, |
| 53 | <0x2 0xc1 0 IRQ_TYPE_NONE>, |
| 54 | <0x2 0xc2 0 IRQ_TYPE_NONE>, |
| 55 | <0x2 0xc4 0 IRQ_TYPE_NONE>, |
| 56 | <0x2 0xc5 0 IRQ_TYPE_NONE>, |
| 57 | <0x2 0xc7 0 IRQ_TYPE_NONE>, |
| 58 | <0x2 0xc8 0 IRQ_TYPE_NONE>, |
| 59 | <0x2 0xc9 0 IRQ_TYPE_NONE>, |
| 60 | <0x2 0xca 0 IRQ_TYPE_NONE>, |
| 61 | <0x2 0xcb 0 IRQ_TYPE_NONE>, |
| 62 | <0x2 0xcd 0 IRQ_TYPE_NONE>; |
| 63 | interrupt-names = "pmi8998_gpio1", "pmi8998_gpio2", |
| 64 | "pmi8998_gpio3", "pmi8998_gpio5", |
| 65 | "pmi8998_gpio6", "pmi8998_gpio8", |
| 66 | "pmi8998_gpio9", "pmi8998_gpio10", |
| 67 | "pmi8998_gpio11", "pmi8998_gpio12", |
| 68 | "pmi8998_gpio14"; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 69 | gpio-controller; |
| 70 | #gpio-cells = <2>; |
Fenglin Wu | 5a50fc8 | 2017-03-22 12:27:31 +0800 | [diff] [blame] | 71 | qcom,gpios-disallowed = <4 7 13>; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 72 | }; |
| 73 | |
Subbaraman Narayanamurthy | 11826ba | 2017-10-06 15:45:11 -0700 | [diff] [blame] | 74 | pmi8998_qnovo: qcom,qpnp-qnovo@1500 { |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 75 | compatible = "qcom,qpnp-qnovo"; |
| 76 | reg = <0x1500 0x100>; |
| 77 | interrupts = <0x2 0x15 0x0 IRQ_TYPE_NONE>; |
| 78 | interrupt-names = "ptrain-done"; |
| 79 | qcom,pmic-revid = <&pmi8998_revid>; |
| 80 | }; |
| 81 | |
| 82 | pmi8998_charger: qcom,qpnp-smb2 { |
| 83 | compatible = "qcom,qpnp-smb2"; |
| 84 | #address-cells = <1>; |
| 85 | #size-cells = <1>; |
Ram Chandrasekar | 977f844 | 2017-05-11 13:48:53 -0600 | [diff] [blame] | 86 | #cooling-cells = <2>; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 87 | |
| 88 | qcom,pmic-revid = <&pmi8998_revid>; |
| 89 | |
| 90 | io-channels = <&pmi8998_rradc 8>, |
| 91 | <&pmi8998_rradc 10>, |
| 92 | <&pmi8998_rradc 3>, |
| 93 | <&pmi8998_rradc 4>; |
| 94 | io-channel-names = "charger_temp", |
| 95 | "charger_temp_max", |
| 96 | "usbin_i", |
| 97 | "usbin_v"; |
| 98 | |
| 99 | qcom,boost-threshold-ua = <100000>; |
| 100 | qcom,wipower-max-uw = <5000000>; |
Harry Yang | 08c3b02 | 2017-07-19 14:51:05 -0700 | [diff] [blame] | 101 | dpdm-supply = <&qusb_phy0>; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 102 | |
| 103 | qcom,thermal-mitigation |
| 104 | = <3000000 1500000 1000000 500000>; |
Subbaraman Narayanamurthy | e6193aa | 2017-10-26 13:43:30 -0700 | [diff] [blame] | 105 | qcom,auto-recharge-soc; |
Harry Yang | d1e3aaf | 2017-12-12 16:44:58 -0800 | [diff] [blame] | 106 | qcom,suspend-input-on-debug-batt; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 107 | |
| 108 | qcom,chgr@1000 { |
| 109 | reg = <0x1000 0x100>; |
| 110 | interrupts = |
| 111 | <0x2 0x10 0x0 IRQ_TYPE_EDGE_RISING>, |
| 112 | <0x2 0x10 0x1 IRQ_TYPE_EDGE_RISING>, |
| 113 | <0x2 0x10 0x2 IRQ_TYPE_EDGE_RISING>, |
| 114 | <0x2 0x10 0x3 IRQ_TYPE_EDGE_RISING>, |
| 115 | <0x2 0x10 0x4 IRQ_TYPE_EDGE_RISING>; |
| 116 | |
| 117 | interrupt-names = "chg-error", |
| 118 | "chg-state-change", |
| 119 | "step-chg-state-change", |
| 120 | "step-chg-soc-update-fail", |
| 121 | "step-chg-soc-update-request"; |
| 122 | }; |
| 123 | |
| 124 | qcom,otg@1100 { |
| 125 | reg = <0x1100 0x100>; |
| 126 | interrupts = <0x2 0x11 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 127 | <0x2 0x11 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 128 | <0x2 0x11 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 129 | <0x2 0x11 0x3 IRQ_TYPE_EDGE_BOTH>; |
| 130 | |
| 131 | interrupt-names = "otg-fail", |
| 132 | "otg-overcurrent", |
| 133 | "otg-oc-dis-sw-sts", |
| 134 | "testmode-change-detect"; |
| 135 | }; |
| 136 | |
| 137 | qcom,bat-if@1200 { |
| 138 | reg = <0x1200 0x100>; |
| 139 | interrupts = |
| 140 | <0x2 0x12 0x0 IRQ_TYPE_EDGE_RISING>, |
| 141 | <0x2 0x12 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 142 | <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 143 | <0x2 0x12 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 144 | <0x2 0x12 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 145 | <0x2 0x12 0x5 IRQ_TYPE_EDGE_BOTH>; |
| 146 | |
| 147 | interrupt-names = "bat-temp", |
| 148 | "bat-ocp", |
| 149 | "bat-ov", |
| 150 | "bat-low", |
| 151 | "bat-therm-or-id-missing", |
| 152 | "bat-terminal-missing"; |
| 153 | }; |
| 154 | |
| 155 | qcom,usb-chgpth@1300 { |
| 156 | reg = <0x1300 0x100>; |
| 157 | interrupts = |
| 158 | <0x2 0x13 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 159 | <0x2 0x13 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 160 | <0x2 0x13 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 161 | <0x2 0x13 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 162 | <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 163 | <0x2 0x13 0x5 IRQ_TYPE_EDGE_RISING>, |
| 164 | <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>, |
| 165 | <0x2 0x13 0x7 IRQ_TYPE_EDGE_RISING>; |
| 166 | |
| 167 | interrupt-names = "usbin-collapse", |
| 168 | "usbin-lt-3p6v", |
| 169 | "usbin-uv", |
| 170 | "usbin-ov", |
| 171 | "usbin-plugin", |
| 172 | "usbin-src-change", |
| 173 | "usbin-icl-change", |
| 174 | "type-c-change"; |
| 175 | }; |
| 176 | |
| 177 | qcom,dc-chgpth@1400 { |
| 178 | reg = <0x1400 0x100>; |
| 179 | interrupts = |
| 180 | <0x2 0x14 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 181 | <0x2 0x14 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 182 | <0x2 0x14 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 183 | <0x2 0x14 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 184 | <0x2 0x14 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 185 | <0x2 0x14 0x5 IRQ_TYPE_EDGE_BOTH>, |
| 186 | <0x2 0x14 0x6 IRQ_TYPE_EDGE_RISING>; |
| 187 | |
| 188 | interrupt-names = "dcin-collapse", |
| 189 | "dcin-lt-3p6v", |
| 190 | "dcin-uv", |
| 191 | "dcin-ov", |
| 192 | "dcin-plugin", |
| 193 | "div2-en-dg", |
| 194 | "dcin-icl-change"; |
| 195 | }; |
| 196 | |
| 197 | qcom,chgr-misc@1600 { |
| 198 | reg = <0x1600 0x100>; |
| 199 | interrupts = |
| 200 | <0x2 0x16 0x0 IRQ_TYPE_EDGE_RISING>, |
| 201 | <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>, |
| 202 | <0x2 0x16 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 203 | <0x2 0x16 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 204 | <0x2 0x16 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 205 | <0x2 0x16 0x5 IRQ_TYPE_EDGE_BOTH>, |
| 206 | <0x2 0x16 0x6 IRQ_TYPE_EDGE_FALLING>, |
| 207 | <0x2 0x16 0x7 IRQ_TYPE_EDGE_BOTH>; |
| 208 | |
| 209 | interrupt-names = "wdog-snarl", |
| 210 | "wdog-bark", |
| 211 | "aicl-fail", |
| 212 | "aicl-done", |
| 213 | "high-duty-cycle", |
| 214 | "input-current-limiting", |
| 215 | "temperature-change", |
| 216 | "switcher-power-ok"; |
| 217 | }; |
| 218 | }; |
| 219 | |
Jack Pham | af5edc8 | 2017-03-30 17:26:02 -0700 | [diff] [blame] | 220 | pmi8998_pdphy: qcom,usb-pdphy@1700 { |
| 221 | compatible = "qcom,qpnp-pdphy"; |
| 222 | reg = <0x1700 0x100>; |
| 223 | vdd-pdphy-supply = <&pm8998_l24>; |
Harry Yang | 4c05d3e4 | 2017-05-09 16:18:17 -0700 | [diff] [blame] | 224 | vbus-supply = <&ext_5v_boost>; |
Jack Pham | af5edc8 | 2017-03-30 17:26:02 -0700 | [diff] [blame] | 225 | vconn-supply = <&smb2_vconn>; |
| 226 | interrupts = <0x2 0x17 0x0 IRQ_TYPE_EDGE_RISING>, |
| 227 | <0x2 0x17 0x1 IRQ_TYPE_EDGE_RISING>, |
| 228 | <0x2 0x17 0x2 IRQ_TYPE_EDGE_RISING>, |
| 229 | <0x2 0x17 0x3 IRQ_TYPE_EDGE_RISING>, |
| 230 | <0x2 0x17 0x4 IRQ_TYPE_EDGE_RISING>, |
| 231 | <0x2 0x17 0x5 IRQ_TYPE_EDGE_RISING>, |
| 232 | <0x2 0x17 0x6 IRQ_TYPE_EDGE_RISING>; |
| 233 | |
| 234 | interrupt-names = "sig-tx", |
| 235 | "sig-rx", |
| 236 | "msg-tx", |
| 237 | "msg-rx", |
| 238 | "msg-tx-failed", |
| 239 | "msg-tx-discarded", |
| 240 | "msg-rx-discarded"; |
| 241 | |
| 242 | qcom,default-sink-caps = <5000 3000>, /* 5V @ 3A */ |
| 243 | <9000 3000>, /* 9V @ 3A */ |
| 244 | <12000 2250>; /* 12V @ 2.25A */ |
| 245 | }; |
| 246 | |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 247 | bcl_sensor: bcl@4200 { |
| 248 | compatible = "qcom,msm-bcl-lmh"; |
| 249 | reg = <0x4200 0xff>, |
| 250 | <0x4300 0xff>; |
| 251 | reg-names = "fg_user_adc", |
| 252 | "fg_lmh"; |
| 253 | interrupts = <0x2 0x42 0x0 IRQ_TYPE_NONE>, |
| 254 | <0x2 0x42 0x1 IRQ_TYPE_NONE>, |
| 255 | <0x2 0x42 0x2 IRQ_TYPE_NONE>, |
| 256 | <0x2 0x42 0x3 IRQ_TYPE_NONE>, |
| 257 | <0x2 0x42 0x4 IRQ_TYPE_NONE>; |
| 258 | interrupt-names = "bcl-high-ibat", |
| 259 | "bcl-very-high-ibat", |
| 260 | "bcl-low-vbat", |
| 261 | "bcl-very-low-vbat", |
| 262 | "bcl-crit-low-vbat"; |
| 263 | #thermal-sensor-cells = <1>; |
| 264 | }; |
| 265 | |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 266 | pmi8998_rradc: rradc@4500 { |
| 267 | compatible = "qcom,rradc"; |
| 268 | reg = <0x4500 0x100>; |
| 269 | #address-cells = <1>; |
| 270 | #size-cells = <0>; |
| 271 | #io-channel-cells = <1>; |
| 272 | qcom,pmic-revid = <&pmi8998_revid>; |
| 273 | }; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 274 | |
| 275 | pmi8998_fg: qpnp,fg { |
| 276 | compatible = "qcom,fg-gen3"; |
| 277 | #address-cells = <1>; |
| 278 | #size-cells = <1>; |
| 279 | qcom,pmic-revid = <&pmi8998_revid>; |
| 280 | io-channels = <&pmi8998_rradc 0>; |
| 281 | io-channel-names = "rradc_batt_id"; |
| 282 | qcom,rradc-base = <0x4500>; |
Subbaraman Narayanamurthy | 784bd5b | 2017-05-17 17:43:22 -0700 | [diff] [blame] | 283 | qcom,fg-esr-timer-awake = <96 96>; |
| 284 | qcom,fg-esr-timer-asleep = <256 256>; |
| 285 | qcom,fg-esr-timer-charging = <0 96>; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 286 | qcom,cycle-counter-en; |
Subbaraman Narayanamurthy | e6193aa | 2017-10-26 13:43:30 -0700 | [diff] [blame] | 287 | qcom,hold-soc-while-full; |
| 288 | qcom,fg-auto-recharge-soc; |
| 289 | qcom,fg-recharge-soc-thr = <98>; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 290 | status = "okay"; |
| 291 | |
| 292 | qcom,fg-batt-soc@4000 { |
| 293 | status = "okay"; |
| 294 | reg = <0x4000 0x100>; |
| 295 | interrupts = <0x2 0x40 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 296 | <0x2 0x40 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 297 | <0x2 0x40 0x2 |
| 298 | IRQ_TYPE_EDGE_RISING>, |
| 299 | <0x2 0x40 0x3 |
| 300 | IRQ_TYPE_EDGE_RISING>, |
| 301 | <0x2 0x40 0x4 IRQ_TYPE_EDGE_BOTH>, |
| 302 | <0x2 0x40 0x5 |
| 303 | IRQ_TYPE_EDGE_RISING>, |
| 304 | <0x2 0x40 0x6 IRQ_TYPE_EDGE_BOTH>, |
| 305 | <0x2 0x40 0x7 IRQ_TYPE_EDGE_BOTH>; |
| 306 | interrupt-names = "soc-update", |
| 307 | "soc-ready", |
| 308 | "bsoc-delta", |
| 309 | "msoc-delta", |
| 310 | "msoc-low", |
| 311 | "msoc-empty", |
| 312 | "msoc-high", |
| 313 | "msoc-full"; |
| 314 | }; |
| 315 | |
| 316 | qcom,fg-batt-info@4100 { |
| 317 | status = "okay"; |
| 318 | reg = <0x4100 0x100>; |
| 319 | interrupts = <0x2 0x41 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 320 | <0x2 0x41 0x1 IRQ_TYPE_EDGE_BOTH>, |
| 321 | <0x2 0x41 0x2 IRQ_TYPE_EDGE_BOTH>, |
| 322 | <0x2 0x41 0x3 IRQ_TYPE_EDGE_BOTH>, |
| 323 | <0x2 0x41 0x6 IRQ_TYPE_EDGE_BOTH>; |
| 324 | interrupt-names = "vbatt-pred-delta", |
| 325 | "vbatt-low", |
| 326 | "esr-delta", |
| 327 | "batt-missing", |
| 328 | "batt-temp-delta"; |
| 329 | }; |
| 330 | |
| 331 | qcom,fg-memif@4400 { |
| 332 | status = "okay"; |
| 333 | reg = <0x4400 0x100>; |
| 334 | interrupts = <0x2 0x44 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 335 | <0x2 0x44 0x1 IRQ_TYPE_EDGE_BOTH>, |
Subbaraman Narayanamurthy | 2d38506 | 2017-09-14 20:23:13 -0700 | [diff] [blame] | 336 | <0x2 0x44 0x2 |
| 337 | IRQ_TYPE_EDGE_RISING>; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 338 | interrupt-names = "ima-rdy", |
| 339 | "mem-xcp", |
| 340 | "dma-grant"; |
| 341 | }; |
| 342 | }; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 343 | }; |
| 344 | |
David Collins | de33ee9 | 2017-07-12 11:55:32 -0700 | [diff] [blame] | 345 | pmi8998_lsid1: qcom,pmi8998@3 { |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 346 | compatible ="qcom,spmi-pmic"; |
| 347 | reg = <0x3 SPMI_USID>; |
| 348 | #address-cells = <2>; |
| 349 | #size-cells = <0>; |
| 350 | |
| 351 | pmi8998_pwm_1: pwm@b100 { |
| 352 | compatible = "qcom,qpnp-pwm"; |
| 353 | reg = <0xb100 0x100>, |
| 354 | <0xb042 0x7e>; |
| 355 | reg-names = "qpnp-lpg-channel-base", |
| 356 | "qpnp-lpg-lut-base"; |
| 357 | qcom,lpg-lut-size = <0x7e>; |
| 358 | qcom,channel-id = <1>; |
| 359 | qcom,supported-sizes = <6>, <9>; |
| 360 | qcom,ramp-index = <0>; |
| 361 | #pwm-cells = <2>; |
| 362 | status = "disabled"; |
| 363 | }; |
| 364 | |
| 365 | pmi8998_pwm_2: pwm@b200 { |
| 366 | compatible = "qcom,qpnp-pwm"; |
| 367 | reg = <0xb200 0x100>, |
| 368 | <0xb042 0x7e>; |
| 369 | reg-names = "qpnp-lpg-channel-base", |
| 370 | "qpnp-lpg-lut-base"; |
| 371 | qcom,lpg-lut-size = <0x7e>; |
| 372 | qcom,channel-id = <2>; |
| 373 | qcom,supported-sizes = <6>, <9>; |
| 374 | qcom,ramp-index = <1>; |
| 375 | #pwm-cells = <2>; |
| 376 | status = "disabled"; |
| 377 | }; |
| 378 | |
| 379 | pmi8998_pwm_3: pwm@b300 { |
| 380 | compatible = "qcom,qpnp-pwm"; |
| 381 | reg = <0xb300 0x100>, |
| 382 | <0xb042 0x7e>; |
| 383 | reg-names = "qpnp-lpg-channel-base", |
| 384 | "qpnp-lpg-lut-base"; |
| 385 | qcom,lpg-lut-size = <0x7e>; |
| 386 | qcom,channel-id = <3>; |
| 387 | qcom,supported-sizes = <6>, <9>; |
| 388 | qcom,ramp-index = <2>; |
| 389 | #pwm-cells = <2>; |
| 390 | }; |
| 391 | |
| 392 | pmi8998_pwm_4: pwm@b400 { |
| 393 | compatible = "qcom,qpnp-pwm"; |
| 394 | reg = <0xb400 0x100>, |
| 395 | <0xb042 0x7e>; |
| 396 | reg-names = "qpnp-lpg-channel-base", |
| 397 | "qpnp-lpg-lut-base"; |
| 398 | qcom,lpg-lut-size = <0x7e>; |
| 399 | qcom,channel-id = <4>; |
| 400 | qcom,supported-sizes = <6>, <9>; |
| 401 | qcom,ramp-index = <3>; |
| 402 | #pwm-cells = <2>; |
| 403 | }; |
| 404 | |
| 405 | pmi8998_pwm_5: pwm@b500 { |
| 406 | compatible = "qcom,qpnp-pwm"; |
| 407 | reg = <0xb500 0x100>, |
| 408 | <0xb042 0x7e>; |
| 409 | reg-names = "qpnp-lpg-channel-base", |
| 410 | "qpnp-lpg-lut-base"; |
| 411 | qcom,lpg-lut-size = <0x7e>; |
| 412 | qcom,channel-id = <5>; |
| 413 | qcom,supported-sizes = <6>, <9>; |
| 414 | qcom,ramp-index = <4>; |
| 415 | #pwm-cells = <2>; |
| 416 | }; |
| 417 | |
| 418 | pmi8998_pwm_6: pwm@b600 { |
| 419 | compatible = "qcom,qpnp-pwm"; |
| 420 | reg = <0xb600 0x100>, |
| 421 | <0xb042 0x7e>; |
| 422 | reg-names = "qpnp-lpg-channel-base", |
| 423 | "qpnp-lpg-lut-base"; |
| 424 | qcom,lpg-lut-size = <0x7e>; |
| 425 | qcom,channel-id = <6>; |
| 426 | qcom,supported-sizes = <6>, <9>; |
| 427 | qcom,ramp-index = <5>; |
| 428 | #pwm-cells = <2>; |
| 429 | status = "disabled"; |
| 430 | }; |
| 431 | |
| 432 | qcom,leds@d000 { |
| 433 | compatible = "qcom,leds-qpnp"; |
| 434 | reg = <0xd000 0x100>; |
| 435 | label = "rgb"; |
| 436 | status = "okay"; |
| 437 | |
| 438 | red_led: qcom,rgb_0 { |
| 439 | label = "rgb"; |
| 440 | qcom,id = <3>; |
| 441 | qcom,mode = "pwm"; |
| 442 | pwms = <&pmi8998_pwm_5 0 0>; |
| 443 | qcom,pwm-us = <1000>; |
| 444 | qcom,max-current = <12>; |
| 445 | qcom,default-state = "off"; |
| 446 | linux,name = "red"; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 447 | }; |
| 448 | |
| 449 | green_led: qcom,rgb_1 { |
| 450 | label = "rgb"; |
| 451 | qcom,id = <4>; |
| 452 | qcom,mode = "pwm"; |
| 453 | pwms = <&pmi8998_pwm_4 0 0>; |
| 454 | qcom,pwm-us = <1000>; |
| 455 | qcom,max-current = <12>; |
| 456 | qcom,default-state = "off"; |
| 457 | linux,name = "green"; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 458 | }; |
| 459 | |
| 460 | blue_led: qcom,rgb_2 { |
| 461 | label = "rgb"; |
| 462 | qcom,id = <5>; |
| 463 | qcom,mode = "pwm"; |
| 464 | pwms = <&pmi8998_pwm_3 0 0>; |
| 465 | qcom,pwm-us = <1000>; |
| 466 | qcom,max-current = <12>; |
| 467 | qcom,default-state = "off"; |
| 468 | linux,name = "blue"; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 469 | }; |
| 470 | }; |
| 471 | |
| 472 | labibb: qpnp-labibb-regulator { |
| 473 | compatible = "qcom,qpnp-labibb-regulator"; |
| 474 | #address-cells = <1>; |
| 475 | #size-cells = <1>; |
| 476 | qcom,pmic-revid = <&pmi8998_revid>; |
| 477 | status = "disabled"; |
| 478 | |
| 479 | ibb_regulator: qcom,ibb@dc00 { |
| 480 | reg = <0xdc00 0x100>; |
| 481 | reg-names = "ibb_reg"; |
| 482 | regulator-name = "ibb_reg"; |
| 483 | |
| 484 | regulator-min-microvolt = <4600000>; |
| 485 | regulator-max-microvolt = <6000000>; |
| 486 | |
Fenglin Wu | 1b18856 | 2017-05-19 14:20:04 +0800 | [diff] [blame] | 487 | interrupts = <0x3 0xdc 0x2 |
| 488 | IRQ_TYPE_EDGE_RISING>; |
| 489 | interrupt-names = "ibb-sc-err"; |
| 490 | |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 491 | qcom,qpnp-ibb-min-voltage = <1400000>; |
| 492 | qcom,qpnp-ibb-step-size = <100000>; |
| 493 | qcom,qpnp-ibb-slew-rate = <2000000>; |
| 494 | qcom,qpnp-ibb-use-default-voltage; |
| 495 | qcom,qpnp-ibb-init-voltage = <5500000>; |
| 496 | qcom,qpnp-ibb-init-amoled-voltage = <4000000>; |
| 497 | qcom,qpnp-ibb-init-lcd-voltage = <5500000>; |
| 498 | |
| 499 | qcom,qpnp-ibb-soft-start = <1000>; |
| 500 | |
| 501 | qcom,qpnp-ibb-lab-pwrup-delay = <8000>; |
| 502 | qcom,qpnp-ibb-lab-pwrdn-delay = <8000>; |
| 503 | qcom,qpnp-ibb-en-discharge; |
| 504 | |
| 505 | qcom,qpnp-ibb-full-pull-down; |
| 506 | qcom,qpnp-ibb-pull-down-enable; |
| 507 | qcom,qpnp-ibb-switching-clock-frequency = |
| 508 | <1480>; |
| 509 | qcom,qpnp-ibb-limit-maximum-current = <1550>; |
| 510 | qcom,qpnp-ibb-debounce-cycle = <16>; |
| 511 | qcom,qpnp-ibb-limit-max-current-enable; |
| 512 | qcom,qpnp-ibb-ps-enable; |
| 513 | }; |
| 514 | |
| 515 | lab_regulator: qcom,lab@de00 { |
| 516 | reg = <0xde00 0x100>; |
| 517 | reg-names = "lab"; |
| 518 | regulator-name = "lab_reg"; |
| 519 | |
| 520 | regulator-min-microvolt = <4600000>; |
| 521 | regulator-max-microvolt = <6000000>; |
| 522 | |
| 523 | interrupts = <0x3 0xde 0x0 |
Fenglin Wu | 1b18856 | 2017-05-19 14:20:04 +0800 | [diff] [blame] | 524 | IRQ_TYPE_EDGE_RISING>, |
| 525 | <0x3 0xde 0x1 |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 526 | IRQ_TYPE_EDGE_RISING>; |
Fenglin Wu | 1b18856 | 2017-05-19 14:20:04 +0800 | [diff] [blame] | 527 | interrupt-names = "lab-vreg-ok", "lab-sc-err"; |
| 528 | |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 529 | qcom,qpnp-lab-min-voltage = <4600000>; |
| 530 | qcom,qpnp-lab-step-size = <100000>; |
| 531 | qcom,qpnp-lab-slew-rate = <5000>; |
| 532 | qcom,qpnp-lab-use-default-voltage; |
| 533 | qcom,qpnp-lab-init-voltage = <5500000>; |
| 534 | qcom,qpnp-lab-init-amoled-voltage = <4600000>; |
| 535 | qcom,qpnp-lab-init-lcd-voltage = <5500000>; |
| 536 | |
| 537 | qcom,qpnp-lab-soft-start = <800>; |
| 538 | |
| 539 | qcom,qpnp-lab-full-pull-down; |
| 540 | qcom,qpnp-lab-pull-down-enable; |
| 541 | qcom,qpnp-lab-switching-clock-frequency = |
| 542 | <1600>; |
| 543 | qcom,qpnp-lab-limit-maximum-current = <1600>; |
| 544 | qcom,qpnp-lab-limit-max-current-enable; |
Subbaraman Narayanamurthy | 66e3707 | 2017-10-02 11:58:12 -0700 | [diff] [blame] | 545 | qcom,qpnp-lab-ps-threshold = <70>; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 546 | qcom,qpnp-lab-ps-enable; |
| 547 | qcom,qpnp-lab-nfet-size = <100>; |
| 548 | qcom,qpnp-lab-pfet-size = <100>; |
| 549 | qcom,qpnp-lab-max-precharge-time = <500>; |
| 550 | }; |
| 551 | }; |
| 552 | |
| 553 | pmi8998_wled: qcom,leds@d800 { |
| 554 | compatible = "qcom,qpnp-wled"; |
| 555 | reg = <0xd800 0x100>, |
| 556 | <0xd900 0x100>; |
| 557 | reg-names = "qpnp-wled-ctrl-base", |
| 558 | "qpnp-wled-sink-base"; |
| 559 | interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>, |
| 560 | <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>; |
| 561 | interrupt-names = "ovp-irq", "sc-irq"; |
| 562 | linux,name = "wled"; |
| 563 | linux,default-trigger = "bkl-trigger"; |
| 564 | qcom,fdbk-output = "auto"; |
| 565 | qcom,vref-uv = <127500>; |
| 566 | qcom,switch-freq-khz = <800>; |
| 567 | qcom,ovp-mv = <29600>; |
| 568 | qcom,ilim-ma = <970>; |
| 569 | qcom,boost-duty-ns = <26>; |
| 570 | qcom,mod-freq-khz = <9600>; |
| 571 | qcom,dim-mode = "hybrid"; |
| 572 | qcom,hyb-thres = <625>; |
| 573 | qcom,sync-dly-us = <800>; |
| 574 | qcom,fs-curr-ua = <25000>; |
| 575 | qcom,cons-sync-write-delay-us = <1000>; |
| 576 | qcom,led-strings-list = [00 01 02 03]; |
| 577 | qcom,en-ext-pfet-sc-pro; |
| 578 | qcom,pmic-revid = <&pmi8998_revid>; |
| 579 | qcom,loop-auto-gm-en; |
Anirudh Ghayal | f2e640c | 2017-08-13 06:35:08 +0530 | [diff] [blame] | 580 | qcom,auto-calibration-enable; |
Subbaraman Narayanamurthy | 1f92fc1 | 2017-03-30 15:41:45 -0700 | [diff] [blame] | 581 | status = "disabled"; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 582 | }; |
| 583 | |
| 584 | flash_led: qcom,leds@d300 { |
| 585 | compatible = "qcom,qpnp-flash-led-v2"; |
| 586 | status = "okay"; |
| 587 | reg = <0xd300 0x100>; |
| 588 | label = "flash"; |
| 589 | interrupts = <0x3 0xd3 0x0 IRQ_TYPE_EDGE_RISING>, |
| 590 | <0x3 0xd3 0x3 IRQ_TYPE_EDGE_RISING>, |
| 591 | <0x3 0xd3 0x4 IRQ_TYPE_EDGE_RISING>; |
| 592 | interrupt-names = "led-fault-irq", |
| 593 | "all-ramp-down-done-irq", |
| 594 | "all-ramp-up-done-irq"; |
| 595 | qcom,hdrm-auto-mode; |
| 596 | qcom,short-circuit-det; |
| 597 | qcom,open-circuit-det; |
| 598 | qcom,vph-droop-det; |
| 599 | qcom,thermal-derate-en; |
| 600 | qcom,thermal-derate-current = <200 500 1000>; |
| 601 | qcom,isc-delay = <192>; |
| 602 | qcom,pmic-revid = <&pmi8998_revid>; |
| 603 | |
| 604 | pmi8998_flash0: qcom,flash_0 { |
| 605 | label = "flash"; |
| 606 | qcom,led-name = "led:flash_0"; |
| 607 | qcom,max-current = <1500>; |
| 608 | qcom,default-led-trigger = "flash0_trigger"; |
| 609 | qcom,id = <0>; |
| 610 | qcom,current-ma = <1000>; |
| 611 | qcom,duration-ms = <1280>; |
| 612 | qcom,ires-ua = <12500>; |
| 613 | qcom,hdrm-voltage-mv = <325>; |
| 614 | qcom,hdrm-vol-hi-lo-win-mv = <100>; |
| 615 | }; |
| 616 | |
| 617 | pmi8998_flash1: qcom,flash_1 { |
| 618 | label = "flash"; |
| 619 | qcom,led-name = "led:flash_1"; |
| 620 | qcom,max-current = <1500>; |
| 621 | qcom,default-led-trigger = "flash1_trigger"; |
| 622 | qcom,id = <1>; |
| 623 | qcom,current-ma = <1000>; |
| 624 | qcom,duration-ms = <1280>; |
| 625 | qcom,ires-ua = <12500>; |
| 626 | qcom,hdrm-voltage-mv = <325>; |
| 627 | qcom,hdrm-vol-hi-lo-win-mv = <100>; |
| 628 | }; |
| 629 | |
| 630 | pmi8998_flash2: qcom,flash_2 { |
| 631 | label = "flash"; |
| 632 | qcom,led-name = "led:flash_2"; |
| 633 | qcom,max-current = <750>; |
| 634 | qcom,default-led-trigger = "flash2_trigger"; |
| 635 | qcom,id = <2>; |
| 636 | qcom,current-ma = <500>; |
| 637 | qcom,duration-ms = <1280>; |
| 638 | qcom,ires-ua = <12500>; |
| 639 | qcom,hdrm-voltage-mv = <325>; |
| 640 | qcom,hdrm-vol-hi-lo-win-mv = <100>; |
| 641 | }; |
| 642 | |
| 643 | pmi8998_torch0: qcom,torch_0 { |
| 644 | label = "torch"; |
| 645 | qcom,led-name = "led:torch_0"; |
| 646 | qcom,max-current = <500>; |
| 647 | qcom,default-led-trigger = "torch0_trigger"; |
| 648 | qcom,id = <0>; |
| 649 | qcom,current-ma = <300>; |
| 650 | qcom,ires-ua = <12500>; |
| 651 | qcom,hdrm-voltage-mv = <325>; |
| 652 | qcom,hdrm-vol-hi-lo-win-mv = <100>; |
| 653 | }; |
| 654 | |
| 655 | pmi8998_torch1: qcom,torch_1 { |
| 656 | label = "torch"; |
| 657 | qcom,led-name = "led:torch_1"; |
| 658 | qcom,max-current = <500>; |
| 659 | qcom,default-led-trigger = "torch1_trigger"; |
| 660 | qcom,id = <1>; |
| 661 | qcom,current-ma = <300>; |
| 662 | qcom,ires-ua = <12500>; |
| 663 | qcom,hdrm-voltage-mv = <325>; |
| 664 | qcom,hdrm-vol-hi-lo-win-mv = <100>; |
| 665 | }; |
| 666 | |
| 667 | pmi8998_torch2: qcom,torch_2 { |
| 668 | label = "torch"; |
| 669 | qcom,led-name = "led:torch_2"; |
| 670 | qcom,max-current = <500>; |
| 671 | qcom,default-led-trigger = "torch2_trigger"; |
| 672 | qcom,id = <2>; |
| 673 | qcom,current-ma = <300>; |
| 674 | qcom,ires-ua = <12500>; |
| 675 | qcom,hdrm-voltage-mv = <325>; |
| 676 | qcom,hdrm-vol-hi-lo-win-mv = <100>; |
| 677 | }; |
| 678 | |
| 679 | pmi8998_switch0: qcom,led_switch_0 { |
| 680 | label = "switch"; |
| 681 | qcom,led-name = "led:switch_0"; |
| 682 | qcom,led-mask = <3>; |
| 683 | qcom,default-led-trigger = "switch0_trigger"; |
| 684 | }; |
| 685 | |
| 686 | pmi8998_switch1: qcom,led_switch_1 { |
| 687 | label = "switch"; |
| 688 | qcom,led-name = "led:switch_1"; |
| 689 | qcom,led-mask = <4>; |
| 690 | qcom,default-led-trigger = "switch1_trigger"; |
| 691 | }; |
Jilai Wang | f4d78a2 | 2017-11-10 17:05:47 -0500 | [diff] [blame] | 692 | |
| 693 | pmi8998_switch2: qcom,led_switch_2 { |
| 694 | label = "switch"; |
| 695 | qcom,led-name = "led:switch_2"; |
| 696 | qcom,led-mask = <4>; |
| 697 | qcom,default-led-trigger = "switch2_trigger"; |
| 698 | }; |
| 699 | |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 700 | }; |
Subbaraman Narayanamurthy | 4ed0b4b | 2017-05-15 20:00:12 -0700 | [diff] [blame] | 701 | |
| 702 | pmi8998_haptics: qcom,haptics@c000 { |
| 703 | compatible = "qcom,qpnp-haptics"; |
| 704 | reg = <0xc000 0x100>; |
| 705 | interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>, |
| 706 | <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>; |
| 707 | interrupt-names = "hap-sc-irq", "hap-play-irq"; |
| 708 | qcom,pmic-revid = <&pmi8998_revid>; |
| 709 | qcom,pmic-misc = <&pmi8998_misc>; |
| 710 | qcom,misc-clk-trim-error-reg = <0xf3>; |
| 711 | qcom,actuator-type = <0>; |
| 712 | qcom,play-mode = "direct"; |
| 713 | qcom,vmax-mv = <3200>; |
| 714 | qcom,ilim-ma = <800>; |
| 715 | qcom,sc-dbc-cycles = <8>; |
| 716 | qcom,wave-play-rate-us = <6667>; |
| 717 | qcom,en-brake; |
| 718 | qcom,lra-high-z = "opt1"; |
| 719 | qcom,lra-auto-res-mode = "qwd"; |
| 720 | qcom,lra-res-cal-period = <4>; |
| 721 | status = "disabled"; |
| 722 | }; |
David Collins | bbed9aa | 2017-03-10 11:53:10 -0800 | [diff] [blame] | 723 | }; |
| 724 | }; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 725 | |
| 726 | &thermal_zones { |
| 727 | ibat-high { |
| 728 | polling-delay-passive = <0>; |
| 729 | polling-delay = <0>; |
| 730 | thermal-governor = "step_wise"; |
| 731 | thermal-sensors = <&bcl_sensor 0>; |
| 732 | |
| 733 | trips { |
| 734 | ibat_high: low-ibat { |
Ram Chandrasekar | 04f06ba | 2017-12-06 09:37:11 -0700 | [diff] [blame] | 735 | temperature = <5000>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 736 | hysteresis = <200>; |
| 737 | type = "passive"; |
| 738 | }; |
| 739 | }; |
| 740 | }; |
| 741 | ibat-vhigh { |
| 742 | polling-delay-passive = <0>; |
| 743 | polling-delay = <0>; |
| 744 | thermal-governor = "step_wise"; |
| 745 | thermal-sensors = <&bcl_sensor 1>; |
| 746 | |
| 747 | trips { |
| 748 | ibat_vhigh: ibat_vhigh { |
Ram Chandrasekar | 04f06ba | 2017-12-06 09:37:11 -0700 | [diff] [blame] | 749 | temperature = <6000>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 750 | hysteresis = <100>; |
| 751 | type = "passive"; |
| 752 | }; |
| 753 | }; |
| 754 | }; |
| 755 | vbat { |
| 756 | polling-delay-passive = <100>; |
| 757 | polling-delay = <0>; |
| 758 | thermal-governor = "low_limits_cap"; |
| 759 | thermal-sensors = <&bcl_sensor 2>; |
| 760 | tracks-low; |
| 761 | |
| 762 | trips { |
| 763 | low_vbat: low-vbat { |
Ram Chandrasekar | 04f06ba | 2017-12-06 09:37:11 -0700 | [diff] [blame] | 764 | temperature = <3200>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 765 | hysteresis = <100>; |
| 766 | type = "passive"; |
| 767 | }; |
| 768 | }; |
| 769 | cooling-maps { |
| 770 | vbat_cpu4 { |
| 771 | trip = <&low_vbat>; |
Ram Chandrasekar | 543a0b1 | 2017-06-12 17:49:50 -0600 | [diff] [blame] | 772 | cooling-device = |
| 773 | <&CPU4 THERMAL_MAX_LIMIT |
| 774 | THERMAL_MAX_LIMIT>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 775 | }; |
| 776 | vbat_cpu5 { |
| 777 | trip = <&low_vbat>; |
Ram Chandrasekar | 543a0b1 | 2017-06-12 17:49:50 -0600 | [diff] [blame] | 778 | cooling-device = |
| 779 | <&CPU5 THERMAL_MAX_LIMIT |
| 780 | THERMAL_MAX_LIMIT>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 781 | }; |
| 782 | vbat_map6 { |
| 783 | trip = <&low_vbat>; |
Ram Chandrasekar | 543a0b1 | 2017-06-12 17:49:50 -0600 | [diff] [blame] | 784 | cooling-device = |
| 785 | <&CPU6 THERMAL_MAX_LIMIT |
| 786 | THERMAL_MAX_LIMIT>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 787 | }; |
| 788 | vbat_map7 { |
| 789 | trip = <&low_vbat>; |
Ram Chandrasekar | 543a0b1 | 2017-06-12 17:49:50 -0600 | [diff] [blame] | 790 | cooling-device = |
| 791 | <&CPU7 THERMAL_MAX_LIMIT |
| 792 | THERMAL_MAX_LIMIT>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 793 | }; |
| 794 | }; |
| 795 | }; |
| 796 | vbat_low { |
| 797 | polling-delay-passive = <0>; |
| 798 | polling-delay = <0>; |
| 799 | thermal-governor = "low_limits_cap"; |
| 800 | thermal-sensors = <&bcl_sensor 3>; |
| 801 | tracks-low; |
| 802 | |
| 803 | trips { |
| 804 | low-vbat { |
Ram Chandrasekar | 04f06ba | 2017-12-06 09:37:11 -0700 | [diff] [blame] | 805 | temperature = <2800>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 806 | hysteresis = <0>; |
| 807 | type = "passive"; |
| 808 | }; |
| 809 | }; |
| 810 | }; |
| 811 | vbat_too_low { |
| 812 | polling-delay-passive = <0>; |
| 813 | polling-delay = <0>; |
| 814 | thermal-governor = "low_limits_cap"; |
| 815 | thermal-sensors = <&bcl_sensor 4>; |
| 816 | tracks-low; |
| 817 | |
| 818 | trips { |
| 819 | low-vbat { |
Ram Chandrasekar | 04f06ba | 2017-12-06 09:37:11 -0700 | [diff] [blame] | 820 | temperature = <2600>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 821 | hysteresis = <0>; |
| 822 | type = "passive"; |
| 823 | }; |
| 824 | }; |
| 825 | }; |
| 826 | soc { |
| 827 | polling-delay-passive = <100>; |
| 828 | polling-delay = <0>; |
| 829 | thermal-governor = "low_limits_cap"; |
| 830 | thermal-sensors = <&bcl_sensor 5>; |
| 831 | tracks-low; |
| 832 | |
| 833 | trips { |
| 834 | low_soc: low-soc { |
| 835 | temperature = <10>; |
| 836 | hysteresis = <0>; |
| 837 | type = "passive"; |
| 838 | }; |
| 839 | }; |
| 840 | cooling-maps { |
| 841 | soc_cpu4 { |
| 842 | trip = <&low_soc>; |
Ram Chandrasekar | 543a0b1 | 2017-06-12 17:49:50 -0600 | [diff] [blame] | 843 | cooling-device = |
| 844 | <&CPU4 THERMAL_MAX_LIMIT |
| 845 | THERMAL_MAX_LIMIT>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 846 | }; |
| 847 | soc_cpu5 { |
| 848 | trip = <&low_soc>; |
Ram Chandrasekar | 543a0b1 | 2017-06-12 17:49:50 -0600 | [diff] [blame] | 849 | cooling-device = |
| 850 | <&CPU5 THERMAL_MAX_LIMIT |
| 851 | THERMAL_MAX_LIMIT>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 852 | }; |
| 853 | soc_map6 { |
| 854 | trip = <&low_soc>; |
Ram Chandrasekar | 543a0b1 | 2017-06-12 17:49:50 -0600 | [diff] [blame] | 855 | cooling-device = |
| 856 | <&CPU6 THERMAL_MAX_LIMIT |
| 857 | THERMAL_MAX_LIMIT>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 858 | }; |
| 859 | soc_map7 { |
| 860 | trip = <&low_soc>; |
Ram Chandrasekar | 543a0b1 | 2017-06-12 17:49:50 -0600 | [diff] [blame] | 861 | cooling-device = |
| 862 | <&CPU7 THERMAL_MAX_LIMIT |
| 863 | THERMAL_MAX_LIMIT>; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 864 | }; |
| 865 | }; |
| 866 | }; |
Ram Chandrasekar | 9920cf0 | 2017-04-21 17:38:51 -0600 | [diff] [blame] | 867 | |
| 868 | pmi8998_tz { |
| 869 | polling-delay-passive = <0>; |
| 870 | polling-delay = <0>; |
| 871 | thermal-sensors = <&pmi8998_tz>; |
| 872 | |
| 873 | trips { |
| 874 | pmi8998_trip0: pmi8998-trip0 { |
| 875 | temperature = <105000>; |
| 876 | hysteresis = <0>; |
| 877 | type = "passive"; |
| 878 | }; |
| 879 | pmi8998_trip1: pmi8998-trip1 { |
| 880 | temperature = <125000>; |
| 881 | hysteresis = <0>; |
| 882 | type = "passive"; |
| 883 | }; |
| 884 | pmi8998_trip2: pmi8998-trip2 { |
| 885 | temperature = <145000>; |
| 886 | hysteresis = <0>; |
Ram Chandrasekar | 514fe71 | 2017-12-06 10:27:04 -0700 | [diff] [blame] | 887 | type = "passive"; |
Ram Chandrasekar | 9920cf0 | 2017-04-21 17:38:51 -0600 | [diff] [blame] | 888 | }; |
| 889 | }; |
| 890 | }; |
Ram Chandrasekar | 61ede0c | 2017-04-17 17:12:56 -0600 | [diff] [blame] | 891 | }; |