blob: b27143f81867ab874a9426bed472052d6901a38d [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2022, Linaro Limited
5 */
6
7/dts-v1/;
8
Tom Rini53633a82024-02-29 12:33:36 -05009#include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h>
Tom Rini6bb92fc2024-05-20 09:54:58 -060010#include <dt-bindings/gpio/gpio.h>
Tom Rini53633a82024-02-29 12:33:36 -050011#include <dt-bindings/input/gpio-keys.h>
12#include <dt-bindings/input/input.h>
13#include <dt-bindings/leds/common.h>
14#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
15
16#include "sc8280xp.dtsi"
17#include "sc8280xp-pmics.dtsi"
18
19/ {
20 model = "Lenovo ThinkPad X13s";
21 compatible = "lenovo,thinkpad-x13s", "qcom,sc8280xp";
22
23 aliases {
24 i2c4 = &i2c4;
25 i2c21 = &i2c21;
26 serial1 = &uart2;
27 };
28
29 wcd938x: audio-codec {
30 compatible = "qcom,wcd9380-codec";
31
32 pinctrl-names = "default";
33 pinctrl-0 = <&wcd_default>;
34
35 reset-gpios = <&tlmm 106 GPIO_ACTIVE_LOW>;
36
37 vdd-buck-supply = <&vreg_s10b>;
38 vdd-rxtx-supply = <&vreg_s10b>;
39 vdd-io-supply = <&vreg_s10b>;
40 vdd-mic-bias-supply = <&vreg_bob>;
41
42 qcom,micbias1-microvolt = <1800000>;
43 qcom,micbias2-microvolt = <1800000>;
44 qcom,micbias3-microvolt = <1800000>;
45 qcom,micbias4-microvolt = <1800000>;
46 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
47 qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
48 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
49 qcom,rx-device = <&wcd_rx>;
50 qcom,tx-device = <&wcd_tx>;
51
52 #sound-dai-cells = <1>;
53 };
54
55 backlight: backlight {
56 compatible = "pwm-backlight";
57 pwms = <&pmc8280c_lpg 3 1000000>;
58 enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>;
59 power-supply = <&vreg_edp_bl>;
60
61 pinctrl-names = "default";
62 pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>;
63 };
64
65 gpio-keys {
66 compatible = "gpio-keys";
67
68 pinctrl-names = "default";
69 pinctrl-0 = <&hall_int_n_default>;
70
71 switch-lid {
72 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
73 linux,input-type = <EV_SW>;
74 linux,code = <SW_LID>;
75 wakeup-source;
76 wakeup-event-action = <EV_ACT_DEASSERTED>;
77 };
78 };
79
80 leds {
81 compatible = "gpio-leds";
82
Tom Rini93743d22024-04-01 09:08:13 -040083 pinctrl-names = "default";
84 pinctrl-0 = <&cam_indicator_en>;
85
Tom Rini53633a82024-02-29 12:33:36 -050086 led-camera-indicator {
87 label = "white:camera-indicator";
88 function = LED_FUNCTION_INDICATOR;
89 color = <LED_COLOR_ID_WHITE>;
90 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
91 linux,default-trigger = "none";
92 default-state = "off";
93 /* Reuse as a panic indicator until we get a "camera on" trigger */
94 panic-indicator;
95 };
96 };
97
98 pmic-glink {
99 compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink";
100
101 #address-cells = <1>;
102 #size-cells = <0>;
Tom Rini762f85b2024-07-20 11:15:10 -0600103 orientation-gpios = <&tlmm 166 GPIO_ACTIVE_HIGH>,
104 <&tlmm 49 GPIO_ACTIVE_HIGH>;
Tom Rini53633a82024-02-29 12:33:36 -0500105
106 connector@0 {
107 compatible = "usb-c-connector";
108 reg = <0>;
109 power-role = "dual";
110 data-role = "dual";
111
112 ports {
113 #address-cells = <1>;
114 #size-cells = <0>;
115
116 port@0 {
117 reg = <0>;
118
119 pmic_glink_con0_hs: endpoint {
Tom Rini6b642ac2024-10-01 12:20:28 -0600120 remote-endpoint = <&usb_0_dwc3_hs>;
Tom Rini53633a82024-02-29 12:33:36 -0500121 };
122 };
123
124 port@1 {
125 reg = <1>;
126
127 pmic_glink_con0_ss: endpoint {
128 remote-endpoint = <&usb_0_qmpphy_out>;
129 };
130 };
131
132 port@2 {
133 reg = <2>;
134
135 pmic_glink_con0_sbu: endpoint {
136 remote-endpoint = <&usb0_sbu_mux>;
137 };
138 };
139 };
140 };
141
142 connector@1 {
143 compatible = "usb-c-connector";
144 reg = <1>;
145 power-role = "dual";
146 data-role = "dual";
147
148 ports {
149 #address-cells = <1>;
150 #size-cells = <0>;
151 port@0 {
152 reg = <0>;
153
154 pmic_glink_con1_hs: endpoint {
Tom Rini6b642ac2024-10-01 12:20:28 -0600155 remote-endpoint = <&usb_1_dwc3_hs>;
Tom Rini53633a82024-02-29 12:33:36 -0500156 };
157 };
158
159 port@1 {
160 reg = <1>;
161
162 pmic_glink_con1_ss: endpoint {
163 remote-endpoint = <&usb_1_qmpphy_out>;
164 };
165 };
166
167 port@2 {
168 reg = <2>;
169
170 pmic_glink_con1_sbu: endpoint {
171 remote-endpoint = <&usb1_sbu_mux>;
172 };
173 };
174 };
175 };
176 };
177
178 vreg_edp_3p3: regulator-edp-3p3 {
179 compatible = "regulator-fixed";
180
181 regulator-name = "VCC3LCD";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
184
185 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
186 enable-active-high;
187
188 pinctrl-names = "default";
189 pinctrl-0 = <&edp_reg_en>;
190
191 regulator-boot-on;
192 };
193
194 vreg_edp_bl: regulator-edp-bl {
195 compatible = "regulator-fixed";
196
197 regulator-name = "VBL9";
198 regulator-min-microvolt = <3600000>;
199 regulator-max-microvolt = <3600000>;
200
201 gpio = <&pmc8280_1_gpios 9 GPIO_ACTIVE_HIGH>;
202 enable-active-high;
203
204 pinctrl-names = "default";
205 pinctrl-0 = <&edp_bl_reg_en>;
206
207 regulator-boot-on;
208 };
209
210 vreg_misc_3p3: regulator-misc-3p3 {
211 compatible = "regulator-fixed";
212
213 regulator-name = "VCC3B";
214 regulator-min-microvolt = <3300000>;
215 regulator-max-microvolt = <3300000>;
216
217 gpio = <&pmc8280_1_gpios 1 GPIO_ACTIVE_HIGH>;
218 enable-active-high;
219
220 pinctrl-names = "default";
221 pinctrl-0 = <&misc_3p3_reg_en>;
222
223 regulator-boot-on;
224 regulator-always-on;
225 };
226
227 vreg_nvme: regulator-nvme {
228 compatible = "regulator-fixed";
229
230 regulator-name = "VCC3_SSD";
231 regulator-min-microvolt = <3300000>;
232 regulator-max-microvolt = <3300000>;
233
234 gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>;
235 enable-active-high;
236
237 pinctrl-names = "default";
238 pinctrl-0 = <&nvme_reg_en>;
239
240 regulator-boot-on;
241 };
242
243 vreg_vph_pwr: regulator-vph-pwr {
244 compatible = "regulator-fixed";
245
246 regulator-name = "VPH_VCC3R9";
247 regulator-min-microvolt = <3900000>;
248 regulator-max-microvolt = <3900000>;
249
250 regulator-always-on;
251 };
252
253 vreg_wlan: regulator-wlan {
254 compatible = "regulator-fixed";
255
256 regulator-name = "VCC_WLAN_3R9";
257 regulator-min-microvolt = <3900000>;
258 regulator-max-microvolt = <3900000>;
259
260 gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>;
261 enable-active-high;
262
263 pinctrl-names = "default";
264 pinctrl-0 = <&hastings_reg_en>;
265
266 regulator-boot-on;
267 };
268
269 vreg_wwan: regulator-wwan {
270 compatible = "regulator-fixed";
271
272 regulator-name = "VCC3B_WAN";
273 regulator-min-microvolt = <3300000>;
274 regulator-max-microvolt = <3300000>;
275
276 gpio = <&pmc8280_2_gpios 1 GPIO_ACTIVE_HIGH>;
277 enable-active-high;
278
279 pinctrl-names = "default";
280 pinctrl-0 = <&wwan_sw_en>;
281
282 regulator-boot-on;
283 };
284
285 reserved-memory {
286 gpu_mem: gpu-mem@8bf00000 {
287 reg = <0 0x8bf00000 0 0x2000>;
288 no-map;
289 };
290
291 linux,cma {
292 compatible = "shared-dma-pool";
293 size = <0x0 0x8000000>;
294 reusable;
295 linux,cma-default;
296 };
297 };
298
299 thermal-zones {
Tom Rini6b642ac2024-10-01 12:20:28 -0600300 pm8008-thermal {
301 polling-delay-passive = <100>;
302 polling-delay = <0>;
303
304 thermal-sensors = <&pm8008>;
305
306 trips {
307 trip0 {
308 temperature = <95000>;
309 hysteresis = <0>;
310 type = "passive";
311 };
312
313 trip1 {
314 temperature = <115000>;
315 hysteresis = <0>;
316 type = "critical";
317 };
318 };
319 };
320
Tom Rini53633a82024-02-29 12:33:36 -0500321 skin-temp-thermal {
322 polling-delay-passive = <250>;
Tom Rini6b642ac2024-10-01 12:20:28 -0600323
Tom Rini53633a82024-02-29 12:33:36 -0500324 thermal-sensors = <&pmk8280_adc_tm 5>;
325
326 trips {
327 skin_temp_alert0: trip-point0 {
328 temperature = <55000>;
329 hysteresis = <1000>;
330 type = "passive";
331 };
332
333 skin_temp_alert1: trip-point1 {
334 temperature = <58000>;
335 hysteresis = <1000>;
336 type = "passive";
337 };
338
339 skin-temp-crit {
340 temperature = <73000>;
341 hysteresis = <1000>;
342 type = "critical";
343 };
344 };
345
346 cooling-maps {
347 map0 {
348 trip = <&skin_temp_alert0>;
349 cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
350 <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
351 <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
352 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
353 };
354
355 map1 {
356 trip = <&skin_temp_alert1>;
357 cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
358 <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
359 <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
360 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
361 };
362 };
363 };
364 };
365
366 usb0-sbu-mux {
367 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
368
369 enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
370 select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>;
371
372 pinctrl-names = "default";
373 pinctrl-0 = <&usb0_sbu_default>;
374
375 mode-switch;
376 orientation-switch;
377
378 port {
379 usb0_sbu_mux: endpoint {
380 remote-endpoint = <&pmic_glink_con0_sbu>;
381 };
382 };
383 };
384
385 usb1-sbu-mux {
386 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
387
388 enable-gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
389 select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
390
391 pinctrl-names = "default";
392 pinctrl-0 = <&usb1_sbu_default>;
393
394 mode-switch;
395 orientation-switch;
396
397 port {
398 usb1_sbu_mux: endpoint {
399 remote-endpoint = <&pmic_glink_con1_sbu>;
400 };
401 };
402 };
403};
404
405&apps_rsc {
406 regulators-0 {
407 compatible = "qcom,pm8350-rpmh-regulators";
408 qcom,pmic-id = "b";
409
410 vdd-l1-l4-supply = <&vreg_s12b>;
411 vdd-l2-l7-supply = <&vreg_bob>;
412 vdd-l3-l5-supply = <&vreg_s11b>;
413 vdd-l6-l9-l10-supply = <&vreg_s12b>;
414 vdd-l8-supply = <&vreg_s12b>;
415
416 vreg_s10b: smps10 {
417 regulator-name = "vreg_s10b";
418 regulator-min-microvolt = <1800000>;
419 regulator-max-microvolt = <1800000>;
420 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
421 regulator-always-on;
422 };
423
424 vreg_s11b: smps11 {
425 regulator-name = "vreg_s11b";
426 regulator-min-microvolt = <1272000>;
427 regulator-max-microvolt = <1272000>;
428 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
429 regulator-always-on;
430 };
431
432 vreg_s12b: smps12 {
433 regulator-name = "vreg_s12b";
434 regulator-min-microvolt = <984000>;
435 regulator-max-microvolt = <984000>;
436 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
437 regulator-always-on;
438 };
439
Tom Rini762f85b2024-07-20 11:15:10 -0600440 vreg_l1b: ldo1 {
441 regulator-name = "vreg_l1b";
442 regulator-min-microvolt = <912000>;
443 regulator-max-microvolt = <912000>;
444 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
445 };
446
Tom Rini53633a82024-02-29 12:33:36 -0500447 vreg_l3b: ldo3 {
448 regulator-name = "vreg_l3b";
449 regulator-min-microvolt = <1200000>;
450 regulator-max-microvolt = <1200000>;
451 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
452 regulator-boot-on;
453 };
454
455 vreg_l4b: ldo4 {
456 regulator-name = "vreg_l4b";
457 regulator-min-microvolt = <912000>;
458 regulator-max-microvolt = <912000>;
459 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
460 };
461
462 vreg_l6b: ldo6 {
463 regulator-name = "vreg_l6b";
464 regulator-min-microvolt = <880000>;
465 regulator-max-microvolt = <880000>;
466 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
467 regulator-boot-on;
468 };
469 };
470
471 regulators-1 {
472 compatible = "qcom,pm8350c-rpmh-regulators";
473 qcom,pmic-id = "c";
474
475 vdd-bob-supply = <&vreg_vph_pwr>;
476 vdd-l1-l12-supply = <&vreg_s1c>;
477 vdd-l2-l8-supply = <&vreg_s1c>;
478 vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>;
479 vdd-l6-l9-l11-supply = <&vreg_bob>;
480 vdd-l10-supply = <&vreg_s11b>;
481
482 vreg_s1c: smps1 {
483 regulator-name = "vreg_s1c";
484 regulator-min-microvolt = <1880000>;
485 regulator-max-microvolt = <1900000>;
486 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
487 regulator-always-on;
488 };
489
490 vreg_l1c: ldo1 {
491 regulator-name = "vreg_l1c";
492 regulator-min-microvolt = <1800000>;
493 regulator-max-microvolt = <1800000>;
494 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
495 };
496
Tom Rini762f85b2024-07-20 11:15:10 -0600497 vreg_l8c: ldo8 {
498 regulator-name = "vreg_l8c";
499 regulator-min-microvolt = <1800000>;
500 regulator-max-microvolt = <1800000>;
501 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
502 };
503
Tom Rini53633a82024-02-29 12:33:36 -0500504 vreg_l12c: ldo12 {
505 regulator-name = "vreg_l12c";
506 regulator-min-microvolt = <1800000>;
507 regulator-max-microvolt = <1800000>;
508 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
509 };
510
511 vreg_l13c: ldo13 {
512 regulator-name = "vreg_l13c";
513 regulator-min-microvolt = <3072000>;
514 regulator-max-microvolt = <3072000>;
515 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
516 };
517
518 vreg_bob: bob {
519 regulator-name = "vreg_bob";
520 regulator-min-microvolt = <3008000>;
521 regulator-max-microvolt = <3960000>;
522 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
523 regulator-always-on;
524 };
525 };
526
527 regulators-2 {
528 compatible = "qcom,pm8350-rpmh-regulators";
529 qcom,pmic-id = "d";
530
531 vdd-l1-l4-supply = <&vreg_s11b>;
532 vdd-l2-l7-supply = <&vreg_bob>;
533 vdd-l3-l5-supply = <&vreg_s11b>;
534 vdd-l6-l9-l10-supply = <&vreg_s12b>;
535 vdd-l8-supply = <&vreg_s12b>;
536
Tom Rini762f85b2024-07-20 11:15:10 -0600537 vreg_l2d: ldo2 {
538 regulator-name = "vreg_l2d";
539 regulator-min-microvolt = <3072000>;
540 regulator-max-microvolt = <3072000>;
541 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
542 };
543
Tom Rini53633a82024-02-29 12:33:36 -0500544 vreg_l3d: ldo3 {
545 regulator-name = "vreg_l3d";
546 regulator-min-microvolt = <1200000>;
547 regulator-max-microvolt = <1200000>;
548 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
549 };
550
551 vreg_l4d: ldo4 {
552 regulator-name = "vreg_l4d";
553 regulator-min-microvolt = <1200000>;
554 regulator-max-microvolt = <1200000>;
555 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
556 };
557
558 vreg_l6d: ldo6 {
559 regulator-name = "vreg_l6d";
560 regulator-min-microvolt = <880000>;
561 regulator-max-microvolt = <880000>;
562 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
563 };
564
565 vreg_l7d: ldo7 {
566 regulator-name = "vreg_l7d";
567 regulator-min-microvolt = <3072000>;
568 regulator-max-microvolt = <3072000>;
569 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
570 };
571
Tom Rini762f85b2024-07-20 11:15:10 -0600572 vreg_l8d: ldo8 {
573 regulator-name = "vreg_l8d";
574 regulator-min-microvolt = <912000>;
575 regulator-max-microvolt = <912000>;
576 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
577 };
578
Tom Rini53633a82024-02-29 12:33:36 -0500579 vreg_l9d: ldo9 {
580 regulator-name = "vreg_l9d";
581 regulator-min-microvolt = <912000>;
582 regulator-max-microvolt = <912000>;
583 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
584 };
Tom Rini762f85b2024-07-20 11:15:10 -0600585
586 vreg_l10d: ldo10 {
587 regulator-name = "vreg_l10d";
588 regulator-min-microvolt = <912000>;
589 regulator-max-microvolt = <912000>;
590 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
591 };
Tom Rini53633a82024-02-29 12:33:36 -0500592 };
593};
594
595&dispcc0 {
596 status = "okay";
597};
598
599&gpu {
600 status = "okay";
601
602 zap-shader {
603 memory-region = <&gpu_mem>;
604 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn";
605 };
606};
607
608&mdss0 {
609 status = "okay";
610};
611
612&mdss0_dp0 {
613 status = "okay";
614};
615
616&mdss0_dp0_out {
617 data-lanes = <0 1>;
618 remote-endpoint = <&usb_0_qmpphy_dp_in>;
619};
620
621&mdss0_dp1 {
622 status = "okay";
623};
624
625&mdss0_dp1_out {
626 data-lanes = <0 1>;
627 remote-endpoint = <&usb_1_qmpphy_dp_in>;
628};
629
630&mdss0_dp3 {
631 compatible = "qcom,sc8280xp-edp";
Tom Rini93743d22024-04-01 09:08:13 -0400632 /delete-property/ #sound-dai-cells;
Tom Rini53633a82024-02-29 12:33:36 -0500633
634 data-lanes = <0 1 2 3>;
635
636 status = "okay";
637
638 aux-bus {
639 panel {
640 compatible = "edp-panel";
641
642 backlight = <&backlight>;
643 power-supply = <&vreg_edp_3p3>;
644
645 port {
646 edp_panel_in: endpoint {
647 remote-endpoint = <&mdss0_dp3_out>;
648 };
649 };
650 };
651 };
652
653 ports {
654 port@1 {
655 reg = <1>;
656 mdss0_dp3_out: endpoint {
657 remote-endpoint = <&edp_panel_in>;
658 };
659 };
660 };
661};
662
663&mdss0_dp3_phy {
Tom Rini93743d22024-04-01 09:08:13 -0400664 compatible = "qcom,sc8280xp-edp-phy";
Tom Rini53633a82024-02-29 12:33:36 -0500665 vdda-phy-supply = <&vreg_l6b>;
666 vdda-pll-supply = <&vreg_l3b>;
667
668 status = "okay";
669};
670
671&i2c4 {
672 clock-frequency = <400000>;
673
674 pinctrl-names = "default";
675 pinctrl-0 = <&i2c4_default>;
676
677 status = "okay";
678
Tom Rini53633a82024-02-29 12:33:36 -0500679 touchscreen@10 {
Tom Rini762f85b2024-07-20 11:15:10 -0600680 compatible = "elan,ekth5015m", "elan,ekth6915";
Tom Rini53633a82024-02-29 12:33:36 -0500681 reg = <0x10>;
682
Tom Rini53633a82024-02-29 12:33:36 -0500683 interrupts-extended = <&tlmm 175 IRQ_TYPE_LEVEL_LOW>;
Tom Rini762f85b2024-07-20 11:15:10 -0600684 reset-gpios = <&tlmm 99 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
685 no-reset-on-power-off;
686
687 vcc33-supply = <&vreg_misc_3p3>;
688 vccio-supply = <&vreg_misc_3p3>;
Tom Rini53633a82024-02-29 12:33:36 -0500689
690 pinctrl-names = "default";
691 pinctrl-0 = <&ts0_default>;
692 };
693};
694
Tom Rini6b642ac2024-10-01 12:20:28 -0600695&i2c11 {
696 clock-frequency = <400000>;
697
698 pinctrl-names = "default";
699 pinctrl-0 = <&i2c11_default>;
700
701 status = "okay";
702
703 pm8008: pmic@c {
704 compatible = "qcom,pm8008";
705 reg = <0xc>;
706
707 interrupts-extended = <&tlmm 41 IRQ_TYPE_EDGE_RISING>;
708 reset-gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
709
710 vdd-l1-l2-supply = <&vreg_s11b>;
711 vdd-l3-l4-supply = <&vreg_bob>;
712 vdd-l5-supply = <&vreg_bob>;
713 vdd-l6-supply = <&vreg_bob>;
714 vdd-l7-supply = <&vreg_bob>;
715
716 pinctrl-names = "default";
717 pinctrl-0 = <&pm8008_default>;
718
719 gpio-controller;
720 #gpio-cells = <2>;
721 gpio-ranges = <&pm8008 0 0 2>;
722
723 interrupt-controller;
724 #interrupt-cells = <2>;
725
726 #thermal-sensor-cells = <0>;
727
728 regulators {
729 vreg_l1q: ldo1 {
730 regulator-name = "vreg_l1q";
731 regulator-min-microvolt = <1200000>;
732 regulator-max-microvolt = <1200000>;
733 };
734
735 vreg_l2q: ldo2 {
736 regulator-name = "vreg_l2q";
737 regulator-min-microvolt = <1200000>;
738 regulator-max-microvolt = <1200000>;
739 };
740
741 vreg_l3q: ldo3 {
742 regulator-name = "vreg_l3q";
743 regulator-min-microvolt = <2800000>;
744 regulator-max-microvolt = <2800000>;
745 };
746
747 vreg_l4q: ldo4 {
748 regulator-name = "vreg_l4q";
749 regulator-min-microvolt = <2800000>;
750 regulator-max-microvolt = <2800000>;
751 };
752
753 vreg_l5q: ldo5 {
754 regulator-name = "vreg_l5q";
755 regulator-min-microvolt = <1800000>;
756 regulator-max-microvolt = <1800000>;
757 };
758
759 vreg_l6q: ldo6 {
760 regulator-name = "vreg_l6q";
761 regulator-min-microvolt = <1800000>;
762 regulator-max-microvolt = <1800000>;
763 };
764
765 vreg_l7q: ldo7 {
766 regulator-name = "vreg_l7q";
767 regulator-min-microvolt = <2800000>;
768 regulator-max-microvolt = <2800000>;
769 };
770 };
771 };
772};
773
Tom Rini53633a82024-02-29 12:33:36 -0500774&i2c21 {
775 clock-frequency = <400000>;
776
777 pinctrl-names = "default";
778 pinctrl-0 = <&i2c21_default>, <&tpad_default>;
779
780 status = "okay";
781
782 touchpad@15 {
783 compatible = "hid-over-i2c";
784 reg = <0x15>;
785
786 hid-descr-addr = <0x1>;
787 interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>;
788 vdd-supply = <&vreg_misc_3p3>;
789 vddl-supply = <&vreg_s10b>;
790
791 wakeup-source;
792 };
793
794 touchpad@2c {
795 compatible = "hid-over-i2c";
796 reg = <0x2c>;
797
798 hid-descr-addr = <0x20>;
799 interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>;
800 vdd-supply = <&vreg_misc_3p3>;
801 vddl-supply = <&vreg_s10b>;
802
803 wakeup-source;
804 };
805
806 keyboard@68 {
807 compatible = "hid-over-i2c";
808 reg = <0x68>;
809
810 hid-descr-addr = <0x1>;
811 interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
812 vdd-supply = <&vreg_misc_3p3>;
813 vddl-supply = <&vreg_s10b>;
814
815 pinctrl-names = "default";
816 pinctrl-0 = <&kybd_default>;
817
818 wakeup-source;
819 };
820};
821
822&pcie2a {
823 perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>;
824 wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
825
826 vddpe-3v3-supply = <&vreg_nvme>;
827
828 pinctrl-names = "default";
829 pinctrl-0 = <&pcie2a_default>;
830
831 status = "okay";
832};
833
834&pcie2a_phy {
835 vdda-phy-supply = <&vreg_l6d>;
836 vdda-pll-supply = <&vreg_l4d>;
837
838 status = "okay";
839};
840
841&pcie3a {
842 perst-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>;
843 wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>;
844
845 vddpe-3v3-supply = <&vreg_wwan>;
846
847 pinctrl-names = "default";
848 pinctrl-0 = <&pcie3a_default>;
849
850 status = "okay";
851};
852
853&pcie3a_phy {
854 vdda-phy-supply = <&vreg_l6d>;
855 vdda-pll-supply = <&vreg_l4d>;
856
857 status = "okay";
858};
859
860&pcie4 {
Tom Rini93743d22024-04-01 09:08:13 -0400861 max-link-speed = <2>;
862
Tom Rini53633a82024-02-29 12:33:36 -0500863 perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>;
864 wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>;
865
866 vddpe-3v3-supply = <&vreg_wlan>;
867
868 pinctrl-names = "default";
869 pinctrl-0 = <&pcie4_default>;
870
871 status = "okay";
Tom Rini762f85b2024-07-20 11:15:10 -0600872};
Tom Rini53633a82024-02-29 12:33:36 -0500873
Tom Rini762f85b2024-07-20 11:15:10 -0600874&pcie4_port0 {
875 wifi@0 {
876 compatible = "pci17cb,1103";
877 reg = <0x10000 0x0 0x0 0x0 0x0>;
Tom Rini53633a82024-02-29 12:33:36 -0500878
Tom Rini762f85b2024-07-20 11:15:10 -0600879 qcom,ath11k-calibration-variant = "LE_X13S";
Tom Rini53633a82024-02-29 12:33:36 -0500880 };
881};
882
883&pcie4_phy {
884 vdda-phy-supply = <&vreg_l6d>;
885 vdda-pll-supply = <&vreg_l4d>;
886
887 status = "okay";
888};
889
890&pmc8280c_lpg {
891 status = "okay";
892};
893
894&pmk8280_adc_tm {
895 status = "okay";
896
897 sys-therm@0 {
898 reg = <0>;
899 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>;
900 qcom,hw-settle-time-us = <200>;
901 qcom,avg-samples = <2>;
902 qcom,ratiometric;
903 };
904
905 sys-therm@1 {
906 reg = <1>;
907 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>;
908 qcom,hw-settle-time-us = <200>;
909 qcom,avg-samples = <2>;
910 qcom,ratiometric;
911 };
912
913 sys-therm@2 {
914 reg = <2>;
915 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>;
916 qcom,hw-settle-time-us = <200>;
917 qcom,avg-samples = <2>;
918 qcom,ratiometric;
919 };
920
921 sys-therm@3 {
922 reg = <3>;
923 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>;
924 qcom,hw-settle-time-us = <200>;
925 qcom,avg-samples = <2>;
926 qcom,ratiometric;
927 };
928
929 sys-therm@4 {
930 reg = <4>;
931 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(3)>;
932 qcom,hw-settle-time-us = <200>;
933 qcom,avg-samples = <2>;
934 qcom,ratiometric;
935 };
936
937 sys-therm@5 {
938 reg = <5>;
939 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(3)>;
940 qcom,hw-settle-time-us = <200>;
941 qcom,avg-samples = <2>;
942 qcom,ratiometric;
943 };
944
945 sys-therm@6 {
946 reg = <6>;
947 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(3)>;
948 qcom,hw-settle-time-us = <200>;
949 qcom,avg-samples = <2>;
950 qcom,ratiometric;
951 };
952
953 sys-therm@7 {
954 reg = <7>;
955 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(3)>;
956 qcom,hw-settle-time-us = <200>;
957 qcom,avg-samples = <2>;
958 qcom,ratiometric;
959 };
960};
961
962&pmk8280_pon_pwrkey {
963 status = "okay";
964};
965
966&pmk8280_pon_resin {
967 status = "okay";
968};
969
970&pmk8280_rtc {
971 nvmem-cells = <&rtc_offset>;
972 nvmem-cell-names = "offset";
973
974 status = "okay";
975};
976
977&pmk8280_sdam_6 {
978 status = "okay";
979
980 rtc_offset: rtc-offset@bc {
981 reg = <0xbc 0x4>;
982 };
983};
984
985&pmk8280_vadc {
Tom Rini53633a82024-02-29 12:33:36 -0500986 channel@144 {
987 reg = <PM8350_ADC7_AMUX_THM1_100K_PU(1)>;
988 qcom,hw-settle-time = <200>;
989 qcom,ratiometric;
990 label = "sys_therm1";
991 };
992
993 channel@145 {
994 reg = <PM8350_ADC7_AMUX_THM2_100K_PU(1)>;
995 qcom,hw-settle-time = <200>;
996 qcom,ratiometric;
997 label = "sys_therm2";
998 };
999
1000 channel@146 {
1001 reg = <PM8350_ADC7_AMUX_THM3_100K_PU(1)>;
1002 qcom,hw-settle-time = <200>;
1003 qcom,ratiometric;
1004 label = "sys_therm3";
1005 };
1006
1007 channel@147 {
1008 reg = <PM8350_ADC7_AMUX_THM4_100K_PU(1)>;
1009 qcom,hw-settle-time = <200>;
1010 qcom,ratiometric;
1011 label = "sys_therm4";
1012 };
1013
Tom Rini53633a82024-02-29 12:33:36 -05001014 channel@344 {
1015 reg = <PM8350_ADC7_AMUX_THM1_100K_PU(3)>;
1016 qcom,hw-settle-time = <200>;
1017 qcom,ratiometric;
1018 label = "sys_therm5";
1019 };
1020
1021 channel@345 {
1022 reg = <PM8350_ADC7_AMUX_THM2_100K_PU(3)>;
1023 qcom,hw-settle-time = <200>;
1024 qcom,ratiometric;
1025 label = "sys_therm6";
1026 };
1027
1028 channel@346 {
1029 reg = <PM8350_ADC7_AMUX_THM3_100K_PU(3)>;
1030 qcom,hw-settle-time = <200>;
1031 qcom,ratiometric;
1032 label = "sys_therm7";
1033 };
1034
1035 channel@347 {
1036 reg = <PM8350_ADC7_AMUX_THM4_100K_PU(3)>;
1037 qcom,hw-settle-time = <200>;
1038 qcom,ratiometric;
1039 label = "sys_therm8";
1040 };
Tom Rini53633a82024-02-29 12:33:36 -05001041};
1042
1043&qup0 {
1044 status = "okay";
1045};
1046
1047&qup1 {
1048 status = "okay";
1049};
1050
1051&qup2 {
1052 status = "okay";
1053};
1054
1055&remoteproc_adsp {
1056 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcadsp8280.mbn";
1057
1058 status = "okay";
1059};
1060
1061&remoteproc_nsp0 {
1062 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qccdsp8280.mbn";
1063
1064 status = "okay";
1065};
1066
1067&rxmacro {
1068 status = "okay";
1069};
1070
1071&sound {
1072 compatible = "qcom,sc8280xp-sndcard";
1073 model = "SC8280XP-LENOVO-X13S";
1074 audio-routing =
1075 "SpkrLeft IN", "WSA_SPK1 OUT",
1076 "SpkrRight IN", "WSA_SPK2 OUT",
1077 "IN1_HPHL", "HPHL_OUT",
1078 "IN2_HPHR", "HPHR_OUT",
1079 "AMIC2", "MIC BIAS2",
1080 "VA DMIC0", "MIC BIAS1",
1081 "VA DMIC1", "MIC BIAS1",
1082 "VA DMIC2", "MIC BIAS3",
1083 "VA DMIC0", "VA MIC BIAS1",
1084 "VA DMIC1", "VA MIC BIAS1",
1085 "VA DMIC2", "VA MIC BIAS3",
1086 "TX SWR_ADC1", "ADC2_OUTPUT";
1087
1088 wcd-playback-dai-link {
1089 link-name = "WCD Playback";
1090 cpu {
1091 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
1092 };
1093
1094 codec {
1095 sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>;
1096 };
1097
1098 platform {
1099 sound-dai = <&q6apm>;
1100 };
1101 };
1102
1103 wcd-capture-dai-link {
1104 link-name = "WCD Capture";
1105 cpu {
1106 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
1107 };
1108
1109 codec {
1110 sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>;
1111 };
1112
1113 platform {
1114 sound-dai = <&q6apm>;
1115 };
1116 };
1117
1118 wsa-dai-link {
1119 link-name = "WSA Playback";
1120 cpu {
1121 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
1122 };
1123
1124 codec {
1125 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>;
1126 };
1127
1128 platform {
1129 sound-dai = <&q6apm>;
1130 };
1131 };
1132
1133 va-dai-link {
1134 link-name = "VA Capture";
1135 cpu {
1136 sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
1137 };
1138
1139 platform {
1140 sound-dai = <&q6apm>;
1141 };
1142
1143 codec {
1144 sound-dai = <&vamacro 0>;
1145 };
1146 };
1147};
1148
1149&swr0 {
1150 status = "okay";
1151
1152 left_spkr: wsa8830-left@0,1 {
1153 compatible = "sdw10217020200";
1154 reg = <0 1>;
1155 pinctrl-names = "default";
1156 pinctrl-0 = <&spkr_1_sd_n_default>;
1157 powerdown-gpios = <&tlmm 178 GPIO_ACTIVE_LOW>;
1158 #thermal-sensor-cells = <0>;
1159 sound-name-prefix = "SpkrLeft";
1160 #sound-dai-cells = <0>;
1161 vdd-supply = <&vreg_s10b>;
1162 };
1163
1164 right_spkr: wsa8830-right@0,2 {
1165 compatible = "sdw10217020200";
1166 reg = <0 2>;
1167 pinctrl-names = "default";
1168 pinctrl-0 = <&spkr_2_sd_n_default>;
1169 powerdown-gpios = <&tlmm 179 GPIO_ACTIVE_LOW>;
1170 #thermal-sensor-cells = <0>;
1171 sound-name-prefix = "SpkrRight";
1172 #sound-dai-cells = <0>;
1173 vdd-supply = <&vreg_s10b>;
1174 };
1175};
1176
1177&swr1 {
1178 status = "okay";
1179
1180 wcd_rx: wcd9380-rx@0,4 {
1181 compatible = "sdw20217010d00";
1182 reg = <0 4>;
1183 qcom,rx-port-mapping = <1 2 3 4 5>;
1184 };
1185};
1186
1187&swr2 {
1188 status = "okay";
1189
1190 wcd_tx: wcd9380-tx@0,3 {
1191 compatible = "sdw20217010d00";
1192 reg = <0 3>;
1193 qcom,tx-port-mapping = <1 1 2 3>;
1194 };
1195};
1196
1197&txmacro {
1198 status = "okay";
1199};
1200
1201&uart2 {
1202 pinctrl-0 = <&uart2_default>;
1203 pinctrl-names = "default";
1204
1205 status = "okay";
1206
1207 bluetooth {
1208 compatible = "qcom,wcn6855-bt";
1209
1210 vddio-supply = <&vreg_s10b>;
1211 vddbtcxmx-supply = <&vreg_s12b>;
1212 vddrfacmn-supply = <&vreg_s12b>;
1213 vddrfa0p8-supply = <&vreg_s12b>;
1214 vddrfa1p2-supply = <&vreg_s11b>;
1215 vddrfa1p7-supply = <&vreg_s1c>;
1216
1217 max-speed = <3200000>;
1218
1219 enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
1220 swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>;
1221
1222 pinctrl-0 = <&bt_default>;
1223 pinctrl-names = "default";
1224 };
1225};
1226
1227&usb_0 {
1228 status = "okay";
1229};
1230
1231&usb_0_dwc3 {
1232 dr_mode = "host";
1233};
1234
Tom Rini6b642ac2024-10-01 12:20:28 -06001235&usb_0_dwc3_hs {
1236 remote-endpoint = <&pmic_glink_con0_hs>;
1237};
1238
Tom Rini53633a82024-02-29 12:33:36 -05001239&usb_0_hsphy {
1240 vdda-pll-supply = <&vreg_l9d>;
1241 vdda18-supply = <&vreg_l1c>;
1242 vdda33-supply = <&vreg_l7d>;
1243
1244 status = "okay";
1245};
1246
1247&usb_0_qmpphy {
1248 vdda-phy-supply = <&vreg_l9d>;
1249 vdda-pll-supply = <&vreg_l4d>;
1250
1251 orientation-switch;
1252
1253 status = "okay";
1254};
1255
1256&usb_0_qmpphy_dp_in {
1257 remote-endpoint = <&mdss0_dp0_out>;
1258};
1259
1260&usb_0_qmpphy_out {
1261 remote-endpoint = <&pmic_glink_con0_ss>;
1262};
1263
Tom Rini53633a82024-02-29 12:33:36 -05001264&usb_1 {
1265 status = "okay";
1266};
1267
1268&usb_1_dwc3 {
1269 dr_mode = "host";
1270};
1271
Tom Rini6b642ac2024-10-01 12:20:28 -06001272&usb_1_dwc3_hs {
1273 remote-endpoint = <&pmic_glink_con1_hs>;
1274};
1275
Tom Rini53633a82024-02-29 12:33:36 -05001276&usb_1_hsphy {
1277 vdda-pll-supply = <&vreg_l4b>;
1278 vdda18-supply = <&vreg_l1c>;
1279 vdda33-supply = <&vreg_l13c>;
1280
1281 status = "okay";
1282};
1283
1284&usb_1_qmpphy {
1285 vdda-phy-supply = <&vreg_l4b>;
1286 vdda-pll-supply = <&vreg_l3b>;
1287
1288 orientation-switch;
1289
1290 status = "okay";
1291};
1292
1293&usb_1_qmpphy_dp_in {
1294 remote-endpoint = <&mdss0_dp1_out>;
1295};
1296
1297&usb_1_qmpphy_out {
1298 remote-endpoint = <&pmic_glink_con1_ss>;
1299};
1300
Tom Rini762f85b2024-07-20 11:15:10 -06001301&usb_2 {
1302 status = "okay";
1303};
1304
1305&usb_2_hsphy0 {
1306 vdda-pll-supply = <&vreg_l1b>;
1307 vdda18-supply = <&vreg_l1c>;
1308 vdda33-supply = <&vreg_l7d>;
1309
1310 status = "okay";
1311};
1312
1313&usb_2_hsphy1 {
1314 vdda-pll-supply = <&vreg_l8d>;
1315 vdda18-supply = <&vreg_l1c>;
1316 vdda33-supply = <&vreg_l7d>;
1317
1318 status = "okay";
1319};
1320
1321&usb_2_hsphy2 {
1322 vdda-pll-supply = <&vreg_l10d>;
1323 vdda18-supply = <&vreg_l8c>;
1324 vdda33-supply = <&vreg_l2d>;
1325
1326 status = "okay";
1327};
1328
1329&usb_2_hsphy3 {
1330 vdda-pll-supply = <&vreg_l10d>;
1331 vdda18-supply = <&vreg_l8c>;
1332 vdda33-supply = <&vreg_l2d>;
1333
1334 status = "okay";
1335};
1336
1337&usb_2_qmpphy0 {
1338 vdda-phy-supply = <&vreg_l1b>;
1339 vdda-pll-supply = <&vreg_l4d>;
1340
1341 status = "okay";
1342};
1343
1344&usb_2_qmpphy1 {
1345 vdda-phy-supply = <&vreg_l8d>;
1346 vdda-pll-supply = <&vreg_l4d>;
1347
1348 status = "okay";
1349};
1350
Tom Rini53633a82024-02-29 12:33:36 -05001351&vamacro {
Tom Rini6bb92fc2024-05-20 09:54:58 -06001352 pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
Tom Rini53633a82024-02-29 12:33:36 -05001353 pinctrl-names = "default";
1354
1355 vdd-micb-supply = <&vreg_s10b>;
1356
1357 qcom,dmic-sample-rate = <4800000>;
1358
1359 status = "okay";
1360};
1361
1362&wsamacro {
1363 status = "okay";
1364};
1365
1366&xo_board_clk {
1367 clock-frequency = <38400000>;
1368};
1369
1370/* PINCTRL */
1371
1372&lpass_tlmm {
1373 status = "okay";
1374};
1375
1376&pmc8280_1_gpios {
1377 edp_bl_en: edp-bl-en-state {
1378 pins = "gpio8";
1379 function = "normal";
1380 };
1381
1382 edp_bl_reg_en: edp-bl-reg-en-state {
1383 pins = "gpio9";
1384 function = "normal";
1385 };
1386
1387 misc_3p3_reg_en: misc-3p3-reg-en-state {
1388 pins = "gpio1";
1389 function = "normal";
1390 };
1391};
1392
1393&pmc8280_2_gpios {
1394 wwan_sw_en: wwan-sw-en-state {
1395 pins = "gpio1";
1396 function = "normal";
1397 };
1398};
1399
1400&pmc8280c_gpios {
1401 edp_bl_pwm: edp-bl-pwm-state {
1402 pins = "gpio8";
1403 function = "func1";
1404 };
1405};
1406
1407&pmr735a_gpios {
1408 hastings_reg_en: hastings-reg-en-state {
1409 pins = "gpio1";
1410 function = "normal";
1411 };
1412};
1413
1414&tlmm {
1415 gpio-reserved-ranges = <70 2>, <74 6>, <125 2>, <128 2>, <154 4>;
1416
1417 bt_default: bt-default-state {
1418 hstp-bt-en-pins {
1419 pins = "gpio133";
1420 function = "gpio";
1421 drive-strength = <16>;
1422 bias-disable;
1423 };
1424
1425 hstp-sw-ctrl-pins {
1426 pins = "gpio132";
1427 function = "gpio";
1428 bias-pull-down;
1429 };
1430 };
1431
Tom Rini93743d22024-04-01 09:08:13 -04001432 cam_indicator_en: cam-indicator-en-state {
1433 pins = "gpio28";
1434 function = "gpio";
1435 drive-strength = <2>;
1436 bias-disable;
1437 };
1438
Tom Rini53633a82024-02-29 12:33:36 -05001439 edp_reg_en: edp-reg-en-state {
1440 pins = "gpio25";
1441 function = "gpio";
1442 drive-strength = <16>;
1443 bias-disable;
1444 };
1445
1446 hall_int_n_default: hall-int-n-state {
1447 pins = "gpio107";
1448 function = "gpio";
1449 bias-disable;
1450 };
1451
1452 i2c4_default: i2c4-default-state {
1453 pins = "gpio171", "gpio172";
1454 function = "qup4";
1455 drive-strength = <16>;
1456 bias-disable;
1457 };
1458
Tom Rini6b642ac2024-10-01 12:20:28 -06001459 i2c11_default: i2c11-default-state {
1460 pins = "gpio18", "gpio19";
1461 function = "qup11";
1462 drive-strength = <16>;
1463 bias-disable;
1464 };
1465
Tom Rini53633a82024-02-29 12:33:36 -05001466 i2c21_default: i2c21-default-state {
1467 pins = "gpio81", "gpio82";
1468 function = "qup21";
1469 drive-strength = <16>;
1470 bias-disable;
1471 };
1472
1473 kybd_default: kybd-default-state {
1474 disable-pins {
1475 pins = "gpio102";
1476 function = "gpio";
1477 output-low;
1478 };
1479
1480 int-n-pins {
1481 pins = "gpio104";
1482 function = "gpio";
1483 bias-disable;
1484 };
1485
1486 reset-pins {
1487 pins = "gpio105";
1488 function = "gpio";
1489 bias-disable;
1490 };
1491 };
1492
1493 nvme_reg_en: nvme-reg-en-state {
1494 pins = "gpio135";
1495 function = "gpio";
1496 drive-strength = <2>;
1497 bias-disable;
1498 };
1499
1500 pcie2a_default: pcie2a-default-state {
1501 clkreq-n-pins {
1502 pins = "gpio142";
1503 function = "pcie2a_clkreq";
1504 drive-strength = <2>;
1505 bias-pull-up;
1506 };
1507
1508 perst-n-pins {
1509 pins = "gpio143";
1510 function = "gpio";
1511 drive-strength = <2>;
1512 bias-pull-down;
1513 };
1514
1515 wake-n-pins {
1516 pins = "gpio145";
1517 function = "gpio";
1518 drive-strength = <2>;
1519 bias-pull-up;
1520 };
1521 };
1522
1523 pcie3a_default: pcie3a-default-state {
1524 clkreq-n-pins {
1525 pins = "gpio150";
1526 function = "pcie3a_clkreq";
1527 drive-strength = <2>;
1528 bias-pull-up;
1529 };
1530
1531 perst-n-pins {
1532 pins = "gpio151";
1533 function = "gpio";
1534 drive-strength = <2>;
1535 bias-pull-down;
1536 };
1537
1538 wake-n-pins {
1539 pins = "gpio148";
1540 function = "gpio";
1541 drive-strength = <2>;
1542 bias-pull-up;
1543 };
1544 };
1545
1546 pcie4_default: pcie4-default-state {
1547 clkreq-n-pins {
1548 pins = "gpio140";
1549 function = "pcie4_clkreq";
1550 drive-strength = <2>;
1551 bias-pull-up;
1552 };
1553
1554 perst-n-pins {
1555 pins = "gpio141";
1556 function = "gpio";
1557 drive-strength = <2>;
1558 bias-pull-down;
1559 };
1560
1561 wake-n-pins {
1562 pins = "gpio139";
1563 function = "gpio";
1564 drive-strength = <2>;
1565 bias-pull-up;
1566 };
1567 };
1568
Tom Rini6b642ac2024-10-01 12:20:28 -06001569 pm8008_default: pm8008-default-state {
1570 int-pins {
1571 pins = "gpio41";
1572 function = "gpio";
1573 drive-strength = <2>;
1574 bias-pull-down;
1575 };
1576
1577 reset-n-pins {
1578 pins = "gpio42";
1579 function = "gpio";
1580 drive-strength = <2>;
1581 bias-disable;
1582 };
1583 };
1584
Tom Rini53633a82024-02-29 12:33:36 -05001585 spkr_1_sd_n_default: spkr-1-sd-n-default-state {
1586 perst-n-pins {
1587 pins = "gpio178";
1588 function = "gpio";
1589 drive-strength = <16>;
1590 bias-disable;
1591 output-high;
1592 };
1593 };
1594
1595 spkr_2_sd_n_default: spkr-2-sd-n-default-state {
1596 perst-n-pins {
1597 pins = "gpio179";
1598 function = "gpio";
1599 drive-strength = <16>;
1600 bias-disable;
1601 output-high;
1602 };
1603 };
1604
1605 tpad_default: tpad-default-state {
1606 int-n-pins {
1607 pins = "gpio182";
1608 function = "gpio";
1609 bias-disable;
1610 };
1611 };
1612
1613 ts0_default: ts0-default-state {
1614 int-n-pins {
1615 pins = "gpio175";
1616 function = "gpio";
1617 bias-disable;
1618 };
1619
1620 reset-n-pins {
1621 pins = "gpio99";
1622 function = "gpio";
Tom Rini762f85b2024-07-20 11:15:10 -06001623 drive-strength = <2>;
1624 bias-disable;
Tom Rini53633a82024-02-29 12:33:36 -05001625 };
1626 };
1627
1628 uart2_default: uart2-default-state {
1629 cts-pins {
1630 pins = "gpio121";
1631 function = "qup2";
1632 bias-bus-hold;
1633 };
1634
1635 rts-pins {
1636 pins = "gpio122";
1637 function = "qup2";
1638 drive-strength = <2>;
1639 bias-disable;
1640 };
1641
1642 rx-pins {
1643 pins = "gpio124";
1644 function = "qup2";
1645 bias-pull-up;
1646 };
1647
1648 tx-pins {
1649 pins = "gpio123";
1650 function = "qup2";
1651 drive-strength = <2>;
1652 bias-disable;
1653 };
1654 };
1655
1656 usb0_sbu_default: usb0-sbu-state {
1657 oe-n-pins {
1658 pins = "gpio101";
1659 function = "gpio";
1660 bias-disable;
1661 drive-strength = <16>;
1662 output-high;
1663 };
1664
1665 sel-pins {
1666 pins = "gpio164";
1667 function = "gpio";
1668 bias-disable;
1669 drive-strength = <16>;
1670 };
1671 };
1672
1673 usb1_sbu_default: usb1-sbu-state {
1674 oe-n-pins {
1675 pins = "gpio48";
1676 function = "gpio";
1677 bias-disable;
1678 drive-strength = <16>;
1679 output-high;
1680 };
1681
1682 sel-pins {
1683 pins = "gpio47";
1684 function = "gpio";
1685 bias-disable;
1686 drive-strength = <16>;
1687 };
1688 };
1689
1690 wcd_default: wcd-default-state {
1691 reset-pins {
1692 pins = "gpio106";
1693 function = "gpio";
1694 bias-disable;
1695 };
1696 };
1697};