blob: c488ab1c7aae1a3056a14ba6f30a1c4f79e6b182 [file] [log] [blame]
Xiaozhe Shifaa942c2013-02-21 10:52:03 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Kenneth Heitkedb6e1b12012-11-20 15:24:42 -07002 *
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>;
Xiaozhe Shifaa942c2013-02-21 10:52:03 -080018
19 qcom,pm8110@0 {
20 spmi-slave-container;
21 reg = <0x0>;
22 #address-cells = <1>;
23 #size-cells = <1>;
Siddartha Mohanadoss0f664a82013-03-11 22:52:01 -070024
25 pm8110_vadc: vadc@3100 {
26 compatible = "qcom,qpnp-vadc";
27 reg = <0x3100 0x100>;
28 #address-cells = <1>;
29 #size-cells = <0>;
30 interrupts = <0x0 0x31 0x0>;
31 interrupt-names = "eoc-int-en-set";
32 qcom,adc-bit-resolution = <15>;
33 qcom,adc-vdd-reference = <1800>;
34
35 chan@8 {
36 label = "die_temp";
37 reg = <8>;
38 qcom,decimation = <0>;
39 qcom,pre-div-channel-scaling = <0>;
40 qcom,calibration-type = "absolute";
41 qcom,scale-function = <3>;
42 qcom,hw-settle-time = <0>;
43 qcom,fast-avg-setup = <0>;
44 };
45
46 chan@9 {
47 label = "ref_625mv";
48 reg = <9>;
49 qcom,decimation = <0>;
50 qcom,pre-div-channel-scaling = <0>;
51 qcom,calibration-type = "absolute";
52 qcom,scale-function = <0>;
53 qcom,hw-settle-time = <0>;
54 qcom,fast-avg-setup = <0>;
55 };
56
57 chan@a {
58 label = "ref_1250v";
59 reg = <0xa>;
60 qcom,decimation = <0>;
61 qcom,pre-div-channel-scaling = <0>;
62 qcom,calibration-type = "absolute";
63 qcom,scale-function = <0>;
64 qcom,hw-settle-time = <0>;
65 qcom,fast-avg-setup = <0>;
66 };
67 };
68
69 iadc@3600 {
70 compatible = "qcom,qpnp-iadc";
71 reg = <0x3600 0x100>;
72 #address-cells = <1>;
73 #size-cells = <0>;
74 interrupts = <0x0 0x36 0x0>;
75 interrupt-names = "eoc-int-en-set";
76 qcom,adc-bit-resolution = <16>;
77 qcom,adc-vdd-reference = <1800>;
78 qcom,rsense = <1500>;
79
80 chan@0 {
81 label = "internal_rsense";
82 reg = <0>;
83 qcom,decimation = <0>;
84 qcom,pre-div-channel-scaling = <1>;
85 qcom,calibration-type = "absolute";
86 qcom,scale-function = <0>;
87 qcom,hw-settle-time = <0>;
88 qcom,fast-avg-setup = <0>;
89 };
90 };
Xiaozhe Shifaa942c2013-02-21 10:52:03 -080091 };
92
93 qcom,pm8110@1 {
94 spmi-slave-container;
95 reg = <0x1>;
96 #address-cells = <1>;
97 #size-cells = <1>;
98 };
Kenneth Heitkedb6e1b12012-11-20 15:24:42 -070099};