blob: 382bcc3231a905a1e58228b07366ab886361fa30 [file] [log] [blame]
Bhushan Shahb1100d82016-07-29 11:39:06 +05301#include "qcom-msm8974.dtsi"
2#include "qcom-pm8841.dtsi"
3#include "qcom-pm8941.dtsi"
Bhushan Shahb8066642016-07-29 11:39:09 +05304#include <dt-bindings/gpio/gpio.h>
Bhushan Shahf7af7de2016-07-29 11:39:10 +05305#include <dt-bindings/input/input.h>
Bhushan Shahb8066642016-07-29 11:39:09 +05306#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
Bhushan Shahb1100d82016-07-29 11:39:06 +05307
8/ {
9 model = "LGE MSM 8974 HAMMERHEAD";
10 compatible = "lge,hammerhead", "qcom,msm8974";
11
12 aliases {
13 serial0 = &blsp1_uart1;
14 };
15
16 chosen {
17 stdout-path = "serial0:115200n8";
18 };
Bhushan Shahb8066642016-07-29 11:39:09 +053019
20 smd {
21 rpm {
22 rpm_requests {
23 pm8841-regulators {
24 s1 {
25 regulator-min-microvolt = <675000>;
26 regulator-max-microvolt = <1050000>;
27 };
28
29 s2 {
30 regulator-min-microvolt = <500000>;
31 regulator-max-microvolt = <1050000>;
32 };
33
34 s3 {
35 regulator-min-microvolt = <1050000>;
36 regulator-max-microvolt = <1050000>;
37 };
38
39 s4 {
40 regulator-min-microvolt = <815000>;
41 regulator-max-microvolt = <900000>;
42 };
43 };
44
45 pm8941-regulators {
46 vdd_l1_l3-supply = <&pm8941_s1>;
47 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
48 vdd_l4_l11-supply = <&pm8941_s1>;
49 vdd_l5_l7-supply = <&pm8941_s2>;
50 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
51 vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
52 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
53 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
54 vdd_l21-supply = <&vreg_boost>;
55
56 s1 {
57 regulator-min-microvolt = <1300000>;
58 regulator-max-microvolt = <1300000>;
59
60 regulator-always-on;
61 regulator-boot-on;
62 };
63
64 s2 {
65 regulator-min-microvolt = <2150000>;
66 regulator-max-microvolt = <2150000>;
67
68 regulator-boot-on;
69 };
70
71 s3 {
72 regulator-min-microvolt = <1800000>;
73 regulator-max-microvolt = <1800000>;
74
75 regulator-always-on;
76 regulator-boot-on;
77 };
78
79 l1 {
80 regulator-min-microvolt = <1225000>;
81 regulator-max-microvolt = <1225000>;
82
83 regulator-always-on;
84 regulator-boot-on;
85 };
86
87 l2 {
88 regulator-min-microvolt = <1200000>;
89 regulator-max-microvolt = <1200000>;
90 };
91
92 l3 {
93 regulator-min-microvolt = <1225000>;
94 regulator-max-microvolt = <1225000>;
95 };
96
97 l4 {
98 regulator-min-microvolt = <1225000>;
99 regulator-max-microvolt = <1225000>;
100 };
101
102 l5 {
103 regulator-min-microvolt = <1800000>;
104 regulator-max-microvolt = <1800000>;
105 };
106
107 l6 {
108 regulator-min-microvolt = <1800000>;
109 regulator-max-microvolt = <1800000>;
110
111 regulator-boot-on;
112 };
113
114 l7 {
115 regulator-min-microvolt = <1800000>;
116 regulator-max-microvolt = <1800000>;
117
118 regulator-boot-on;
119 };
120
121 l8 {
122 regulator-min-microvolt = <1800000>;
123 regulator-max-microvolt = <1800000>;
124 };
125
126 l9 {
127 regulator-min-microvolt = <1800000>;
128 regulator-max-microvolt = <2950000>;
129 };
130
131 l10 {
132 regulator-min-microvolt = <1800000>;
133 regulator-max-microvolt = <2950000>;
134 };
135
136 l11 {
137 regulator-min-microvolt = <1300000>;
138 regulator-max-microvolt = <1300000>;
139 };
140
141 l12 {
142 regulator-min-microvolt = <1800000>;
143 regulator-max-microvolt = <1800000>;
144
145 regulator-always-on;
146 regulator-boot-on;
147 };
148
149 l13 {
150 regulator-min-microvolt = <1800000>;
151 regulator-max-microvolt = <2950000>;
152
153 regulator-boot-on;
154 };
155
156 l14 {
157 regulator-min-microvolt = <1800000>;
158 regulator-max-microvolt = <1800000>;
159 };
160
161 l15 {
162 regulator-min-microvolt = <2050000>;
163 regulator-max-microvolt = <2050000>;
164 };
165
166 l16 {
167 regulator-min-microvolt = <2700000>;
168 regulator-max-microvolt = <2700000>;
169 };
170
171 l17 {
172 regulator-min-microvolt = <2850000>;
173 regulator-max-microvolt = <2850000>;
174 };
175
176 l18 {
177 regulator-min-microvolt = <2850000>;
178 regulator-max-microvolt = <2850000>;
179 };
180
181 l19 {
182 regulator-min-microvolt = <3000000>;
183 regulator-max-microvolt = <3300000>;
184 };
185
186 l20 {
187 regulator-min-microvolt = <2950000>;
188 regulator-max-microvolt = <2950000>;
189
190 regulator-boot-on;
191 };
192
193 l21 {
194 regulator-min-microvolt = <2950000>;
195 regulator-max-microvolt = <2950000>;
196
197 regulator-boot-on;
198 };
199
200 l22 {
201 regulator-min-microvolt = <3000000>;
202 regulator-max-microvolt = <3300000>;
203 };
204
205 l23 {
206 regulator-min-microvolt = <3000000>;
207 regulator-max-microvolt = <3000000>;
208 };
209
210 l24 {
211 regulator-min-microvolt = <3075000>;
212 regulator-max-microvolt = <3075000>;
213
214 regulator-boot-on;
215 };
216 };
217 };
218 };
219 };
Bhushan Shahb1100d82016-07-29 11:39:06 +0530220};
221
222&soc {
223 serial@f991d000 {
224 status = "ok";
225 };
226
Bhushan Shaha511e972016-07-20 11:56:10 +0530227 pinctrl@fd510000 {
228 sdhc1_pin_a: sdhc1-pin-active {
229 clk {
230 pins = "sdc1_clk";
231 drive-strength = <16>;
232 bias-disable;
233 };
234
235 cmd-data {
236 pins = "sdc1_cmd", "sdc1_data";
237 drive-strength = <10>;
238 bias-pull-up;
239 };
240 };
241 };
242
243 sdhci@f9824900 {
244 status = "ok";
245
246 vmmc-supply = <&pm8941_l20>;
247 vqmmc-supply = <&pm8941_s3>;
248
249 bus-width = <8>;
250 non-removable;
251
252 pinctrl-names = "default";
253 pinctrl-0 = <&sdhc1_pin_a>;
254 };
255
Bhushan Shahf7af7de2016-07-29 11:39:10 +0530256 gpio-keys {
257 compatible = "gpio-keys";
258 input-name = "gpio-keys";
259
260 pinctrl-names = "default";
261 pinctrl-0 = <&gpio_keys_pin_a>;
262
263 volume-up {
264 label = "volume_up";
265 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
266 linux,input-type = <1>;
267 linux,code = <KEY_VOLUMEUP>;
268 };
269
270 volume-down {
271 label = "volume_down";
272 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
273 linux,input-type = <1>;
274 linux,code = <KEY_VOLUMEDOWN>;
275 };
276 };
277};
278
279&spmi_bus {
280 pm8941@0 {
281 gpios@c000 {
282 gpio_keys_pin_a: gpio-keys-active {
283 pins = "gpio2", "gpio3";
284 function = "normal";
285
286 bias-pull-up;
287 power-source = <PM8941_GPIO_S3>;
288 };
289 };
290 };
Bhushan Shahb1100d82016-07-29 11:39:06 +0530291};