Debian Codegraph @

arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi

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