Siddartha Mohanadoss | 18c4b9f | 2014-01-23 16:13:31 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. |
Kenneth Heitke | e580400 | 2012-11-15 17:50:07 -0700 | [diff] [blame] | 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 | &spmi_bus { |
| 14 | #address-cells = <1>; |
| 15 | #size-cells = <0>; |
| 16 | interrupt-controller; |
| 17 | #interrupt-cells = <3>; |
David Keitel | 8498711 | 2013-02-11 13:26:30 -0800 | [diff] [blame] | 18 | |
David Keitel | 4109e95 | 2013-02-07 20:22:13 -0800 | [diff] [blame] | 19 | qcom,pm8226@0 { |
| 20 | spmi-slave-container; |
| 21 | reg = <0x0>; |
| 22 | #address-cells = <1>; |
| 23 | #size-cells = <1>; |
| 24 | |
Abhijeet Dharmapurikar | e749700 | 2013-07-29 11:25:37 -0700 | [diff] [blame] | 25 | pm8226_revid: qcom,revid@100 { |
Xiaozhe Shi | a0e6c23 | 2013-03-06 15:22:05 -0800 | [diff] [blame] | 26 | compatible = "qcom,qpnp-revid"; |
| 27 | reg = <0x100 0x100>; |
| 28 | }; |
| 29 | |
Amy Maloche | f822594 | 2013-03-04 12:16:29 -0800 | [diff] [blame] | 30 | qcom,power-on@800 { |
| 31 | compatible = "qcom,qpnp-power-on"; |
| 32 | reg = <0x800 0x100>; |
| 33 | interrupts = <0x0 0x8 0x0>, |
| 34 | <0x0 0x8 0x1>, |
Amy Maloche | 442667a | 2013-06-27 14:11:06 -0700 | [diff] [blame] | 35 | <0x0 0x8 0x4>, |
| 36 | <0x0 0x8 0x5>; |
| 37 | interrupt-names = "kpdpwr", "resin", |
| 38 | "resin-bark", "kpdpwr-resin-bark"; |
Amy Maloche | f822594 | 2013-03-04 12:16:29 -0800 | [diff] [blame] | 39 | qcom,pon-dbc-delay = <15625>; |
| 40 | qcom,system-reset; |
Amy Maloche | 442667a | 2013-06-27 14:11:06 -0700 | [diff] [blame] | 41 | qcom,s3-debounce = <32>; |
Mohan Pallaka | 0cdf17b | 2014-02-10 17:16:51 -0800 | [diff] [blame] | 42 | qcom,s3-src = "kpdpwr-and-resin"; |
Amy Maloche | f822594 | 2013-03-04 12:16:29 -0800 | [diff] [blame] | 43 | |
| 44 | qcom,pon_1 { |
| 45 | qcom,pon-type = <0>; |
| 46 | qcom,pull-up = <1>; |
| 47 | linux,code = <116>; |
| 48 | }; |
| 49 | |
| 50 | qcom,pon_2 { |
| 51 | qcom,pon-type = <1>; |
Amy Maloche | f822594 | 2013-03-04 12:16:29 -0800 | [diff] [blame] | 52 | qcom,pull-up = <1>; |
Amy Maloche | f822594 | 2013-03-04 12:16:29 -0800 | [diff] [blame] | 53 | linux,code = <114>; |
| 54 | }; |
Amy Maloche | 442667a | 2013-06-27 14:11:06 -0700 | [diff] [blame] | 55 | |
| 56 | qcom,pon_3 { |
| 57 | qcom,pon-type = <3>; |
| 58 | qcom,support-reset = <1>; |
| 59 | qcom,pull-up = <1>; |
| 60 | qcom,s1-timer = <6720>; |
| 61 | qcom,s2-timer = <2000>; |
| 62 | qcom,s2-type = <7>; |
Mohan Pallaka | 7d7eb3e | 2013-09-24 16:56:27 +0530 | [diff] [blame] | 63 | qcom,use-bark; |
Amy Maloche | 442667a | 2013-06-27 14:11:06 -0700 | [diff] [blame] | 64 | }; |
Amy Maloche | f822594 | 2013-03-04 12:16:29 -0800 | [diff] [blame] | 65 | }; |
| 66 | |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 67 | pm8226_chg: qcom,charger { |
| 68 | spmi-dev-container; |
| 69 | compatible = "qcom,qpnp-charger"; |
| 70 | #address-cells = <1>; |
| 71 | #size-cells = <1>; |
| 72 | status = "disabled"; |
| 73 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 74 | qcom,vddmax-mv = <4200>; |
Xiaozhe Shi | 22aa0cd | 2013-05-28 10:45:12 -0700 | [diff] [blame] | 75 | qcom,vddsafe-mv = <4230>; |
Xiaozhe Shi | 555dffd | 2013-07-25 17:21:10 -0700 | [diff] [blame] | 76 | qcom,vinmin-mv = <4300>; |
Xiaozhe Shi | c220bf8 | 2013-07-25 17:15:57 -0700 | [diff] [blame] | 77 | qcom,vbatdet-delta-mv = <100>; |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 78 | qcom,ibatmax-ma = <1500>; |
David Keitel | 9fd0738 | 2013-05-02 15:37:44 -0700 | [diff] [blame] | 79 | qcom,ibatterm-ma = <100>; |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 80 | qcom,ibatsafe-ma = <1500>; |
| 81 | qcom,thermal-mitigation = <1500 700 600 325>; |
Xiaozhe Shi | 1acc092 | 2013-07-12 10:55:21 -0700 | [diff] [blame] | 82 | qcom,resume-soc = <99>; |
David Keitel | b0b6363 | 2013-03-27 15:17:33 -0700 | [diff] [blame] | 83 | qcom,tchg-mins = <150>; |
Siddartha Mohanadoss | 3cb2b6b | 2013-06-21 12:07:05 -0700 | [diff] [blame] | 84 | qcom,chg-vadc = <&pm8226_vadc>; |
Siddartha Mohanadoss | 88a3fde | 2013-06-24 16:18:52 -0700 | [diff] [blame] | 85 | qcom,chg-adc_tm = <&pm8226_adc_tm>; |
Abhijeet Dharmapurikar | e749700 | 2013-07-29 11:25:37 -0700 | [diff] [blame] | 86 | qcom,pmic-revid = <&pm8226_revid>; |
David Keitel | 5dd5df8 | 2013-07-29 17:28:39 -0700 | [diff] [blame] | 87 | qcom,ibatmax-warm-ma = <350>; |
| 88 | qcom,warm-bat-decidegc = <450>; |
| 89 | qcom,warm-bat-mv = <4100>; |
| 90 | qcom,cool-bat-decidegc = <100>; |
| 91 | qcom,cool-bat-mv = <4100>; |
| 92 | qcom,ibatmax-cool-ma = <350>; |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 93 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 94 | qcom,chgr@1000 { |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 95 | status = "disabled"; |
| 96 | reg = <0x1000 0x100>; |
| 97 | interrupts = <0x0 0x10 0x0>, |
| 98 | <0x0 0x10 0x1>, |
| 99 | <0x0 0x10 0x2>, |
| 100 | <0x0 0x10 0x3>, |
| 101 | <0x0 0x10 0x4>, |
| 102 | <0x0 0x10 0x5>, |
| 103 | <0x0 0x10 0x6>, |
| 104 | <0x0 0x10 0x7>; |
| 105 | |
| 106 | interrupt-names = "vbat-det-lo", |
| 107 | "vbat-det-hi", |
| 108 | "chgwdog", |
| 109 | "state-change", |
| 110 | "trkl-chg-on", |
| 111 | "fast-chg-on", |
| 112 | "chg-failed", |
| 113 | "chg-done"; |
| 114 | }; |
| 115 | |
David Keitel | e89d478 | 2013-03-27 11:29:59 -0700 | [diff] [blame] | 116 | qcom,buck@1100 { |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 117 | status = "disabled"; |
| 118 | reg = <0x1100 0x100>; |
| 119 | interrupts = <0x0 0x11 0x0>, |
| 120 | <0x0 0x11 0x1>, |
| 121 | <0x0 0x11 0x2>, |
| 122 | <0x0 0x11 0x3>, |
| 123 | <0x0 0x11 0x4>, |
| 124 | <0x0 0x11 0x5>, |
| 125 | <0x0 0x11 0x6>; |
| 126 | |
| 127 | interrupt-names = "vbat-ov", |
| 128 | "vreg-ov", |
| 129 | "overtemp", |
| 130 | "vchg-loop", |
| 131 | "ichg-loop", |
| 132 | "ibat-loop", |
| 133 | "vdd-loop"; |
| 134 | }; |
| 135 | |
Abhijeet Dharmapurikar | 6ba9076 | 2013-08-05 12:50:21 -0700 | [diff] [blame] | 136 | pm8226_chg_batif: qcom,bat-if@1200 { |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 137 | status = "disabled"; |
| 138 | reg = <0x1200 0x100>; |
| 139 | interrupts = <0x0 0x12 0x0>, |
| 140 | <0x0 0x12 0x1>, |
| 141 | <0x0 0x12 0x2>, |
| 142 | <0x0 0x12 0x3>, |
| 143 | <0x0 0x12 0x4>; |
| 144 | |
| 145 | interrupt-names = "batt-pres", |
| 146 | "bat-temp-ok", |
| 147 | "bat-fet-on", |
| 148 | "vcp-on", |
| 149 | "psi"; |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 150 | }; |
| 151 | |
David Keitel | 3bdfa5d | 2013-07-10 17:36:07 -0700 | [diff] [blame] | 152 | pm8226_chg_boost: qcom,boost@1500 { |
| 153 | status = "disabled"; |
| 154 | reg = <0x1500 0x100>; |
| 155 | interrupts = <0x0 0x15 0x0>, |
| 156 | <0x0 0x15 0x1>; |
| 157 | |
| 158 | interrupt-names = "boost-pwr-ok", |
| 159 | "limit-error"; |
| 160 | }; |
| 161 | |
| 162 | |
David Keitel | 55aa28c | 2013-05-22 05:24:47 -0700 | [diff] [blame] | 163 | pm8226_chg_otg: qcom,usb-chgpth@1300 { |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 164 | status = "disabled"; |
| 165 | reg = <0x1300 0x100>; |
| 166 | interrupts = <0 0x13 0x0>, |
| 167 | <0 0x13 0x1>, |
David Keitel | 0b62bdd | 2013-07-10 17:30:51 -0700 | [diff] [blame] | 168 | <0x0 0x13 0x2>, |
| 169 | <0x0 0x13 0x3>; |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 170 | |
| 171 | interrupt-names = "coarse-det-usb", |
| 172 | "usbin-valid", |
David Keitel | 0b62bdd | 2013-07-10 17:30:51 -0700 | [diff] [blame] | 173 | "chg-gone", |
| 174 | "usb-ocp"; |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 175 | }; |
| 176 | |
David Keitel | c51a7e5 | 2013-03-02 00:14:48 -0800 | [diff] [blame] | 177 | qcom,chg-misc@1600 { |
| 178 | status = "disabled"; |
| 179 | reg = <0x1600 0x100>; |
| 180 | }; |
| 181 | }; |
| 182 | |
Xiaozhe Shi | cb59c9d | 2013-03-19 10:43:07 -0700 | [diff] [blame] | 183 | pm8226_bms: qcom,bms { |
| 184 | spmi-dev-container; |
| 185 | compatible = "qcom,qpnp-bms"; |
| 186 | #address-cells = <1>; |
| 187 | #size-cells = <1>; |
| 188 | status = "disabled"; |
| 189 | |
| 190 | qcom,r-sense-uohm = <10000>; |
| 191 | qcom,v-cutoff-uv = <3400000>; |
| 192 | qcom,max-voltage-uv = <4200000>; |
Xiaozhe Shi | e0da4c7 | 2013-04-02 10:43:55 -0700 | [diff] [blame] | 193 | qcom,r-conn-mohm = <0>; |
Xiaozhe Shi | 8e1fe4c | 2013-09-11 10:53:59 -0700 | [diff] [blame] | 194 | qcom,shutdown-soc-valid-limit = <100>; |
Xiaozhe Shi | 561ebf7 | 2013-03-25 13:51:27 -0700 | [diff] [blame] | 195 | qcom,adjust-soc-low-threshold = <15>; |
Xiaozhe Shi | cb59c9d | 2013-03-19 10:43:07 -0700 | [diff] [blame] | 196 | qcom,ocv-voltage-high-threshold-uv = <3750000>; |
| 197 | qcom,ocv-voltage-low-threshold-uv = <3650000>; |
| 198 | qcom,low-soc-calculate-soc-threshold = <15>; |
Xiaozhe Shi | cb487b1 | 2013-10-14 17:42:07 -0700 | [diff] [blame] | 199 | qcom,low-voltage-calculate-soc-ms = <1000>; |
Xiaozhe Shi | cb59c9d | 2013-03-19 10:43:07 -0700 | [diff] [blame] | 200 | qcom,low-soc-calculate-soc-ms = <5000>; |
| 201 | qcom,calculate-soc-ms = <20000>; |
| 202 | qcom,chg-term-ua = <100000>; |
| 203 | qcom,batt-type = <0>; |
Xiaozhe Shi | 535494d | 2013-04-05 12:27:51 -0700 | [diff] [blame] | 204 | qcom,tm-temp-margin = <5000>; |
Xiaozhe Shi | 0ac7a00 | 2013-03-26 13:14:03 -0700 | [diff] [blame] | 205 | qcom,low-ocv-correction-limit-uv = <100>; |
Xiaozhe Shi | 4b7d0d2 | 2013-11-11 10:29:11 -0800 | [diff] [blame] | 206 | qcom,high-ocv-correction-limit-uv = <250>; |
Xiaozhe Shi | 0ac7a00 | 2013-03-26 13:14:03 -0700 | [diff] [blame] | 207 | qcom,hold-soc-est = <3>; |
Xiaozhe Shi | 33988df | 2013-04-03 10:37:56 -0700 | [diff] [blame] | 208 | qcom,low-voltage-threshold = <3420000>; |
Siddartha Mohanadoss | 3cb2b6b | 2013-06-21 12:07:05 -0700 | [diff] [blame] | 209 | qcom,bms-vadc = <&pm8226_vadc>; |
Siddartha Mohanadoss | 55d0bca | 2013-06-24 08:29:34 -0700 | [diff] [blame] | 210 | qcom,bms-iadc = <&pm8226_iadc>; |
Siddartha Mohanadoss | 88a3fde | 2013-06-24 16:18:52 -0700 | [diff] [blame] | 211 | qcom,bms-adc_tm = <&pm8226_adc_tm>; |
Xiaozhe Shi | cb59c9d | 2013-03-19 10:43:07 -0700 | [diff] [blame] | 212 | |
| 213 | qcom,bms-iadc@3800 { |
| 214 | reg = <0x3800 0x100>; |
| 215 | }; |
| 216 | |
| 217 | qcom,bms-bms@4000 { |
| 218 | reg = <0x4000 0x100>; |
| 219 | interrupts = <0x0 0x40 0x0>, |
| 220 | <0x0 0x40 0x1>, |
| 221 | <0x0 0x40 0x2>, |
| 222 | <0x0 0x40 0x3>, |
| 223 | <0x0 0x40 0x4>, |
| 224 | <0x0 0x40 0x5>, |
| 225 | <0x0 0x40 0x6>, |
| 226 | <0x0 0x40 0x7>; |
| 227 | |
Xiaozhe Shi | c4c04ee | 2013-07-29 10:41:48 -0700 | [diff] [blame] | 228 | interrupt-names = "cc_thr", |
Xiaozhe Shi | cb59c9d | 2013-03-19 10:43:07 -0700 | [diff] [blame] | 229 | "ocv_for_r", |
Xiaozhe Shi | c4c04ee | 2013-07-29 10:41:48 -0700 | [diff] [blame] | 230 | "good_ocv", |
| 231 | "charge_begin", |
| 232 | "ocv_thr", |
| 233 | "sw_cc_thr", |
| 234 | "vsense_avg", |
| 235 | "vsense_for_r"; |
Xiaozhe Shi | cb59c9d | 2013-03-19 10:43:07 -0700 | [diff] [blame] | 236 | }; |
| 237 | }; |
| 238 | |
Amy Maloche | f92d79c | 2013-04-22 11:55:05 -0700 | [diff] [blame] | 239 | qcom,leds@a100 { |
| 240 | compatible = "qcom,leds-qpnp"; |
| 241 | reg = <0xa100 0x100>; |
| 242 | label = "mpp"; |
| 243 | }; |
| 244 | |
Amy Maloche | 95ee2ab | 2013-04-22 11:50:26 -0700 | [diff] [blame] | 245 | qcom,leds@a300 { |
| 246 | compatible = "qcom,leds-qpnp"; |
| 247 | reg = <0xa300 0x100>; |
| 248 | label = "mpp"; |
| 249 | }; |
| 250 | |
| 251 | qcom,leds@a500 { |
| 252 | compatible = "qcom,leds-qpnp"; |
| 253 | reg = <0xa500 0x100>; |
| 254 | label = "mpp"; |
| 255 | }; |
| 256 | |
David Keitel | 4109e95 | 2013-02-07 20:22:13 -0800 | [diff] [blame] | 257 | pm8226_gpios: gpios { |
| 258 | spmi-dev-container; |
| 259 | compatible = "qcom,qpnp-pin"; |
| 260 | gpio-controller; |
| 261 | #gpio-cells = <2>; |
| 262 | #address-cells = <1>; |
| 263 | #size-cells = <1>; |
| 264 | label = "pm8226-gpio"; |
| 265 | |
| 266 | gpio@c000 { |
| 267 | reg = <0xc000 0x100>; |
| 268 | qcom,pin-num = <1>; |
| 269 | }; |
| 270 | |
| 271 | gpio@c100 { |
| 272 | reg = <0xc100 0x100>; |
| 273 | qcom,pin-num = <2>; |
| 274 | }; |
| 275 | |
| 276 | gpio@c200 { |
| 277 | reg = <0xc200 0x100>; |
| 278 | qcom,pin-num = <3>; |
| 279 | }; |
| 280 | |
| 281 | gpio@c300 { |
| 282 | reg = <0xc300 0x100>; |
| 283 | qcom,pin-num = <4>; |
| 284 | }; |
| 285 | |
| 286 | gpio@c400 { |
| 287 | reg = <0xc400 0x100>; |
| 288 | qcom,pin-num = <5>; |
| 289 | }; |
| 290 | |
| 291 | gpio@c500 { |
| 292 | reg = <0xc500 0x100>; |
| 293 | qcom,pin-num = <6>; |
| 294 | }; |
| 295 | |
| 296 | gpio@c600 { |
| 297 | reg = <0xc600 0x100>; |
| 298 | qcom,pin-num = <7>; |
| 299 | }; |
| 300 | |
| 301 | gpio@c700 { |
| 302 | reg = <0xc700 0x100>; |
| 303 | qcom,pin-num = <8>; |
| 304 | }; |
| 305 | }; |
| 306 | |
| 307 | pm8226_mpps: mpps { |
| 308 | spmi-dev-container; |
| 309 | compatible = "qcom,qpnp-pin"; |
| 310 | gpio-controller; |
| 311 | #gpio-cells = <2>; |
| 312 | #address-cells = <1>; |
| 313 | #size-cells = <1>; |
| 314 | label = "pm8226-mpp"; |
| 315 | |
| 316 | mpp@a000 { |
| 317 | reg = <0xa000 0x100>; |
| 318 | qcom,pin-num = <1>; |
| 319 | }; |
| 320 | |
| 321 | mpp@a100 { |
| 322 | reg = <0xa100 0x100>; |
| 323 | qcom,pin-num = <2>; |
| 324 | }; |
| 325 | |
| 326 | mpp@a200 { |
| 327 | reg = <0xa200 0x100>; |
| 328 | qcom,pin-num = <3>; |
| 329 | }; |
| 330 | |
| 331 | mpp@a300 { |
| 332 | reg = <0xa300 0x100>; |
| 333 | qcom,pin-num = <4>; |
| 334 | }; |
| 335 | |
| 336 | mpp@a400 { |
| 337 | reg = <0xa400 0x100>; |
| 338 | qcom,pin-num = <5>; |
| 339 | }; |
| 340 | |
| 341 | mpp@a500 { |
| 342 | reg = <0xa500 0x100>; |
| 343 | qcom,pin-num = <6>; |
| 344 | }; |
| 345 | |
| 346 | mpp@a600 { |
| 347 | reg = <0xa600 0x100>; |
| 348 | qcom,pin-num = <7>; |
| 349 | }; |
| 350 | |
| 351 | mpp@a700 { |
| 352 | reg = <0xa700 0x100>; |
| 353 | qcom,pin-num = <8>; |
| 354 | }; |
| 355 | }; |
Siddartha Mohanadoss | ae99e77 | 2013-02-19 15:44:40 -0800 | [diff] [blame] | 356 | |
| 357 | pm8226_vadc: vadc@3100 { |
| 358 | compatible = "qcom,qpnp-vadc"; |
| 359 | reg = <0x3100 0x100>; |
| 360 | #address-cells = <1>; |
| 361 | #size-cells = <0>; |
| 362 | interrupts = <0x0 0x31 0x0>; |
| 363 | interrupt-names = "eoc-int-en-set"; |
| 364 | qcom,adc-bit-resolution = <15>; |
| 365 | qcom,adc-vdd-reference = <1800>; |
Siddartha Mohanadoss | a0511e1 | 2013-08-01 10:53:52 -0700 | [diff] [blame] | 366 | qcom,vadc-poll-eoc; |
Siddartha Mohanadoss | 7e2b2c6 | 2013-10-08 08:51:42 -0700 | [diff] [blame] | 367 | qcom,pmic-revid = <&pm8226_revid>; |
Siddartha Mohanadoss | ae99e77 | 2013-02-19 15:44:40 -0800 | [diff] [blame] | 368 | |
| 369 | chan@8 { |
| 370 | label = "die_temp"; |
| 371 | reg = <8>; |
| 372 | qcom,decimation = <0>; |
| 373 | qcom,pre-div-channel-scaling = <0>; |
| 374 | qcom,calibration-type = "absolute"; |
| 375 | qcom,scale-function = <3>; |
| 376 | qcom,hw-settle-time = <0>; |
| 377 | qcom,fast-avg-setup = <0>; |
| 378 | }; |
| 379 | |
| 380 | chan@9 { |
| 381 | label = "ref_625mv"; |
| 382 | reg = <9>; |
| 383 | qcom,decimation = <0>; |
| 384 | qcom,pre-div-channel-scaling = <0>; |
| 385 | qcom,calibration-type = "absolute"; |
| 386 | qcom,scale-function = <0>; |
| 387 | qcom,hw-settle-time = <0>; |
| 388 | qcom,fast-avg-setup = <0>; |
| 389 | }; |
| 390 | |
| 391 | chan@a { |
| 392 | label = "ref_1250v"; |
| 393 | reg = <0xa>; |
| 394 | qcom,decimation = <0>; |
| 395 | qcom,pre-div-channel-scaling = <0>; |
| 396 | qcom,calibration-type = "absolute"; |
| 397 | qcom,scale-function = <0>; |
| 398 | qcom,hw-settle-time = <0>; |
| 399 | qcom,fast-avg-setup = <0>; |
| 400 | }; |
Siddartha Mohanadoss | a339063 | 2013-03-15 07:37:27 -0700 | [diff] [blame] | 401 | |
| 402 | chan@c { |
| 403 | label = "ref_buf_625mv"; |
| 404 | reg = <0xc>; |
| 405 | qcom,decimation = <0>; |
| 406 | qcom,pre-div-channel-scaling = <0>; |
| 407 | qcom,calibration-type = "absolute"; |
| 408 | qcom,scale-function = <0>; |
| 409 | qcom,hw-settle-time = <0>; |
| 410 | qcom,fast-avg-setup = <0>; |
| 411 | }; |
Siddartha Mohanadoss | ae99e77 | 2013-02-19 15:44:40 -0800 | [diff] [blame] | 412 | }; |
| 413 | |
Siddartha Mohanadoss | 3cb2b6b | 2013-06-21 12:07:05 -0700 | [diff] [blame] | 414 | pm8226_iadc: iadc@3600 { |
Siddartha Mohanadoss | ae99e77 | 2013-02-19 15:44:40 -0800 | [diff] [blame] | 415 | compatible = "qcom,qpnp-iadc"; |
Siddartha Mohanadoss | 18c4b9f | 2014-01-23 16:13:31 -0800 | [diff] [blame] | 416 | reg = <0x3600 0x100>, |
| 417 | <0x12f1 0x1>; |
| 418 | reg-names = "iadc-base", "batt-id-trim-cnst-rds"; |
Siddartha Mohanadoss | ae99e77 | 2013-02-19 15:44:40 -0800 | [diff] [blame] | 419 | #address-cells = <1>; |
| 420 | #size-cells = <0>; |
| 421 | interrupts = <0x0 0x36 0x0>; |
| 422 | interrupt-names = "eoc-int-en-set"; |
| 423 | qcom,adc-bit-resolution = <16>; |
| 424 | qcom,adc-vdd-reference = <1800>; |
Siddartha Mohanadoss | 3cb2b6b | 2013-06-21 12:07:05 -0700 | [diff] [blame] | 425 | qcom,iadc-vadc = <&pm8226_vadc>; |
Siddartha Mohanadoss | a0511e1 | 2013-08-01 10:53:52 -0700 | [diff] [blame] | 426 | qcom,iadc-poll-eoc; |
Siddartha Mohanadoss | 18c4b9f | 2014-01-23 16:13:31 -0800 | [diff] [blame] | 427 | qcom,use-default-rds-trim = <0>; |
Siddartha Mohanadoss | 7e2b2c6 | 2013-10-08 08:51:42 -0700 | [diff] [blame] | 428 | qcom,pmic-revid = <&pm8226_revid>; |
Siddartha Mohanadoss | ae99e77 | 2013-02-19 15:44:40 -0800 | [diff] [blame] | 429 | |
| 430 | chan@0 { |
| 431 | label = "internal_rsense"; |
| 432 | reg = <0>; |
| 433 | qcom,decimation = <0>; |
| 434 | qcom,pre-div-channel-scaling = <1>; |
| 435 | qcom,calibration-type = "absolute"; |
| 436 | qcom,scale-function = <0>; |
| 437 | qcom,hw-settle-time = <0>; |
| 438 | qcom,fast-avg-setup = <0>; |
| 439 | }; |
Zhenhua Huang | 4c43065 | 2013-09-11 13:24:07 +0800 | [diff] [blame] | 440 | chan@1 { |
| 441 | label = "external_rsense"; |
| 442 | reg = <1>; |
| 443 | qcom,decimation = <0>; |
| 444 | qcom,pre-div-channel-scaling = <1>; |
| 445 | qcom,calibration-type = "absolute"; |
| 446 | qcom,scale-function = <0>; |
| 447 | qcom,hw-settle-time = <0>; |
| 448 | qcom,fast-avg-setup = <0>; |
| 449 | }; |
Siddartha Mohanadoss | ae99e77 | 2013-02-19 15:44:40 -0800 | [diff] [blame] | 450 | }; |
Ashay Jaiswal | c51f7e9 | 2013-03-11 10:25:58 +0530 | [diff] [blame] | 451 | |
Siddartha Mohanadoss | 8aea317 | 2013-05-09 11:49:37 -0700 | [diff] [blame] | 452 | pm8226_adc_tm: vadc@3400 { |
| 453 | compatible = "qcom,qpnp-adc-tm"; |
| 454 | reg = <0x3400 0x100>; |
| 455 | #address-cells = <1>; |
| 456 | #size-cells = <0>; |
| 457 | interrupts = <0x0 0x34 0x0>, |
| 458 | <0x0 0x34 0x3>, |
| 459 | <0x0 0x34 0x4>; |
| 460 | interrupt-names = "eoc-int-en-set", |
| 461 | "high-thr-en-set", |
| 462 | "low-thr-en-set"; |
| 463 | qcom,adc-bit-resolution = <15>; |
| 464 | qcom,adc-vdd-reference = <1800>; |
Siddartha Mohanadoss | 3cb2b6b | 2013-06-21 12:07:05 -0700 | [diff] [blame] | 465 | qcom,adc_tm-vadc = <&pm8226_vadc>; |
Siddartha Mohanadoss | 8aea317 | 2013-05-09 11:49:37 -0700 | [diff] [blame] | 466 | }; |
| 467 | |
David Collins | 196f01c | 2013-05-20 14:01:24 -0700 | [diff] [blame] | 468 | qcom,temp-alarm@2400 { |
| 469 | compatible = "qcom,qpnp-temp-alarm"; |
| 470 | reg = <0x2400 0x100>; |
| 471 | interrupts = <0x0 0x24 0x0>; |
| 472 | label = "pm8226_tz"; |
| 473 | qcom,channel-num = <8>; |
| 474 | qcom,threshold-set = <0>; |
Siddartha Mohanadoss | 3cb2b6b | 2013-06-21 12:07:05 -0700 | [diff] [blame] | 475 | qcom,temp_alarm-vadc = <&pm8226_vadc>; |
David Collins | 196f01c | 2013-05-20 14:01:24 -0700 | [diff] [blame] | 476 | }; |
| 477 | |
Ashay Jaiswal | c51f7e9 | 2013-03-11 10:25:58 +0530 | [diff] [blame] | 478 | qcom,pm8226_rtc { |
| 479 | spmi-dev-container; |
| 480 | compatible = "qcom,qpnp-rtc"; |
| 481 | #address-cells = <1>; |
| 482 | #size-cells = <1>; |
| 483 | qcom,qpnp-rtc-write = <0>; |
| 484 | qcom,qpnp-rtc-alarm-pwrup = <0>; |
| 485 | |
| 486 | qcom,pm8226_rtc_rw@6000 { |
| 487 | reg = <0x6000 0x100>; |
| 488 | }; |
| 489 | qcom,pm8226_rtc_alarm@6100 { |
| 490 | reg = <0x6100 0x100>; |
| 491 | interrupts = <0x0 0x61 0x1>; |
| 492 | }; |
| 493 | }; |
David Keitel | 4109e95 | 2013-02-07 20:22:13 -0800 | [diff] [blame] | 494 | }; |
| 495 | |
David Keitel | 8498711 | 2013-02-11 13:26:30 -0800 | [diff] [blame] | 496 | qcom,pm8226@1 { |
| 497 | spmi-slave-container; |
| 498 | reg = <0x1>; |
| 499 | #address-cells = <1>; |
| 500 | #size-cells = <1>; |
| 501 | |
| 502 | regulator@1400 { |
| 503 | regulator-name = "8226_s1"; |
| 504 | spmi-dev-container; |
| 505 | #address-cells = <1>; |
| 506 | #size-cells = <1>; |
| 507 | compatible = "qcom,qpnp-regulator"; |
| 508 | reg = <0x1400 0x300>; |
| 509 | status = "disabled"; |
| 510 | |
| 511 | qcom,ctl@1400 { |
| 512 | reg = <0x1400 0x100>; |
| 513 | }; |
| 514 | qcom,ps@1500 { |
| 515 | reg = <0x1500 0x100>; |
| 516 | }; |
| 517 | qcom,freq@1600 { |
| 518 | reg = <0x1600 0x100>; |
| 519 | }; |
| 520 | }; |
| 521 | |
| 522 | regulator@1700 { |
| 523 | regulator-name = "8226_s2"; |
| 524 | spmi-dev-container; |
| 525 | #address-cells = <1>; |
| 526 | #size-cells = <1>; |
| 527 | compatible = "qcom,qpnp-regulator"; |
| 528 | reg = <0x1700 0x300>; |
| 529 | status = "disabled"; |
| 530 | |
| 531 | qcom,ctl@1700 { |
| 532 | reg = <0x1700 0x100>; |
| 533 | }; |
| 534 | qcom,ps@1800 { |
| 535 | reg = <0x1800 0x100>; |
| 536 | }; |
| 537 | qcom,freq@1900 { |
| 538 | reg = <0x1900 0x100>; |
| 539 | }; |
| 540 | }; |
| 541 | |
| 542 | regulator@1a00 { |
| 543 | regulator-name = "8226_s3"; |
| 544 | spmi-dev-container; |
| 545 | #address-cells = <1>; |
| 546 | #size-cells = <1>; |
| 547 | compatible = "qcom,qpnp-regulator"; |
| 548 | reg = <0x1a00 0x300>; |
| 549 | status = "disabled"; |
| 550 | |
| 551 | qcom,ctl@1a00 { |
| 552 | reg = <0x1a00 0x100>; |
| 553 | }; |
| 554 | qcom,ps@1b00 { |
| 555 | reg = <0x1b00 0x100>; |
| 556 | }; |
| 557 | qcom,freq@1c00 { |
| 558 | reg = <0x1c00 0x100>; |
| 559 | }; |
| 560 | }; |
| 561 | |
| 562 | regulator@1d00 { |
| 563 | regulator-name = "8226_s4"; |
| 564 | spmi-dev-container; |
| 565 | #address-cells = <1>; |
| 566 | #size-cells = <1>; |
| 567 | compatible = "qcom,qpnp-regulator"; |
| 568 | reg = <0x1d00 0x300>; |
| 569 | status = "disabled"; |
| 570 | |
| 571 | qcom,ctl@1d00 { |
| 572 | reg = <0x1d00 0x100>; |
| 573 | }; |
| 574 | qcom,ps@1e00 { |
| 575 | reg = <0x1e00 0x100>; |
| 576 | }; |
| 577 | qcom,freq@1f00 { |
| 578 | reg = <0x1f00 0x100>; |
| 579 | }; |
| 580 | }; |
| 581 | |
| 582 | regulator@2000 { |
| 583 | regulator-name = "8226_s5"; |
| 584 | spmi-dev-container; |
| 585 | #address-cells = <1>; |
| 586 | #size-cells = <1>; |
| 587 | compatible = "qcom,qpnp-regulator"; |
| 588 | reg = <0x2000 0x300>; |
| 589 | status = "disabled"; |
| 590 | |
| 591 | qcom,ctl@2000 { |
| 592 | reg = <0x2000 0x100>; |
| 593 | }; |
| 594 | qcom,ps@2100 { |
| 595 | reg = <0x2100 0x100>; |
| 596 | }; |
| 597 | qcom,freq@2200 { |
| 598 | reg = <0x2200 0x100>; |
| 599 | }; |
| 600 | }; |
| 601 | |
| 602 | regulator@4000 { |
| 603 | regulator-name = "8226_l1"; |
| 604 | reg = <0x4000 0x100>; |
| 605 | compatible = "qcom,qpnp-regulator"; |
| 606 | status = "disabled"; |
| 607 | }; |
| 608 | |
| 609 | regulator@4100 { |
| 610 | regulator-name = "8226_l2"; |
| 611 | reg = <0x4100 0x100>; |
| 612 | compatible = "qcom,qpnp-regulator"; |
| 613 | status = "disabled"; |
| 614 | }; |
| 615 | |
| 616 | regulator@4200 { |
| 617 | regulator-name = "8226_l3"; |
| 618 | reg = <0x4200 0x100>; |
| 619 | compatible = "qcom,qpnp-regulator"; |
| 620 | status = "disabled"; |
| 621 | }; |
| 622 | |
| 623 | regulator@4300 { |
| 624 | regulator-name = "8226_l4"; |
| 625 | reg = <0x4300 0x100>; |
| 626 | compatible = "qcom,qpnp-regulator"; |
| 627 | status = "disabled"; |
| 628 | }; |
| 629 | |
| 630 | regulator@4400 { |
| 631 | regulator-name = "8226_l5"; |
| 632 | reg = <0x4400 0x100>; |
| 633 | compatible = "qcom,qpnp-regulator"; |
| 634 | status = "disabled"; |
| 635 | }; |
| 636 | |
| 637 | regulator@4500 { |
| 638 | regulator-name = "8226_l6"; |
| 639 | reg = <0x4500 0x100>; |
| 640 | compatible = "qcom,qpnp-regulator"; |
| 641 | status = "disabled"; |
| 642 | }; |
| 643 | |
| 644 | regulator@4600 { |
| 645 | regulator-name = "8226_l7"; |
| 646 | reg = <0x4600 0x100>; |
| 647 | compatible = "qcom,qpnp-regulator"; |
| 648 | status = "disabled"; |
| 649 | }; |
| 650 | |
| 651 | regulator@4700 { |
| 652 | regulator-name = "8226_l8"; |
| 653 | reg = <0x4700 0x100>; |
| 654 | compatible = "qcom,qpnp-regulator"; |
| 655 | status = "disabled"; |
| 656 | }; |
| 657 | |
| 658 | regulator@4800 { |
| 659 | regulator-name = "8226_l9"; |
| 660 | reg = <0x4800 0x100>; |
| 661 | compatible = "qcom,qpnp-regulator"; |
| 662 | status = "disabled"; |
| 663 | }; |
| 664 | |
| 665 | regulator@4900 { |
| 666 | regulator-name = "8226_l10"; |
| 667 | reg = <0x4900 0x100>; |
| 668 | compatible = "qcom,qpnp-regulator"; |
| 669 | status = "disabled"; |
| 670 | }; |
| 671 | |
| 672 | regulator@4b00 { |
| 673 | regulator-name = "8226_l12"; |
| 674 | reg = <0x4b00 0x100>; |
| 675 | compatible = "qcom,qpnp-regulator"; |
| 676 | status = "disabled"; |
| 677 | }; |
| 678 | |
| 679 | regulator@4d00 { |
| 680 | regulator-name = "8226_l14"; |
| 681 | reg = <0x4d00 0x100>; |
| 682 | compatible = "qcom,qpnp-regulator"; |
| 683 | status = "disabled"; |
| 684 | }; |
| 685 | |
| 686 | regulator@4e00 { |
| 687 | regulator-name = "8226_l15"; |
| 688 | reg = <0x4e00 0x100>; |
| 689 | compatible = "qcom,qpnp-regulator"; |
| 690 | status = "disabled"; |
| 691 | }; |
| 692 | |
| 693 | regulator@4f00 { |
| 694 | regulator-name = "8226_l16"; |
| 695 | reg = <0x4f00 0x100>; |
| 696 | compatible = "qcom,qpnp-regulator"; |
| 697 | status = "disabled"; |
| 698 | }; |
| 699 | |
| 700 | regulator@5000 { |
| 701 | regulator-name = "8226_l17"; |
| 702 | reg = <0x5000 0x100>; |
| 703 | compatible = "qcom,qpnp-regulator"; |
| 704 | status = "disabled"; |
| 705 | }; |
| 706 | |
| 707 | regulator@5100 { |
| 708 | regulator-name = "8226_l18"; |
| 709 | reg = <0x5100 0x100>; |
| 710 | compatible = "qcom,qpnp-regulator"; |
| 711 | status = "disabled"; |
| 712 | }; |
| 713 | |
| 714 | regulator@5200 { |
| 715 | regulator-name = "8226_l19"; |
| 716 | reg = <0x5200 0x100>; |
| 717 | compatible = "qcom,qpnp-regulator"; |
| 718 | status = "disabled"; |
| 719 | }; |
| 720 | |
| 721 | regulator@5300 { |
| 722 | regulator-name = "8226_l20"; |
| 723 | reg = <0x5300 0x100>; |
| 724 | compatible = "qcom,qpnp-regulator"; |
| 725 | status = "disabled"; |
| 726 | }; |
| 727 | |
| 728 | regulator@5400 { |
| 729 | regulator-name = "8226_l21"; |
| 730 | reg = <0x5400 0x100>; |
| 731 | compatible = "qcom,qpnp-regulator"; |
| 732 | status = "disabled"; |
| 733 | }; |
| 734 | |
| 735 | regulator@5500 { |
| 736 | regulator-name = "8226_l22"; |
| 737 | reg = <0x5500 0x100>; |
| 738 | compatible = "qcom,qpnp-regulator"; |
| 739 | status = "disabled"; |
| 740 | }; |
| 741 | |
| 742 | regulator@5600 { |
| 743 | regulator-name = "8226_l23"; |
| 744 | reg = <0x5600 0x100>; |
| 745 | compatible = "qcom,qpnp-regulator"; |
| 746 | status = "disabled"; |
| 747 | }; |
| 748 | |
| 749 | regulator@5700 { |
| 750 | regulator-name = "8226_l24"; |
| 751 | reg = <0x5700 0x100>; |
| 752 | compatible = "qcom,qpnp-regulator"; |
| 753 | status = "disabled"; |
| 754 | }; |
| 755 | |
| 756 | regulator@5900 { |
| 757 | regulator-name = "8226_l26"; |
| 758 | reg = <0x5900 0x100>; |
| 759 | compatible = "qcom,qpnp-regulator"; |
| 760 | status = "disabled"; |
| 761 | }; |
| 762 | |
| 763 | regulator@5a00 { |
| 764 | regulator-name = "8226_l27"; |
| 765 | reg = <0x5a00 0x100>; |
| 766 | compatible = "qcom,qpnp-regulator"; |
| 767 | status = "disabled"; |
| 768 | }; |
| 769 | |
| 770 | regulator@5b00 { |
| 771 | regulator-name = "8226_l28"; |
| 772 | reg = <0x5b00 0x100>; |
| 773 | compatible = "qcom,qpnp-regulator"; |
| 774 | status = "disabled"; |
| 775 | }; |
| 776 | |
Amy Maloche | d699b94 | 2013-03-03 15:47:52 -0800 | [diff] [blame] | 777 | qcom,leds@d800 { |
| 778 | compatible = "qcom,leds-qpnp"; |
| 779 | reg = <0xd800 0x100>; |
| 780 | label = "wled"; |
| 781 | }; |
| 782 | |
Amy Maloche | 4353291 | 2013-03-25 12:55:42 -0700 | [diff] [blame] | 783 | pwm@b100 { |
| 784 | compatible = "qcom,qpnp-pwm"; |
| 785 | reg = <0xb100 0x100>, |
| 786 | <0xb042 0x7e>; |
| 787 | reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base"; |
| 788 | qcom,channel-id = <0>; |
| 789 | }; |
| 790 | |
| 791 | pwm@b200 { |
| 792 | compatible = "qcom,qpnp-pwm"; |
| 793 | reg = <0xb200 0x100>, |
| 794 | <0xb042 0x7e>; |
| 795 | reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base"; |
| 796 | qcom,channel-id = <1>; |
| 797 | }; |
| 798 | |
| 799 | pwm@b300 { |
| 800 | compatible = "qcom,qpnp-pwm"; |
| 801 | reg = <0xb300 0x100>, |
| 802 | <0xb042 0x7e>; |
| 803 | reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base"; |
| 804 | qcom,channel-id = <2>; |
| 805 | }; |
| 806 | |
| 807 | pwm@b400 { |
| 808 | compatible = "qcom,qpnp-pwm"; |
| 809 | reg = <0xb400 0x100>, |
| 810 | <0xb042 0x7e>; |
| 811 | reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base"; |
| 812 | qcom,channel-id = <3>; |
| 813 | }; |
| 814 | |
| 815 | pwm@b500 { |
| 816 | compatible = "qcom,qpnp-pwm"; |
| 817 | reg = <0xb500 0x100>, |
| 818 | <0xb042 0x7e>; |
| 819 | reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base"; |
| 820 | qcom,channel-id = <4>; |
| 821 | }; |
| 822 | |
| 823 | pwm@b600 { |
| 824 | compatible = "qcom,qpnp-pwm"; |
| 825 | reg = <0xb600 0x100>, |
| 826 | <0xb042 0x7e>; |
| 827 | reg-names = "qpnp-lpg-channel-base", "qpnp-lpg-lut-base"; |
| 828 | qcom,channel-id = <5>; |
| 829 | }; |
| 830 | |
David Keitel | 8498711 | 2013-02-11 13:26:30 -0800 | [diff] [blame] | 831 | regulator@8000 { |
| 832 | regulator-name = "8226_lvs1"; |
| 833 | reg = <0x8000 0x100>; |
| 834 | compatible = "qcom,qpnp-regulator"; |
| 835 | status = "disabled"; |
| 836 | }; |
Fenglin Wu | 3a70780 | 2013-03-21 14:34:20 -0700 | [diff] [blame] | 837 | |
Fenglin Wu | 7f38bae | 2013-03-12 21:22:35 -0700 | [diff] [blame] | 838 | qcom,vibrator@c000 { |
| 839 | compatible = "qcom,qpnp-vibrator"; |
| 840 | reg = <0xc000 0x100>; |
| 841 | label = "vibrator"; |
| 842 | status = "disabled"; |
| 843 | }; |
| 844 | |
Chun Zhang | 0d6ca07 | 2013-07-30 21:08:39 -0700 | [diff] [blame] | 845 | qcom,leds@d300 { |
| 846 | compatible = "qcom,leds-qpnp"; |
| 847 | status = "okay"; |
| 848 | reg = <0xd300 0x100>; |
| 849 | label = "flash"; |
| 850 | flash-boost-supply = <&pm8226_chg_boost>; |
| 851 | pm8226_flash0: qcom,flash_0 { |
| 852 | qcom,max-current = <1000>; |
| 853 | qcom,default-state = "off"; |
Chun Zhang | a330649 | 2013-09-09 15:17:26 -0700 | [diff] [blame] | 854 | qcom,headroom = <3>; |
Chun Zhang | 0d6ca07 | 2013-07-30 21:08:39 -0700 | [diff] [blame] | 855 | qcom,duration = <1280>; |
| 856 | qcom,clamp-curr = <200>; |
Chun Zhang | a330649 | 2013-09-09 15:17:26 -0700 | [diff] [blame] | 857 | qcom,startup-dly = <3>; |
Chun Zhang | 0d6ca07 | 2013-07-30 21:08:39 -0700 | [diff] [blame] | 858 | qcom,safety-timer; |
| 859 | label = "flash"; |
| 860 | linux,default-trigger = |
| 861 | "flash0_trigger"; |
| 862 | qcom,id = <1>; |
| 863 | linux,name = "led:flash_0"; |
| 864 | qcom,current = <625>; |
| 865 | }; |
Fenglin Wu | 3a70780 | 2013-03-21 14:34:20 -0700 | [diff] [blame] | 866 | |
Chun Zhang | bfd0735 | 2013-07-30 21:10:04 -0700 | [diff] [blame] | 867 | pm8226_torch: qcom,flash_torch { |
| 868 | qcom,max-current = <200>; |
| 869 | qcom,default-state = "off"; |
| 870 | linux,default-trigger = |
| 871 | "torch_trigger"; |
| 872 | label = "flash"; |
| 873 | qcom,id = <1>; |
| 874 | linux,name = "led:flash_torch"; |
| 875 | qcom,current = <120>; |
| 876 | qcom,torch-enable; |
| 877 | }; |
| 878 | }; |
David Keitel | 8498711 | 2013-02-11 13:26:30 -0800 | [diff] [blame] | 879 | }; |
Kenneth Heitke | e580400 | 2012-11-15 17:50:07 -0700 | [diff] [blame] | 880 | }; |