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 | |
| 25 | pm8226_gpios: gpios { |
| 26 | spmi-dev-container; |
| 27 | compatible = "qcom,qpnp-pin"; |
| 28 | gpio-controller; |
| 29 | #gpio-cells = <2>; |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <1>; |
| 32 | label = "pm8226-gpio"; |
| 33 | |
| 34 | gpio@c000 { |
| 35 | reg = <0xc000 0x100>; |
| 36 | qcom,pin-num = <1>; |
| 37 | }; |
| 38 | |
| 39 | gpio@c100 { |
| 40 | reg = <0xc100 0x100>; |
| 41 | qcom,pin-num = <2>; |
| 42 | }; |
| 43 | |
| 44 | gpio@c200 { |
| 45 | reg = <0xc200 0x100>; |
| 46 | qcom,pin-num = <3>; |
| 47 | }; |
| 48 | |
| 49 | gpio@c300 { |
| 50 | reg = <0xc300 0x100>; |
| 51 | qcom,pin-num = <4>; |
| 52 | }; |
| 53 | |
| 54 | gpio@c400 { |
| 55 | reg = <0xc400 0x100>; |
| 56 | qcom,pin-num = <5>; |
| 57 | }; |
| 58 | |
| 59 | gpio@c500 { |
| 60 | reg = <0xc500 0x100>; |
| 61 | qcom,pin-num = <6>; |
| 62 | }; |
| 63 | |
| 64 | gpio@c600 { |
| 65 | reg = <0xc600 0x100>; |
| 66 | qcom,pin-num = <7>; |
| 67 | }; |
| 68 | |
| 69 | gpio@c700 { |
| 70 | reg = <0xc700 0x100>; |
| 71 | qcom,pin-num = <8>; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | pm8226_mpps: mpps { |
| 76 | spmi-dev-container; |
| 77 | compatible = "qcom,qpnp-pin"; |
| 78 | gpio-controller; |
| 79 | #gpio-cells = <2>; |
| 80 | #address-cells = <1>; |
| 81 | #size-cells = <1>; |
| 82 | label = "pm8226-mpp"; |
| 83 | |
| 84 | mpp@a000 { |
| 85 | reg = <0xa000 0x100>; |
| 86 | qcom,pin-num = <1>; |
| 87 | }; |
| 88 | |
| 89 | mpp@a100 { |
| 90 | reg = <0xa100 0x100>; |
| 91 | qcom,pin-num = <2>; |
| 92 | }; |
| 93 | |
| 94 | mpp@a200 { |
| 95 | reg = <0xa200 0x100>; |
| 96 | qcom,pin-num = <3>; |
| 97 | }; |
| 98 | |
| 99 | mpp@a300 { |
| 100 | reg = <0xa300 0x100>; |
| 101 | qcom,pin-num = <4>; |
| 102 | }; |
| 103 | |
| 104 | mpp@a400 { |
| 105 | reg = <0xa400 0x100>; |
| 106 | qcom,pin-num = <5>; |
| 107 | }; |
| 108 | |
| 109 | mpp@a500 { |
| 110 | reg = <0xa500 0x100>; |
| 111 | qcom,pin-num = <6>; |
| 112 | }; |
| 113 | |
| 114 | mpp@a600 { |
| 115 | reg = <0xa600 0x100>; |
| 116 | qcom,pin-num = <7>; |
| 117 | }; |
| 118 | |
| 119 | mpp@a700 { |
| 120 | reg = <0xa700 0x100>; |
| 121 | qcom,pin-num = <8>; |
| 122 | }; |
| 123 | }; |
Siddartha Mohanadoss | ae99e77 | 2013-02-19 15:44:40 -0800 | [diff] [blame] | 124 | |
| 125 | pm8226_vadc: vadc@3100 { |
| 126 | compatible = "qcom,qpnp-vadc"; |
| 127 | reg = <0x3100 0x100>; |
| 128 | #address-cells = <1>; |
| 129 | #size-cells = <0>; |
| 130 | interrupts = <0x0 0x31 0x0>; |
| 131 | interrupt-names = "eoc-int-en-set"; |
| 132 | qcom,adc-bit-resolution = <15>; |
| 133 | qcom,adc-vdd-reference = <1800>; |
| 134 | |
| 135 | chan@8 { |
| 136 | label = "die_temp"; |
| 137 | reg = <8>; |
| 138 | qcom,decimation = <0>; |
| 139 | qcom,pre-div-channel-scaling = <0>; |
| 140 | qcom,calibration-type = "absolute"; |
| 141 | qcom,scale-function = <3>; |
| 142 | qcom,hw-settle-time = <0>; |
| 143 | qcom,fast-avg-setup = <0>; |
| 144 | }; |
| 145 | |
| 146 | chan@9 { |
| 147 | label = "ref_625mv"; |
| 148 | reg = <9>; |
| 149 | qcom,decimation = <0>; |
| 150 | qcom,pre-div-channel-scaling = <0>; |
| 151 | qcom,calibration-type = "absolute"; |
| 152 | qcom,scale-function = <0>; |
| 153 | qcom,hw-settle-time = <0>; |
| 154 | qcom,fast-avg-setup = <0>; |
| 155 | }; |
| 156 | |
| 157 | chan@a { |
| 158 | label = "ref_1250v"; |
| 159 | reg = <0xa>; |
| 160 | qcom,decimation = <0>; |
| 161 | qcom,pre-div-channel-scaling = <0>; |
| 162 | qcom,calibration-type = "absolute"; |
| 163 | qcom,scale-function = <0>; |
| 164 | qcom,hw-settle-time = <0>; |
| 165 | qcom,fast-avg-setup = <0>; |
| 166 | }; |
| 167 | }; |
| 168 | |
| 169 | iadc@3600 { |
| 170 | compatible = "qcom,qpnp-iadc"; |
| 171 | reg = <0x3600 0x100>; |
| 172 | #address-cells = <1>; |
| 173 | #size-cells = <0>; |
| 174 | interrupts = <0x0 0x36 0x0>; |
| 175 | interrupt-names = "eoc-int-en-set"; |
| 176 | qcom,adc-bit-resolution = <16>; |
| 177 | qcom,adc-vdd-reference = <1800>; |
| 178 | qcom,rsense = <1500>; |
| 179 | |
| 180 | chan@0 { |
| 181 | label = "internal_rsense"; |
| 182 | reg = <0>; |
| 183 | qcom,decimation = <0>; |
| 184 | qcom,pre-div-channel-scaling = <1>; |
| 185 | qcom,calibration-type = "absolute"; |
| 186 | qcom,scale-function = <0>; |
| 187 | qcom,hw-settle-time = <0>; |
| 188 | qcom,fast-avg-setup = <0>; |
| 189 | }; |
| 190 | }; |
David Keitel | 4109e95 | 2013-02-07 20:22:13 -0800 | [diff] [blame] | 191 | }; |
| 192 | |
David Keitel | 8498711 | 2013-02-11 13:26:30 -0800 | [diff] [blame] | 193 | qcom,pm8226@1 { |
| 194 | spmi-slave-container; |
| 195 | reg = <0x1>; |
| 196 | #address-cells = <1>; |
| 197 | #size-cells = <1>; |
| 198 | |
| 199 | regulator@1400 { |
| 200 | regulator-name = "8226_s1"; |
| 201 | spmi-dev-container; |
| 202 | #address-cells = <1>; |
| 203 | #size-cells = <1>; |
| 204 | compatible = "qcom,qpnp-regulator"; |
| 205 | reg = <0x1400 0x300>; |
| 206 | status = "disabled"; |
| 207 | |
| 208 | qcom,ctl@1400 { |
| 209 | reg = <0x1400 0x100>; |
| 210 | }; |
| 211 | qcom,ps@1500 { |
| 212 | reg = <0x1500 0x100>; |
| 213 | }; |
| 214 | qcom,freq@1600 { |
| 215 | reg = <0x1600 0x100>; |
| 216 | }; |
| 217 | }; |
| 218 | |
| 219 | regulator@1700 { |
| 220 | regulator-name = "8226_s2"; |
| 221 | spmi-dev-container; |
| 222 | #address-cells = <1>; |
| 223 | #size-cells = <1>; |
| 224 | compatible = "qcom,qpnp-regulator"; |
| 225 | reg = <0x1700 0x300>; |
| 226 | status = "disabled"; |
| 227 | |
| 228 | qcom,ctl@1700 { |
| 229 | reg = <0x1700 0x100>; |
| 230 | }; |
| 231 | qcom,ps@1800 { |
| 232 | reg = <0x1800 0x100>; |
| 233 | }; |
| 234 | qcom,freq@1900 { |
| 235 | reg = <0x1900 0x100>; |
| 236 | }; |
| 237 | }; |
| 238 | |
| 239 | regulator@1a00 { |
| 240 | regulator-name = "8226_s3"; |
| 241 | spmi-dev-container; |
| 242 | #address-cells = <1>; |
| 243 | #size-cells = <1>; |
| 244 | compatible = "qcom,qpnp-regulator"; |
| 245 | reg = <0x1a00 0x300>; |
| 246 | status = "disabled"; |
| 247 | |
| 248 | qcom,ctl@1a00 { |
| 249 | reg = <0x1a00 0x100>; |
| 250 | }; |
| 251 | qcom,ps@1b00 { |
| 252 | reg = <0x1b00 0x100>; |
| 253 | }; |
| 254 | qcom,freq@1c00 { |
| 255 | reg = <0x1c00 0x100>; |
| 256 | }; |
| 257 | }; |
| 258 | |
| 259 | regulator@1d00 { |
| 260 | regulator-name = "8226_s4"; |
| 261 | spmi-dev-container; |
| 262 | #address-cells = <1>; |
| 263 | #size-cells = <1>; |
| 264 | compatible = "qcom,qpnp-regulator"; |
| 265 | reg = <0x1d00 0x300>; |
| 266 | status = "disabled"; |
| 267 | |
| 268 | qcom,ctl@1d00 { |
| 269 | reg = <0x1d00 0x100>; |
| 270 | }; |
| 271 | qcom,ps@1e00 { |
| 272 | reg = <0x1e00 0x100>; |
| 273 | }; |
| 274 | qcom,freq@1f00 { |
| 275 | reg = <0x1f00 0x100>; |
| 276 | }; |
| 277 | }; |
| 278 | |
| 279 | regulator@2000 { |
| 280 | regulator-name = "8226_s5"; |
| 281 | spmi-dev-container; |
| 282 | #address-cells = <1>; |
| 283 | #size-cells = <1>; |
| 284 | compatible = "qcom,qpnp-regulator"; |
| 285 | reg = <0x2000 0x300>; |
| 286 | status = "disabled"; |
| 287 | |
| 288 | qcom,ctl@2000 { |
| 289 | reg = <0x2000 0x100>; |
| 290 | }; |
| 291 | qcom,ps@2100 { |
| 292 | reg = <0x2100 0x100>; |
| 293 | }; |
| 294 | qcom,freq@2200 { |
| 295 | reg = <0x2200 0x100>; |
| 296 | }; |
| 297 | }; |
| 298 | |
| 299 | regulator@4000 { |
| 300 | regulator-name = "8226_l1"; |
| 301 | reg = <0x4000 0x100>; |
| 302 | compatible = "qcom,qpnp-regulator"; |
| 303 | status = "disabled"; |
| 304 | }; |
| 305 | |
| 306 | regulator@4100 { |
| 307 | regulator-name = "8226_l2"; |
| 308 | reg = <0x4100 0x100>; |
| 309 | compatible = "qcom,qpnp-regulator"; |
| 310 | status = "disabled"; |
| 311 | }; |
| 312 | |
| 313 | regulator@4200 { |
| 314 | regulator-name = "8226_l3"; |
| 315 | reg = <0x4200 0x100>; |
| 316 | compatible = "qcom,qpnp-regulator"; |
| 317 | status = "disabled"; |
| 318 | }; |
| 319 | |
| 320 | regulator@4300 { |
| 321 | regulator-name = "8226_l4"; |
| 322 | reg = <0x4300 0x100>; |
| 323 | compatible = "qcom,qpnp-regulator"; |
| 324 | status = "disabled"; |
| 325 | }; |
| 326 | |
| 327 | regulator@4400 { |
| 328 | regulator-name = "8226_l5"; |
| 329 | reg = <0x4400 0x100>; |
| 330 | compatible = "qcom,qpnp-regulator"; |
| 331 | status = "disabled"; |
| 332 | }; |
| 333 | |
| 334 | regulator@4500 { |
| 335 | regulator-name = "8226_l6"; |
| 336 | reg = <0x4500 0x100>; |
| 337 | compatible = "qcom,qpnp-regulator"; |
| 338 | status = "disabled"; |
| 339 | }; |
| 340 | |
| 341 | regulator@4600 { |
| 342 | regulator-name = "8226_l7"; |
| 343 | reg = <0x4600 0x100>; |
| 344 | compatible = "qcom,qpnp-regulator"; |
| 345 | status = "disabled"; |
| 346 | }; |
| 347 | |
| 348 | regulator@4700 { |
| 349 | regulator-name = "8226_l8"; |
| 350 | reg = <0x4700 0x100>; |
| 351 | compatible = "qcom,qpnp-regulator"; |
| 352 | status = "disabled"; |
| 353 | }; |
| 354 | |
| 355 | regulator@4800 { |
| 356 | regulator-name = "8226_l9"; |
| 357 | reg = <0x4800 0x100>; |
| 358 | compatible = "qcom,qpnp-regulator"; |
| 359 | status = "disabled"; |
| 360 | }; |
| 361 | |
| 362 | regulator@4900 { |
| 363 | regulator-name = "8226_l10"; |
| 364 | reg = <0x4900 0x100>; |
| 365 | compatible = "qcom,qpnp-regulator"; |
| 366 | status = "disabled"; |
| 367 | }; |
| 368 | |
| 369 | regulator@4b00 { |
| 370 | regulator-name = "8226_l12"; |
| 371 | reg = <0x4b00 0x100>; |
| 372 | compatible = "qcom,qpnp-regulator"; |
| 373 | status = "disabled"; |
| 374 | }; |
| 375 | |
| 376 | regulator@4d00 { |
| 377 | regulator-name = "8226_l14"; |
| 378 | reg = <0x4d00 0x100>; |
| 379 | compatible = "qcom,qpnp-regulator"; |
| 380 | status = "disabled"; |
| 381 | }; |
| 382 | |
| 383 | regulator@4e00 { |
| 384 | regulator-name = "8226_l15"; |
| 385 | reg = <0x4e00 0x100>; |
| 386 | compatible = "qcom,qpnp-regulator"; |
| 387 | status = "disabled"; |
| 388 | }; |
| 389 | |
| 390 | regulator@4f00 { |
| 391 | regulator-name = "8226_l16"; |
| 392 | reg = <0x4f00 0x100>; |
| 393 | compatible = "qcom,qpnp-regulator"; |
| 394 | status = "disabled"; |
| 395 | }; |
| 396 | |
| 397 | regulator@5000 { |
| 398 | regulator-name = "8226_l17"; |
| 399 | reg = <0x5000 0x100>; |
| 400 | compatible = "qcom,qpnp-regulator"; |
| 401 | status = "disabled"; |
| 402 | }; |
| 403 | |
| 404 | regulator@5100 { |
| 405 | regulator-name = "8226_l18"; |
| 406 | reg = <0x5100 0x100>; |
| 407 | compatible = "qcom,qpnp-regulator"; |
| 408 | status = "disabled"; |
| 409 | }; |
| 410 | |
| 411 | regulator@5200 { |
| 412 | regulator-name = "8226_l19"; |
| 413 | reg = <0x5200 0x100>; |
| 414 | compatible = "qcom,qpnp-regulator"; |
| 415 | status = "disabled"; |
| 416 | }; |
| 417 | |
| 418 | regulator@5300 { |
| 419 | regulator-name = "8226_l20"; |
| 420 | reg = <0x5300 0x100>; |
| 421 | compatible = "qcom,qpnp-regulator"; |
| 422 | status = "disabled"; |
| 423 | }; |
| 424 | |
| 425 | regulator@5400 { |
| 426 | regulator-name = "8226_l21"; |
| 427 | reg = <0x5400 0x100>; |
| 428 | compatible = "qcom,qpnp-regulator"; |
| 429 | status = "disabled"; |
| 430 | }; |
| 431 | |
| 432 | regulator@5500 { |
| 433 | regulator-name = "8226_l22"; |
| 434 | reg = <0x5500 0x100>; |
| 435 | compatible = "qcom,qpnp-regulator"; |
| 436 | status = "disabled"; |
| 437 | }; |
| 438 | |
| 439 | regulator@5600 { |
| 440 | regulator-name = "8226_l23"; |
| 441 | reg = <0x5600 0x100>; |
| 442 | compatible = "qcom,qpnp-regulator"; |
| 443 | status = "disabled"; |
| 444 | }; |
| 445 | |
| 446 | regulator@5700 { |
| 447 | regulator-name = "8226_l24"; |
| 448 | reg = <0x5700 0x100>; |
| 449 | compatible = "qcom,qpnp-regulator"; |
| 450 | status = "disabled"; |
| 451 | }; |
| 452 | |
| 453 | regulator@5900 { |
| 454 | regulator-name = "8226_l26"; |
| 455 | reg = <0x5900 0x100>; |
| 456 | compatible = "qcom,qpnp-regulator"; |
| 457 | status = "disabled"; |
| 458 | }; |
| 459 | |
| 460 | regulator@5a00 { |
| 461 | regulator-name = "8226_l27"; |
| 462 | reg = <0x5a00 0x100>; |
| 463 | compatible = "qcom,qpnp-regulator"; |
| 464 | status = "disabled"; |
| 465 | }; |
| 466 | |
| 467 | regulator@5b00 { |
| 468 | regulator-name = "8226_l28"; |
| 469 | reg = <0x5b00 0x100>; |
| 470 | compatible = "qcom,qpnp-regulator"; |
| 471 | status = "disabled"; |
| 472 | }; |
| 473 | |
| 474 | regulator@8000 { |
| 475 | regulator-name = "8226_lvs1"; |
| 476 | reg = <0x8000 0x100>; |
| 477 | compatible = "qcom,qpnp-regulator"; |
| 478 | status = "disabled"; |
| 479 | }; |
| 480 | }; |
Kenneth Heitke | e580400 | 2012-11-15 17:50:07 -0700 | [diff] [blame] | 481 | }; |