Debian Codegraph @

arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi

raw
1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
3 #include "pm8841.dtsi"
4 #include "pm8941.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
8
9 / {
10 aliases {
11 mmc0 = &sdhc_1;
12 mmc1 = &sdhc_2;
13 serial0 = &blsp1_uart2;
14 serial1 = &blsp2_uart1;
15 };
16
17 chosen {
18 stdout-path = "serial0:115200n8";
19 };
20
21 gpio-keys {
22 compatible = "gpio-keys";
23
24 pinctrl-0 = <&gpio_keys_pin_a>;
25 pinctrl-names = "default";
26
27 key-volume-down {
28 label = "volume_down";
29 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_VOLUMEDOWN>;
31 debounce-interval = <15>;
32 };
33
34 key-volume-up {
35 label = "volume_up";
36 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_VOLUMEUP>;
38 debounce-interval = <15>;
39 };
40 };
41
42 vreg_vsp: lcd-dcdc-regulator {
43 compatible = "regulator-fixed";
44 regulator-name = "vreg_vsp";
45 regulator-min-microvolt = <5600000>;
46 regulator-max-microvolt = <5600000>;
47
48 gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
49 enable-active-high;
50
51 pinctrl-0 = <&lcd_dcdc_en_pin_a>;
52 pinctrl-names = "default";
53 };
54
55 vreg_boost: vreg-boost {
56 compatible = "regulator-fixed";
57
58 regulator-name = "vreg-boost";
59 regulator-min-microvolt = <3150000>;
60 regulator-max-microvolt = <3150000>;
61
62 regulator-always-on;
63 regulator-boot-on;
64
65 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
66 enable-active-high;
67
68 pinctrl-names = "default";
69 pinctrl-0 = <&boost_bypass_n_pin>;
70 };
71
72 vreg_vph_pwr: vreg-vph-pwr {
73 compatible = "regulator-fixed";
74 regulator-name = "vph-pwr";
75
76 regulator-min-microvolt = <3600000>;
77 regulator-max-microvolt = <3600000>;
78
79 regulator-always-on;
80 };
81
82 vreg_wlan: wlan-regulator {
83 compatible = "regulator-fixed";
84
85 regulator-name = "wl-reg";
86 regulator-min-microvolt = <3300000>;
87 regulator-max-microvolt = <3300000>;
88
89 gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
90 enable-active-high;
91
92 pinctrl-0 = <&wlan_regulator_pin>;
93 pinctrl-names = "default";
94 };
95 };
96
97 &blsp1_uart2 {
98 status = "okay";
99 };
100
101 &blsp2_i2c2 {
102 clock-frequency = <355000>;
103
104 status = "okay";
105
106 synaptics_touchscreen: synaptics@2c {
107 compatible = "syna,rmi4-i2c";
108 reg = <0x2c>;
109
110 interrupt-parent = <&tlmm>;
111 interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
112
113 #address-cells = <1>;
114 #size-cells = <0>;
115
116 vdd-supply = <&pm8941_l22>;
117 /* vio-supply is set in dts */
118
119 pinctrl-0 = <&ts_int_pin>;
120 pinctrl-names = "default";
121
122 syna,startup-delay-ms = <100>;
123
124 rmi4-f01@1 {
125 reg = <0x1>;
126 syna,nosleep-mode = <1>;
127 };
128
129 rmi4-f11@11 {
130 reg = <0x11>;
131 syna,sensor-type = <1>;
132 touchscreen-inverted-x;
133 };
134 };
135 };
136
137 &pm8941_coincell {
138 qcom,rset-ohms = <2100>;
139 qcom,vset-millivolts = <3000>;
140
141 status = "okay";
142 };
143
144 &pm8941_gpios {
145 gpio_keys_pin_a: gpio-keys-active-state {
146 pins = "gpio2", "gpio5";
147 function = "normal";
148 bias-pull-up;
149 power-source = <PM8941_GPIO_S3>;
150 };
151
152 wlan_sleep_clk_pin: wl-sleep-clk-state {
153 pins = "gpio17";
154 function = "func2";
155 output-high;
156 power-source = <PM8941_GPIO_S3>;
157 };
158
159 wlan_regulator_pin: wl-reg-active-state {
160 pins = "gpio18";
161 function = "normal";
162 bias-disable;
163 power-source = <PM8941_GPIO_S3>;
164 };
165
166 lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
167 pins = "gpio20";
168 function = "normal";
169 bias-disable;
170 power-source = <PM8941_GPIO_S3>;
171 input-disable;
172 output-low;
173 };
174 };
175
176 &pm8941_lpg {
177 qcom,power-source = <1>;
178
179 status = "okay";
180
181 multi-led {
182 color = <LED_COLOR_ID_RGB>;
183 function = LED_FUNCTION_STATUS;
184
185 #address-cells = <1>;
186 #size-cells = <0>;
187
188 led@5 {
189 reg = <5>;
190 color = <LED_COLOR_ID_BLUE>;
191 };
192
193 led@6 {
194 reg = <6>;
195 color = <LED_COLOR_ID_GREEN>;
196 };
197
198 led@7 {
199 reg = <7>;
200 color = <LED_COLOR_ID_RED>;
201 };
202 };
203 };
204
205 &pm8941_vib {
206 status = "okay";
207 };
208
209 &remoteproc_adsp {
210 status = "okay";
211 };
212
213 &remoteproc_mss {
214 mss-supply = <&pm8841_s3>;
215 mx-supply = <&pm8841_s1>;
216 pll-supply = <&pm8941_l12>;
217 status = "okay";
218 };
219
220 &rpm_requests {
221 regulators-0 {
222 compatible = "qcom,rpm-pm8841-regulators";
223
224 pm8841_s1: s1 {
225 regulator-min-microvolt = <675000>;
226 regulator-max-microvolt = <1050000>;
227 };
228
229 pm8841_s3: s3 {
230 regulator-min-microvolt = <500000>;
231 regulator-max-microvolt = <1050000>;
232 };
233 };
234
235 regulators-1 {
236 compatible = "qcom,rpm-pm8941-regulators";
237
238 vdd_l1_l3-supply = <&pm8941_s1>;
239 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
240 vdd_l4_l11-supply = <&pm8941_s1>;
241 vdd_l5_l7-supply = <&pm8941_s2>;
242 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
243 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
244 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
245 vdd_l21-supply = <&vreg_boost>;
246
247 pm8941_s1: s1 {
248 regulator-min-microvolt = <1300000>;
249 regulator-max-microvolt = <1300000>;
250 regulator-always-on;
251 regulator-boot-on;
252 };
253
254 pm8941_s2: s2 {
255 regulator-min-microvolt = <2150000>;
256 regulator-max-microvolt = <2150000>;
257 regulator-boot-on;
258 };
259
260 pm8941_s3: s3 {
261 regulator-min-microvolt = <1800000>;
262 regulator-max-microvolt = <1800000>;
263 regulator-system-load = <154000>;
264 regulator-always-on;
265 regulator-boot-on;
266 };
267
268 pm8941_s4: s4 {
269 regulator-min-microvolt = <5000000>;
270 regulator-max-microvolt = <5000000>;
271 };
272
273 pm8941_l1: l1 {
274 regulator-min-microvolt = <1225000>;
275 regulator-max-microvolt = <1225000>;
276 regulator-always-on;
277 regulator-boot-on;
278 };
279
280 pm8941_l2: l2 {
281 regulator-min-microvolt = <1200000>;
282 regulator-max-microvolt = <1200000>;
283 };
284
285 pm8941_l3: l3 {
286 regulator-min-microvolt = <1200000>;
287 regulator-max-microvolt = <1200000>;
288 };
289
290 pm8941_l4: l4 {
291 regulator-min-microvolt = <1225000>;
292 regulator-max-microvolt = <1225000>;
293 };
294
295 pm8941_l5: l5 {
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
298 };
299
300 pm8941_l6: l6 {
301 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <1800000>;
303 regulator-boot-on;
304 };
305
306 pm8941_l7: l7 {
307 regulator-min-microvolt = <1800000>;
308 regulator-max-microvolt = <1800000>;
309 regulator-boot-on;
310 };
311
312 pm8941_l8: l8 {
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
315 };
316
317 pm8941_l9: l9 {
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <2950000>;
320 };
321
322 pm8941_l12: l12 {
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <1800000>;
325 regulator-always-on;
326 regulator-boot-on;
327 };
328
329 pm8941_l13: l13 {
330 regulator-min-microvolt = <1800000>;
331 regulator-max-microvolt = <2950000>;
332 regulator-boot-on;
333 };
334
335 pm8941_l14: l14 {
336 regulator-min-microvolt = <1800000>;
337 regulator-max-microvolt = <1800000>;
338 };
339
340 pm8941_l15: l15 {
341 regulator-min-microvolt = <2050000>;
342 regulator-max-microvolt = <2050000>;
343 };
344
345 pm8941_l16: l16 {
346 regulator-min-microvolt = <2700000>;
347 regulator-max-microvolt = <2700000>;
348 };
349
350 pm8941_l17: l17 {
351 regulator-min-microvolt = <2700000>;
352 regulator-max-microvolt = <2700000>;
353 };
354
355 pm8941_l18: l18 {
356 regulator-min-microvolt = <2850000>;
357 regulator-max-microvolt = <2850000>;
358 };
359
360 pm8941_l20: l20 {
361 regulator-min-microvolt = <2950000>;
362 regulator-max-microvolt = <2950000>;
363 regulator-system-load = <500000>;
364 regulator-allow-set-load;
365 regulator-boot-on;
366 };
367
368 pm8941_l21: l21 {
369 regulator-min-microvolt = <2950000>;
370 regulator-max-microvolt = <2950000>;
371 regulator-system-load = <500000>;
372 regulator-allow-set-load;
373 regulator-boot-on;
374 };
375
376 pm8941_l22: l22 {
377 regulator-min-microvolt = <3000000>;
378 regulator-max-microvolt = <3000000>;
379 };
380
381 pm8941_l23: l23 {
382 regulator-min-microvolt = <2800000>;
383 regulator-max-microvolt = <2800000>;
384 };
385
386 pm8941_l24: l24 {
387 regulator-min-microvolt = <3075000>;
388 regulator-max-microvolt = <3075000>;
389 regulator-boot-on;
390 };
391
392 pm8941_lvs3: lvs3 {};
393 };
394 };
395
396 &sdhc_1 {
397 vmmc-supply = <&pm8941_l20>;
398 vqmmc-supply = <&pm8941_s3>;
399
400 pinctrl-0 = <&sdc1_on>;
401 pinctrl-1 = <&sdc1_off>;
402 pinctrl-names = "default", "sleep";
403
404 status = "okay";
405 };
406
407 &sdhc_2 {
408 vmmc-supply = <&pm8941_l21>;
409 vqmmc-supply = <&pm8941_l13>;
410
411 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
412
413 pinctrl-0 = <&sdc2_on>;
414 pinctrl-1 = <&sdc2_off>;
415 pinctrl-names = "default", "sleep";
416
417 status = "okay";
418 };
419
420 &sdhc_3 {
421 max-frequency = <100000000>;
422 vmmc-supply = <&vreg_wlan>;
423 non-removable;
424
425 pinctrl-0 = <&sdc3_on>;
426 pinctrl-names = "default";
427
428 status = "okay";
429
430 wifi@1 {
431 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
432 reg = <1>;
433
434 brcm,drive-strength = <10>;
435
436 pinctrl-0 = <&wlan_sleep_clk_pin>;
437 pinctrl-names = "default";
438 };
439 };
440
441 &tlmm {
442 sdc1_on: sdc1-on-state {
443 clk-pins {
444 pins = "sdc1_clk";
445 drive-strength = <16>;
446 bias-disable;
447 };
448
449 cmd-data-pins {
450 pins = "sdc1_cmd", "sdc1_data";
451 drive-strength = <10>;
452 bias-pull-up;
453 };
454 };
455
456 sdc2_on: sdc2-on-state {
457 clk-pins {
458 pins = "sdc2_clk";
459 drive-strength = <6>;
460 bias-disable;
461 };
462
463 cmd-data-pins {
464 pins = "sdc2_cmd", "sdc2_data";
465 drive-strength = <6>;
466 bias-pull-up;
467 };
468
469 cd-pins {
470 pins = "gpio62";
471 function = "gpio";
472 drive-strength = <2>;
473 bias-disable;
474 };
475 };
476
477 sdc3_on: sdc3-on-state {
478 clk-pins {
479 pins = "gpio40";
480 function = "sdc3";
481 drive-strength = <10>;
482 bias-disable;
483 };
484
485 cmd-pins {
486 pins = "gpio39";
487 function = "sdc3";
488 drive-strength = <10>;
489 bias-pull-up;
490 };
491
492 data-pins {
493 pins = "gpio35", "gpio36", "gpio37", "gpio38";
494 function = "sdc3";
495 drive-strength = <10>;
496 bias-pull-up;
497 };
498 };
499
500 ts_int_pin: ts-int-pin-state {
501 pins = "gpio86";
502 function = "gpio";
503 drive-strength = <2>;
504 bias-disable;
505 };
506 };
507
508 &usb {
509 phys = <&usb_hs1_phy>;
510 phy-select = <&tcsr 0xb000 0>;
511 extcon = <&smbb>, <&usb_id>;
512 vbus-supply = <&chg_otg>;
513
514 hnp-disable;
515 srp-disable;
516 adp-disable;
517
518 status = "okay";
519 };
520
521 &usb_hs1_phy {
522 v1p8-supply = <&pm8941_l6>;
523 v3p3-supply = <&pm8941_l24>;
524
525 extcon = <&smbb>;
526 qcom,init-seq = /bits/ 8 <0x1 0x64>;
527
528 status = "okay";
529 };