Commit | Line | Data |
---|---|---|
71b5235a | 1 | #include "qcom-msm8974.dtsi" |
c9127893 II |
2 | #include "qcom-pm8841.dtsi" |
3 | #include "qcom-pm8941.dtsi" | |
0c808ab5 | 4 | #include <dt-bindings/gpio/gpio.h> |
e29d22e0 | 5 | #include <dt-bindings/input/input.h> |
0c808ab5 | 6 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
71b5235a TB |
7 | |
8 | / { | |
9 | model = "Sony Xperia Z1"; | |
10 | compatible = "sony,xperia-honami", "qcom,msm8974"; | |
11 | ||
8f1dc3cf SB |
12 | aliases { |
13 | serial0 = &blsp1_uart2; | |
14 | }; | |
15 | ||
16 | chosen { | |
17 | stdout-path = "serial0:115200n8"; | |
18 | }; | |
19 | ||
e29d22e0 BA |
20 | gpio-keys { |
21 | compatible = "gpio-keys"; | |
22 | input-name = "gpio-keys"; | |
23 | ||
24 | pinctrl-names = "default"; | |
25 | pinctrl-0 = <&gpio_keys_pin_a>; | |
26 | ||
27 | volume-down { | |
28 | label = "volume_down"; | |
29 | gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; | |
30 | linux,input-type = <1>; | |
31 | linux,code = <KEY_VOLUMEDOWN>; | |
32 | }; | |
33 | ||
34 | camera-snapshot { | |
35 | label = "camera_snapshot"; | |
36 | gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; | |
37 | linux,input-type = <1>; | |
38 | linux,code = <KEY_CAMERA>; | |
39 | }; | |
40 | ||
41 | camera-focus { | |
42 | label = "camera_focus"; | |
43 | gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>; | |
44 | linux,input-type = <1>; | |
45 | linux,code = <KEY_CAMERA_FOCUS>; | |
46 | }; | |
47 | ||
48 | volume-up { | |
49 | label = "volume_up"; | |
50 | gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; | |
51 | linux,input-type = <1>; | |
52 | linux,code = <KEY_VOLUMEUP>; | |
53 | }; | |
54 | }; | |
55 | ||
71b5235a TB |
56 | memory@0 { |
57 | reg = <0 0x40000000>, <0x40000000 0x40000000>; | |
58 | device_type = "memory"; | |
59 | }; | |
0c808ab5 BA |
60 | |
61 | smd { | |
62 | rpm { | |
63 | rpm_requests { | |
64 | pm8841-regulators { | |
65 | s1 { | |
66 | regulator-min-microvolt = <675000>; | |
67 | regulator-max-microvolt = <1050000>; | |
68 | }; | |
69 | ||
70 | s2 { | |
71 | regulator-min-microvolt = <500000>; | |
72 | regulator-max-microvolt = <1050000>; | |
73 | }; | |
74 | ||
75 | s3 { | |
76 | regulator-min-microvolt = <500000>; | |
77 | regulator-max-microvolt = <1050000>; | |
78 | }; | |
79 | ||
80 | s4 { | |
81 | regulator-min-microvolt = <500000>; | |
82 | regulator-max-microvolt = <1050000>; | |
83 | }; | |
84 | }; | |
85 | ||
86 | pm8941-regulators { | |
87 | vdd_l1_l3-supply = <&pm8941_s1>; | |
88 | vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; | |
89 | vdd_l4_l11-supply = <&pm8941_s1>; | |
90 | vdd_l5_l7-supply = <&pm8941_s2>; | |
91 | vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; | |
92 | vdd_l9_l10_l17_l22-supply = <&vreg_boost>; | |
93 | vdd_l13_l20_l23_l24-supply = <&vreg_boost>; | |
94 | vdd_l21-supply = <&vreg_boost>; | |
95 | vin_5vs-supply = <&pm8941_5v>; | |
96 | ||
97 | s1 { | |
98 | regulator-min-microvolt = <1300000>; | |
99 | regulator-max-microvolt = <1300000>; | |
100 | regulator-always-on; | |
101 | regulator-boot-on; | |
102 | }; | |
103 | ||
104 | s2 { | |
105 | regulator-min-microvolt = <2150000>; | |
106 | regulator-max-microvolt = <2150000>; | |
107 | regulator-boot-on; | |
108 | }; | |
109 | ||
110 | s3 { | |
111 | regulator-min-microvolt = <1800000>; | |
112 | regulator-max-microvolt = <1800000>; | |
113 | regulator-always-on; | |
114 | regulator-boot-on; | |
115 | }; | |
116 | ||
117 | s4 { | |
118 | regulator-min-microvolt = <5000000>; | |
119 | regulator-max-microvolt = <5000000>; | |
120 | }; | |
121 | ||
122 | l1 { | |
123 | regulator-min-microvolt = <1225000>; | |
124 | regulator-max-microvolt = <1225000>; | |
125 | ||
126 | regulator-always-on; | |
127 | regulator-boot-on; | |
128 | }; | |
129 | ||
130 | l2 { | |
131 | regulator-min-microvolt = <1200000>; | |
132 | regulator-max-microvolt = <1200000>; | |
133 | }; | |
134 | ||
135 | l3 { | |
136 | regulator-min-microvolt = <1200000>; | |
137 | regulator-max-microvolt = <1200000>; | |
138 | }; | |
139 | ||
140 | l4 { | |
141 | regulator-min-microvolt = <1225000>; | |
142 | regulator-max-microvolt = <1225000>; | |
143 | }; | |
144 | ||
145 | l5 { | |
146 | regulator-min-microvolt = <1800000>; | |
147 | regulator-max-microvolt = <1800000>; | |
148 | }; | |
149 | ||
150 | l6 { | |
151 | regulator-min-microvolt = <1800000>; | |
152 | regulator-max-microvolt = <1800000>; | |
153 | ||
154 | regulator-boot-on; | |
155 | }; | |
156 | ||
157 | l7 { | |
158 | regulator-min-microvolt = <1800000>; | |
159 | regulator-max-microvolt = <1800000>; | |
160 | ||
161 | regulator-boot-on; | |
162 | }; | |
163 | ||
164 | l8 { | |
165 | regulator-min-microvolt = <1800000>; | |
166 | regulator-max-microvolt = <1800000>; | |
167 | }; | |
168 | ||
169 | l9 { | |
170 | regulator-min-microvolt = <1800000>; | |
171 | regulator-max-microvolt = <2950000>; | |
172 | }; | |
173 | ||
174 | l11 { | |
175 | regulator-min-microvolt = <1300000>; | |
176 | regulator-max-microvolt = <1350000>; | |
177 | }; | |
178 | ||
179 | l12 { | |
180 | regulator-min-microvolt = <1800000>; | |
181 | regulator-max-microvolt = <1800000>; | |
182 | ||
183 | regulator-always-on; | |
184 | regulator-boot-on; | |
185 | }; | |
186 | ||
187 | l13 { | |
188 | regulator-min-microvolt = <1800000>; | |
189 | regulator-max-microvolt = <2950000>; | |
190 | ||
191 | regulator-boot-on; | |
192 | }; | |
193 | ||
194 | l14 { | |
195 | regulator-min-microvolt = <1800000>; | |
196 | regulator-max-microvolt = <1800000>; | |
197 | }; | |
198 | ||
199 | l15 { | |
200 | regulator-min-microvolt = <2050000>; | |
201 | regulator-max-microvolt = <2050000>; | |
202 | }; | |
203 | ||
204 | l16 { | |
205 | regulator-min-microvolt = <2700000>; | |
206 | regulator-max-microvolt = <2700000>; | |
207 | }; | |
208 | ||
209 | l17 { | |
210 | regulator-min-microvolt = <2700000>; | |
211 | regulator-max-microvolt = <2700000>; | |
212 | }; | |
213 | ||
214 | l18 { | |
215 | regulator-min-microvolt = <2850000>; | |
216 | regulator-max-microvolt = <2850000>; | |
217 | }; | |
218 | ||
219 | l19 { | |
220 | regulator-min-microvolt = <3300000>; | |
221 | regulator-max-microvolt = <3300000>; | |
222 | }; | |
223 | ||
224 | l20 { | |
225 | regulator-min-microvolt = <2950000>; | |
226 | regulator-max-microvolt = <2950000>; | |
227 | ||
228 | regulator-allow-set-load; | |
229 | regulator-boot-on; | |
230 | regulator-system-load = <200000>; | |
231 | }; | |
232 | ||
233 | l21 { | |
234 | regulator-min-microvolt = <2950000>; | |
235 | regulator-max-microvolt = <2950000>; | |
236 | ||
237 | regulator-boot-on; | |
238 | }; | |
239 | ||
240 | l22 { | |
241 | regulator-min-microvolt = <3000000>; | |
242 | regulator-max-microvolt = <3000000>; | |
243 | }; | |
244 | ||
245 | l23 { | |
246 | regulator-min-microvolt = <2800000>; | |
247 | regulator-max-microvolt = <2800000>; | |
248 | }; | |
249 | ||
250 | l24 { | |
251 | regulator-min-microvolt = <3075000>; | |
252 | regulator-max-microvolt = <3075000>; | |
253 | ||
254 | regulator-boot-on; | |
255 | }; | |
256 | }; | |
257 | }; | |
258 | }; | |
259 | }; | |
260 | ||
261 | vreg_boost: vreg-boost { | |
262 | compatible = "regulator-fixed"; | |
263 | ||
264 | regulator-name = "vreg-boost"; | |
265 | regulator-min-microvolt = <3150000>; | |
266 | regulator-max-microvolt = <3150000>; | |
267 | ||
268 | regulator-always-on; | |
269 | regulator-boot-on; | |
270 | ||
271 | gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; | |
272 | enable-active-high; | |
273 | ||
274 | pinctrl-names = "default"; | |
275 | pinctrl-0 = <&boost_bypass_n_pin>; | |
276 | }; | |
71b5235a TB |
277 | }; |
278 | ||
279 | &soc { | |
f44cfcee BA |
280 | sdhci@f9824900 { |
281 | status = "ok"; | |
282 | ||
283 | vmmc-supply = <&pm8941_l20>; | |
284 | vqmmc-supply = <&pm8941_s3>; | |
285 | ||
286 | bus-width = <8>; | |
287 | non-removable; | |
288 | ||
289 | pinctrl-names = "default"; | |
290 | pinctrl-0 = <&sdhc1_pin_a>; | |
291 | }; | |
292 | ||
b9526a81 BA |
293 | sdhci@f98a4900 { |
294 | status = "ok"; | |
295 | ||
296 | bus-width = <4>; | |
297 | ||
298 | vmmc-supply = <&pm8941_l21>; | |
299 | vqmmc-supply = <&pm8941_l13>; | |
300 | ||
301 | cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>; | |
302 | ||
303 | pinctrl-names = "default"; | |
304 | pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>; | |
305 | }; | |
306 | ||
71b5235a TB |
307 | serial@f991e000 { |
308 | status = "ok"; | |
c2e1445c BA |
309 | |
310 | pinctrl-names = "default"; | |
311 | pinctrl-0 = <&blsp1_uart2_pin_a>; | |
312 | }; | |
313 | ||
e286492e BA |
314 | i2c@f9924000 { |
315 | status = "ok"; | |
316 | ||
317 | clock-frequency = <355000>; | |
318 | qcom,src-freq = <50000000>; | |
319 | ||
320 | pinctrl-names = "default"; | |
321 | pinctrl-0 = <&i2c2_pins>; | |
322 | ||
323 | synaptics@2c { | |
324 | compatible = "syna,rmi4-i2c"; | |
325 | reg = <0x2c>; | |
326 | ||
327 | interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>; | |
328 | ||
329 | #address-cells = <1>; | |
330 | #size-cells = <0>; | |
331 | ||
332 | vdd-supply = <&pm8941_l22>; | |
333 | vio-supply = <&pm8941_lvs3>; | |
334 | ||
335 | pinctrl-names = "default"; | |
336 | pinctrl-0 = <&ts_int_pin>; | |
337 | ||
338 | syna,startup-delay-ms = <10>; | |
339 | ||
340 | rmi4-f01@1 { | |
341 | reg = <0x1>; | |
342 | syna,nosleep-mode = <1>; | |
343 | }; | |
344 | ||
345 | rmi4-f11@11 { | |
346 | reg = <0x11>; | |
347 | touchscreen-inverted-x; | |
348 | syna,sensor-type = <1>; | |
349 | }; | |
350 | }; | |
351 | }; | |
352 | ||
c2e1445c BA |
353 | pinctrl@fd510000 { |
354 | blsp1_uart2_pin_a: blsp1-uart2-pin-active { | |
355 | rx { | |
356 | pins = "gpio5"; | |
357 | function = "blsp_uart2"; | |
358 | ||
359 | drive-strength = <2>; | |
360 | bias-pull-up; | |
361 | }; | |
362 | ||
363 | tx { | |
364 | pins = "gpio4"; | |
365 | function = "blsp_uart2"; | |
366 | ||
367 | drive-strength = <4>; | |
368 | bias-disable; | |
369 | }; | |
370 | }; | |
f44cfcee | 371 | |
e286492e BA |
372 | i2c2_pins: i2c2 { |
373 | mux { | |
374 | pins = "gpio6", "gpio7"; | |
375 | function = "blsp_i2c2"; | |
376 | ||
377 | drive-strength = <2>; | |
378 | bias-disable; | |
379 | }; | |
380 | }; | |
381 | ||
f44cfcee BA |
382 | sdhc1_pin_a: sdhc1-pin-active { |
383 | clk { | |
384 | pins = "sdc1_clk"; | |
385 | drive-strength = <16>; | |
386 | bias-disable; | |
387 | }; | |
388 | ||
389 | cmd-data { | |
390 | pins = "sdc1_cmd", "sdc1_data"; | |
391 | drive-strength = <10>; | |
392 | bias-pull-up; | |
393 | }; | |
394 | }; | |
b9526a81 BA |
395 | |
396 | sdhc2_cd_pin_a: sdhc2-cd-pin-active { | |
397 | pins = "gpio62"; | |
398 | function = "gpio"; | |
399 | ||
400 | drive-strength = <2>; | |
401 | bias-disable; | |
402 | }; | |
403 | ||
404 | sdhc2_pin_a: sdhc2-pin-active { | |
405 | clk { | |
406 | pins = "sdc2_clk"; | |
407 | drive-strength = <10>; | |
408 | bias-disable; | |
409 | }; | |
410 | ||
411 | cmd-data { | |
412 | pins = "sdc2_cmd", "sdc2_data"; | |
413 | drive-strength = <6>; | |
414 | bias-pull-up; | |
415 | }; | |
416 | }; | |
417 | ||
e286492e BA |
418 | ts_int_pin: touch-int { |
419 | pin { | |
420 | pins = "gpio61"; | |
421 | function = "gpio"; | |
422 | ||
423 | drive-strength = <2>; | |
424 | bias-disable; | |
425 | input-enable; | |
426 | }; | |
427 | }; | |
71b5235a | 428 | }; |
d32bfe10 AG |
429 | |
430 | dma-controller@f9944000 { | |
431 | qcom,controlled-remotely; | |
432 | }; | |
71b5235a | 433 | }; |
ccf97fe3 TB |
434 | |
435 | &spmi_bus { | |
436 | pm8941@0 { | |
76be038c BA |
437 | charger@1000 { |
438 | qcom,fast-charge-safe-current = <1500000>; | |
439 | qcom,fast-charge-current-limit = <1500000>; | |
440 | qcom,dc-current-limit = <1800000>; | |
441 | qcom,fast-charge-safe-voltage = <4400000>; | |
442 | qcom,fast-charge-high-threshold-voltage = <4350000>; | |
443 | qcom,fast-charge-low-threshold-voltage = <3400000>; | |
444 | qcom,auto-recharge-threshold-voltage = <4200000>; | |
445 | qcom,minimum-input-voltage = <4300000>; | |
446 | }; | |
447 | ||
0c808ab5 BA |
448 | gpios@c000 { |
449 | boost_bypass_n_pin: boost-bypass { | |
450 | pins = "gpio21"; | |
451 | function = "normal"; | |
452 | }; | |
e29d22e0 BA |
453 | |
454 | gpio_keys_pin_a: gpio-keys-active { | |
455 | pins = "gpio2", "gpio3", "gpio4", "gpio5"; | |
456 | function = "normal"; | |
457 | ||
458 | bias-pull-up; | |
459 | power-source = <PM8941_GPIO_S3>; | |
460 | }; | |
0c808ab5 BA |
461 | }; |
462 | ||
ccf97fe3 TB |
463 | coincell@2800 { |
464 | status = "ok"; | |
465 | qcom,rset-ohms = <2100>; | |
466 | qcom,vset-millivolts = <3000>; | |
467 | }; | |
468 | }; | |
7026d15c BA |
469 | |
470 | pm8941@1 { | |
471 | wled@d800 { | |
472 | status = "ok"; | |
473 | ||
474 | qcom,cs-out; | |
475 | qcom,current-limit = <20>; | |
476 | qcom,current-boost-limit = <805>; | |
477 | qcom,switching-freq = <1600>; | |
478 | qcom,ovp = <29>; | |
479 | qcom,num-strings = <2>; | |
480 | }; | |
481 | }; | |
ccf97fe3 | 482 | }; |