blob: 60162e32770e6cde824bde76807e3cb3a34c06b8 [file] [log] [blame]
Kiran Gunda0954f392017-10-16 16:24:55 +05301/*
2 * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14&spmi_bus {
15
16 qcom,pm8953@0 {
17 compatible = "qcom,spmi-pmic";
18 reg = <0x0 SPMI_USID>;
19 #address-cells = <1>;
20 #size-cells = <1>;
21
22 pm8953_revid: qcom,revid@100 {
23 compatible = "qcom,qpnp-revid";
24 reg = <0x100 0x100>;
25 };
26
27 qcom,power-on@800 {
28 compatible = "qcom,qpnp-power-on";
29 reg = <0x800 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +053030 interrupts = <0x0 0x8 0x0 IRQ_TYPE_NONE>,
31 <0x0 0x8 0x1 IRQ_TYPE_NONE>,
32 <0x0 0x8 0x4 IRQ_TYPE_NONE>,
33 <0x0 0x8 0x5 IRQ_TYPE_NONE>;
Kiran Gunda0954f392017-10-16 16:24:55 +053034 interrupt-names = "kpdpwr", "resin",
35 "resin-bark", "kpdpwr-resin-bark";
36 qcom,pon-dbc-delay = <15625>;
37 qcom,system-reset;
38
39 qcom,pon_1 {
40 qcom,pon-type = <0>;
41 qcom,pull-up = <1>;
42 linux,code = <116>;
43 };
44
45 qcom,pon_2 {
46 qcom,pon-type = <1>;
47 qcom,pull-up = <1>;
48 linux,code = <114>;
49 };
50 };
51
52 pm8953_temp_alarm: qcom,temp-alarm@2400 {
53 compatible = "qcom,qpnp-temp-alarm";
54 reg = <0x2400 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +053055 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
Kiran Gunda0954f392017-10-16 16:24:55 +053056 label = "pm8953_tz";
57 qcom,channel-num = <8>;
58 qcom,threshold-set = <0>;
59 qcom,temp_alarm-vadc = <&pm8953_vadc>;
60 };
61
62 pm8953_coincell: qcom,coincell@2800 {
63 compatible = "qcom,qpnp-coincell";
64 reg = <0x2800 0x100>;
65 };
66
67 pm8953_mpps: mpps {
68 compatible = "qcom,qpnp-pin";
69 spmi-dev-container;
70 gpio-controller;
71 #gpio-cells = <2>;
72 #address-cells = <1>;
73 #size-cells = <1>;
74 label = "pm8953-mpp";
75
76 mpp@a000 {
77 reg = <0xa000 0x100>;
78 qcom,pin-num = <1>;
79 status = "disabled";
80 };
81
82 mpp@a100 {
83 reg = <0xa100 0x100>;
84 qcom,pin-num = <2>;
85 };
86
87 mpp@a200 {
88 reg = <0xa200 0x100>;
89 qcom,pin-num = <3>;
90 status = "disabled";
91 };
92
93 mpp@a300 {
94 reg = <0xa300 0x100>;
95 qcom,pin-num = <4>;
96 };
97 };
98
99 pm8953_gpios: gpios {
100 spmi-dev-container;
101 compatible = "qcom,qpnp-pin";
102 gpio-controller;
103 #gpio-cells = <2>;
104 #address-cells = <1>;
105 #size-cells = <1>;
106 label = "pm8953-gpio";
107
108 gpio@c000 {
109 reg = <0xc000 0x100>;
110 qcom,pin-num = <1>;
111 status = "disabled";
112 };
113
114 gpio@c100 {
115 reg = <0xc100 0x100>;
116 qcom,pin-num = <2>;
117 status = "disabled";
118 };
119
120 gpio@c200 {
121 reg = <0xc200 0x100>;
122 qcom,pin-num = <3>;
123 status = "disabled";
124 };
125
126 gpio@c300 {
127 reg = <0xc300 0x100>;
128 qcom,pin-num = <4>;
129 status = "disabled";
130 };
131
132 gpio@c400 {
133 reg = <0xc400 0x100>;
134 qcom,pin-num = <5>;
135 status = "disabled";
136 };
137
138 gpio@c500 {
139 reg = <0xc500 0x100>;
140 qcom,pin-num = <6>;
141 status = "disabled";
142 };
143
144 gpio@c600 {
145 reg = <0xc600 0x100>;
146 qcom,pin-num = <7>;
147 status = "disabled";
148 };
149
150 gpio@c700 {
151 reg = <0xc700 0x100>;
152 qcom,pin-num = <8>;
153 status = "disabled";
154 };
155 };
156
157 pm8953_vadc: vadc@3100 {
158 compatible = "qcom,qpnp-vadc";
159 reg = <0x3100 0x100>;
160 #address-cells = <1>;
161 #size-cells = <0>;
Kiran Gundae0665762017-11-22 17:20:24 +0530162 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
Kiran Gunda0954f392017-10-16 16:24:55 +0530163 interrupt-names = "eoc-int-en-set";
164 qcom,adc-bit-resolution = <15>;
165 qcom,adc-vdd-reference = <1800>;
166 qcom,vadc-poll-eoc;
167
168 chan@8 {
169 label = "die_temp";
170 reg = <8>;
171 qcom,decimation = <0>;
172 qcom,pre-div-channel-scaling = <0>;
173 qcom,calibration-type = "absolute";
174 qcom,scale-function = <3>;
175 qcom,hw-settle-time = <0>;
176 qcom,fast-avg-setup = <0>;
177 };
178
179 chan@9 {
180 label = "ref_625mv";
181 reg = <9>;
182 qcom,decimation = <0>;
183 qcom,pre-div-channel-scaling = <0>;
184 qcom,calibration-type = "absolute";
185 qcom,scale-function = <0>;
186 qcom,hw-settle-time = <0>;
187 qcom,fast-avg-setup = <0>;
188 };
189
190 chan@a {
191 label = "ref_1250v";
192 reg = <0xa>;
193 qcom,decimation = <0>;
194 qcom,pre-div-channel-scaling = <0>;
195 qcom,calibration-type = "absolute";
196 qcom,scale-function = <0>;
197 qcom,hw-settle-time = <0>;
198 qcom,fast-avg-setup = <0>;
199 };
200
201 chan@c {
202 label = "ref_buf_625mv";
203 reg = <0xc>;
204 qcom,decimation = <0>;
205 qcom,pre-div-channel-scaling = <0>;
206 qcom,calibration-type = "absolute";
207 qcom,scale-function = <0>;
208 qcom,hw-settle-time = <0>;
209 qcom,fast-avg-setup = <0>;
210 };
211 };
212
213 pm8953_adc_tm: vadc@3400 {
214 compatible = "qcom,qpnp-adc-tm";
215 reg = <0x3400 0x100>;
216 #address-cells = <1>;
217 #size-cells = <0>;
Kiran Gundae0665762017-11-22 17:20:24 +0530218 interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>,
219 <0x0 0x34 0x3 IRQ_TYPE_EDGE_RISING>,
220 <0x0 0x34 0x4 IRQ_TYPE_EDGE_RISING>;
Kiran Gunda0954f392017-10-16 16:24:55 +0530221 interrupt-names = "eoc-int-en-set",
222 "high-thr-en-set",
223 "low-thr-en-set";
224 qcom,adc-bit-resolution = <15>;
225 qcom,adc-vdd-reference = <1800>;
226 qcom,adc_tm-vadc = <&pm8953_vadc>;
227
228 };
229
230 pm8953_rtc: qcom,pm8953_rtc {
231 spmi-dev-container;
232 compatible = "qcom,qpnp-rtc";
233 #address-cells = <1>;
234 #size-cells = <1>;
235 qcom,qpnp-rtc-write = <0>;
236 qcom,qpnp-rtc-alarm-pwrup = <0>;
237
238 qcom,pm8953_rtc_rw@6000 {
239 reg = <0x6000 0x100>;
240 };
241
242 qcom,pm8953_rtc_alarm@6100 {
243 reg = <0x6100 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530244 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
Kiran Gunda0954f392017-10-16 16:24:55 +0530245 };
246 };
247
248 pm8953_typec: qcom,pm8953_typec@bf00 {
249 compatible = "qcom,qpnp-typec";
250 reg = <0xbf00 0x100>;
Kiran Gundae0665762017-11-22 17:20:24 +0530251 interrupts = <0x0 0xbf 0x0 IRQ_TYPE_EDGE_RISING>,
252 <0x0 0xbf 0x1 IRQ_TYPE_EDGE_RISING>,
253 <0x0 0xbf 0x2 IRQ_TYPE_EDGE_RISING>,
254 <0x0 0xbf 0x3 IRQ_TYPE_EDGE_RISING>,
255 <0x0 0xbf 0x4 IRQ_TYPE_EDGE_RISING>,
256 <0x0 0xbf 0x6 IRQ_TYPE_EDGE_RISING>,
257 <0x0 0xbf 0x7 IRQ_TYPE_EDGE_RISING>;
Kiran Gunda0954f392017-10-16 16:24:55 +0530258
259 interrupt-names = "vrd-change",
260 "ufp-detect",
261 "ufp-detach",
262 "dfp-detect",
263 "dfp-detach",
264 "vbus-err",
265 "vconn-oc";
266 };
267 };
268
269 pm8953_1: qcom,pm8953@1 {
270 compatible = "qcom,spmi-pmic";
271 reg = <0x1 SPMI_USID>;
272 #address-cells = <1>;
273 #size-cells = <1>;
274
275 pm8953_pwm: pwm@bc00 {
276 status = "disabled";
277 compatible = "qcom,qpnp-pwm";
278 reg = <0xbc00 0x100>;
279 reg-names = "qpnp-lpg-channel-base";
280 qcom,channel-id = <0>;
281 qcom,supported-sizes = <6>, <9>;
282 #pwm-cells = <2>;
283 };
284 };
285};