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