Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3588s-gameforce-ace.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3 /dts-v1/;
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/pwm/pwm.h>
10 #include <dt-bindings/soc/rockchip,vop2.h>
11 #include <dt-bindings/thermal/thermal.h>
12 #include <dt-bindings/usb/pd.h>
13 #include "rk3588s.dtsi"
14
15 / {
16 model = "Gameforce Ace";
17 chassis-type = "handset";
18 compatible = "gameforce,ace", "rockchip,rk3588s";
19
20 aliases {
21 mmc0 = &sdhci;
22 mmc1 = &sdmmc;
23 mmc2 = &sdio;
24 };
25
26 chosen {
27 stdout-path = "serial2:1500000n8";
28 };
29
30 adc_keys: adc-keys {
31 compatible = "adc-keys";
32 io-channels = <&saradc 1>;
33 io-channel-names = "buttons";
34 keyup-threshold-microvolt = <1800000>;
35 poll-interval = <60>;
36
37 button-vol-up {
38 label = "VOLUMEUP";
39 linux,code = <KEY_VOLUMEUP>;
40 press-threshold-microvolt = <17000>;
41 };
42
43 button-vol-down {
44 label = "VOLUMEDOWN";
45 linux,code = <KEY_VOLUMEDOWN>;
46 press-threshold-microvolt = <417000>;
47 };
48 };
49
50 /* Joystick range values based on hardware observation. */
51 adc_joystick: adc-joystick {
52 compatible = "adc-joystick";
53 io-channels = <&saradc 2>, <&saradc 3>,
54 <&saradc 4>, <&saradc 5>;
55 poll-interval = <60>;
56 #address-cells = <1>;
57 #size-cells = <0>;
58
59 axis@0 {
60 reg = <0>;
61 abs-flat = <40>;
62 abs-fuzz = <30>;
63 abs-range = <0 4095>;
64 linux,code = <ABS_RX>;
65 };
66
67 axis@1 {
68 reg = <1>;
69 abs-flat = <40>;
70 abs-fuzz = <30>;
71 abs-range = <0 4095>;
72 linux,code = <ABS_RY>;
73 };
74
75 axis@2 {
76 reg = <2>;
77 abs-flat = <40>;
78 abs-fuzz = <30>;
79 abs-range = <0 4095>;
80 linux,code = <ABS_Y>;
81 };
82
83 axis@3 {
84 reg = <3>;
85 abs-flat = <40>;
86 abs-fuzz = <30>;
87 abs-range = <0 4095>;
88 linux,code = <ABS_X>;
89 };
90 };
91
92 /* Trigger range values based on hardware observation. */
93 adc_triggers: adc-trigger {
94 compatible = "adc-joystick";
95 io-channels = <&ti_adc 6>,
96 <&ti_adc 7>;
97 poll-interval = <60>;
98 #address-cells = <1>;
99 #size-cells = <0>;
100
101 axis@0 {
102 reg = <0>;
103 abs-flat = <15>;
104 abs-fuzz = <15>;
105 abs-range = <890 1530>;
106 linux,code = <ABS_HAT2X>;
107 };
108
109 axis@1 {
110 reg = <1>;
111 abs-flat = <15>;
112 abs-fuzz = <15>;
113 abs-range = <1010 1550>;
114 linux,code = <ABS_HAT2Y>;
115 };
116 };
117
118 analog-sound {
119 compatible = "simple-audio-card";
120 pinctrl-0 = <&hp_detect>;
121 pinctrl-names = "default";
122 simple-audio-card,aux-devs = <&amp_headphone>, <&amp_speaker>;
123 simple-audio-card,bitclock-master = <&masterdai>;
124 simple-audio-card,format = "i2s";
125 simple-audio-card,frame-master = <&masterdai>;
126 simple-audio-card,hp-det-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;
127 simple-audio-card,mclk-fs = <256>;
128 simple-audio-card,name = "rockchip,es8388-codec";
129 simple-audio-card,pin-switches = "Headphones", "Speaker";
130 simple-audio-card,routing =
131 "Speaker Amplifier INL", "LOUT2",
132 "Speaker Amplifier INR", "ROUT2",
133 "Speaker", "Speaker Amplifier OUTL",
134 "Speaker", "Speaker Amplifier OUTR",
135 "Headphones Amplifier INL", "LOUT1",
136 "Headphones Amplifier INR", "ROUT1",
137 "Headphones", "Headphones Amplifier OUTL",
138 "Headphones", "Headphones Amplifier OUTR",
139 "LINPUT1", "Microphone Jack",
140 "RINPUT1", "Microphone Jack",
141 "LINPUT2", "Onboard Microphone",
142 "RINPUT2", "Onboard Microphone";
143 simple-audio-card,widgets =
144 "Microphone", "Microphone Jack",
145 "Microphone", "Onboard Microphone",
146 "Headphone", "Headphones",
147 "Speaker", "Speaker";
148
149 masterdai: simple-audio-card,codec {
150 sound-dai = <&es8388>;
151 system-clock-frequency = <12288000>;
152 };
153
154 simple-audio-card,cpu {
155 sound-dai = <&i2s0_8ch>;
156 };
157 };
158
159 backlight: backlight {
160 compatible = "pwm-backlight";
161 enable-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
162 pinctrl-0 = <&lcd_bl_en>;
163 pinctrl-names = "default";
164 pwms = <&pwm13 0 25000 PWM_POLARITY_INVERTED>;
165 };
166
167 battery: battery {
168 compatible = "simple-battery";
169 charge-full-design-microamp-hours = <3700000>;
170 constant-charge-current-max-microamp = <2500000>;
171 constant-charge-voltage-max-microvolt = <8750000>;
172 voltage-min-design-microvolt = <7400000>;
173 };
174
175 gpio_keys: gpio-keys {
176 compatible = "gpio-keys";
177 pinctrl-0 = <&btn_pins_ctrl>;
178 pinctrl-names = "default";
179
180 button-a {
181 gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
182 label = "EAST";
183 linux,code = <BTN_EAST>;
184 };
185
186 button-b {
187 gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_LOW>;
188 label = "SOUTH";
189 linux,code = <BTN_SOUTH>;
190 };
191
192 button-down {
193 gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>;
194 label = "DPAD-DOWN";
195 linux,code = <BTN_DPAD_DOWN>;
196 };
197
198 button-home {
199 gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_LOW>;
200 label = "FUNCTION";
201 linux,code = <BTN_MODE>;
202 };
203
204 button-l1 {
205 gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>;
206 label = "L1";
207 linux,code = <BTN_TL>;
208 };
209
210 button-left {
211 gpios = <&gpio1 RK_PD7 GPIO_ACTIVE_LOW>;
212 label = "DPAD-LEFT";
213 linux,code = <BTN_DPAD_LEFT>;
214 };
215
216 button-menu {
217 gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>;
218 label = "HOME";
219 linux,code = <KEY_HOME>;
220 };
221
222 button-r1 {
223 gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>;
224 label = "R1";
225 linux,code = <BTN_TR>;
226 };
227
228 button-right {
229 gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_LOW>;
230 label = "DPAD-RIGHT";
231 linux,code = <BTN_DPAD_RIGHT>;
232 };
233
234 button-select {
235 gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_LOW>;
236 label = "SELECT";
237 linux,code = <BTN_SELECT>;
238 };
239
240 button-start {
241 gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
242 label = "START";
243 linux,code = <BTN_START>;
244 };
245
246 button-thumbl {
247 gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>;
248 label = "THUMBL";
249 linux,code = <BTN_THUMBL>;
250 };
251
252 button-thumbr {
253 gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>;
254 label = "THUMBR";
255 linux,code = <BTN_THUMBR>;
256 };
257
258 button-up {
259 gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_LOW>;
260 label = "DPAD-UP";
261 linux,code = <BTN_DPAD_UP>;
262 };
263
264 button-x {
265 gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
266 label = "NORTH";
267 linux,code = <BTN_NORTH>;
268 };
269
270 button-y {
271 gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_LOW>;
272 label = "WEST";
273 linux,code = <BTN_WEST>;
274 };
275 };
276
277 gpio_leds: gpio-leds {
278 compatible = "gpio-leds";
279 pinctrl-names = "default";
280 pinctrl-0 = <&led_pins>;
281
282 green_led: led-0 {
283 color = <LED_COLOR_ID_GREEN>;
284 gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
285 function = LED_FUNCTION_STATUS;
286 };
287
288 red_led: led-1 {
289 color = <LED_COLOR_ID_RED>;
290 gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
291 function = LED_FUNCTION_CHARGING;
292 };
293 };
294
295 amp_headphone: headphone-amplifier {
296 compatible = "simple-audio-amplifier";
297 enable-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
298 pinctrl-0 = <&headphone_amplifier_en>;
299 pinctrl-names = "default";
300 sound-name-prefix = "Headphones Amplifier";
301 };
302
303 hdmi0-con {
304 compatible = "hdmi-connector";
305 ddc-en-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
306 pinctrl-0 = <&hdmi0_en>;
307 pinctrl-names = "default";
308 type = "d";
309
310 port {
311 hdmi0_con_in: endpoint {
312 remote-endpoint = <&hdmi0_out_con>;
313 };
314 };
315 };
316
317 pwm_fan: pwm-fan {
318 compatible = "pwm-fan";
319 #cooling-cells = <2>;
320 cooling-levels = <0 120 150 180 210 240 255>;
321 fan-supply = <&vcc5v0_sys>;
322 interrupt-parent = <&gpio4>;
323 interrupts = <RK_PB2 IRQ_TYPE_EDGE_RISING>;
324 pulses-per-revolution = <4>;
325 pwms = <&pwm12 0 50000 PWM_POLARITY_INVERTED>;
326 };
327
328 pwm_gpio33: pwm-33 {
329 compatible = "pwm-gpio";
330 gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
331 pinctrl-0 = <&vib_right_h>;
332 pinctrl-names = "default";
333 #pwm-cells = <3>;
334 };
335
336 pwm_gpio132: pwm-132 {
337 compatible = "pwm-gpio";
338 gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
339 pinctrl-0 = <&vib_left_h>;
340 pinctrl-names = "default";
341 #pwm-cells = <3>;
342 };
343
344 sdio_pwrseq: sdio-pwrseq {
345 compatible = "mmc-pwrseq-simple";
346 clock-names = "ext_clock";
347 clocks = <&rtc_hym8563>;
348 pinctrl-0 = <&wifi_enable_h>;
349 pinctrl-names = "default";
350 post-power-on-delay-ms = <200>;
351 power-off-delay-us = <5000000>;
352 reset-gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_LOW>;
353 };
354
355 amp_speaker: speaker-amplifier {
356 compatible = "simple-audio-amplifier";
357 enable-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
358 pinctrl-0 = <&speaker_amplifier_en>;
359 pinctrl-names = "default";
360 sound-name-prefix = "Speaker Amplifier";
361 VCC-supply = <&vcc5v0_spk>;
362 };
363
364 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
365 compatible = "regulator-fixed";
366 regulator-always-on;
367 regulator-boot-on;
368 regulator-max-microvolt = <1100000>;
369 regulator-min-microvolt = <1100000>;
370 regulator-name = "vcc_1v1_nldo_s3";
371 vin-supply = <&vcc5v0_sys>;
372 };
373
374 vcc3v3_lcd0_n: regulator-vcc3v3-lcd0-n {
375 compatible = "regulator-fixed";
376 enable-active-high;
377 gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
378 pinctrl-0 = <&vcc_lcd_h>;
379 pinctrl-names = "default";
380 regulator-max-microvolt = <3300000>;
381 regulator-min-microvolt = <3300000>;
382 regulator-name = "vcc3v3_lcd0_n";
383 vin-supply = <&vcc_3v3_s3>;
384 regulator-state-mem {
385 regulator-off-in-suspend;
386 };
387 };
388
389 vcc_3v3_sd_s0: regulator-vcc-3v3-sd-s0 {
390 compatible = "regulator-fixed";
391 enable-active-high;
392 gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
393 pinctrl-0 = <&sd_s0_pwr>;
394 pinctrl-names = "default";
395 regulator-max-microvolt = <3000000>;
396 regulator-min-microvolt = <3000000>;
397 regulator-name = "vcc_3v3_sd_s0";
398 vin-supply = <&vcc_3v3_s3>;
399 };
400
401 vcc5v0_spk: regulator-vcc5v0-spk {
402 compatible = "regulator-fixed";
403 enable-active-high;
404 gpio = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
405 pinctrl-0 = <&vcc5v0_spk_pwr>;
406 pinctrl-names = "default";
407 regulator-max-microvolt = <5000000>;
408 regulator-min-microvolt = <5000000>;
409 regulator-name = "vcc5v0_spk";
410 vin-supply = <&vcc5v0_sys>;
411 regulator-state-mem {
412 regulator-off-in-suspend;
413 };
414 };
415
416 vcc5v0_sys: regulator-vcc5v0-sys {
417 compatible = "regulator-fixed";
418 regulator-always-on;
419 regulator-boot-on;
420 regulator-max-microvolt = <5000000>;
421 regulator-min-microvolt = <5000000>;
422 regulator-name = "vcc5v0_sys";
423 };
424
425 vibrator_l: vibrator-l {
426 compatible = "pwm-vibrator";
427 pwm-names = "enable";
428 pwms = <&pwm_gpio132 0 20000000 0>;
429 };
430
431 vibrator_r: vibrator-r {
432 compatible = "pwm-vibrator";
433 pwm-names = "enable";
434 pwms = <&pwm_gpio33 0 20000000 0>;
435 };
436 };
437
438 &combphy2_psu {
439 status = "okay";
440 };
441
442 &cpu_l0 {
443 cpu-supply = <&vdd_cpu_lit_s0>;
444 };
445
446 &cpu_l1 {
447 cpu-supply = <&vdd_cpu_lit_s0>;
448 };
449
450 &cpu_l2 {
451 cpu-supply = <&vdd_cpu_lit_s0>;
452 };
453
454 &cpu_l3 {
455 cpu-supply = <&vdd_cpu_lit_s0>;
456 };
457
458 &cpu_b0 {
459 cpu-supply = <&vdd_cpu_big0_s0>;
460 };
461
462 &cpu_b1 {
463 cpu-supply = <&vdd_cpu_big0_s0>;
464 };
465
466 &cpu_b2 {
467 cpu-supply = <&vdd_cpu_big1_s0>;
468 };
469
470 &cpu_b3 {
471 cpu-supply = <&vdd_cpu_big1_s0>;
472 };
473
474 &dsi0 {
475 #address-cells = <1>;
476 #size-cells = <0>;
477 status = "okay";
478
479 panel@0 {
480 compatible = "huiling,hl055fhav028c", "himax,hx8399c";
481 reg = <0>;
482 backlight = <&backlight>;
483 iovcc-supply = <&vcc3v3_lcd0_n>;
484 pinctrl-0 = <&lcd_rst>;
485 pinctrl-names = "default";
486 reset-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
487 rotation = <90>;
488 vcc-supply = <&vcc3v3_lcd0_n>;
489
490 port {
491 mipi_panel_in: endpoint {
492 remote-endpoint = <&dsi0_out_panel>;
493 };
494 };
495 };
496 };
497
498 &dsi0_in {
499 dsi0_in_vp3: endpoint {
500 remote-endpoint = <&vp3_out_dsi0>;
501 };
502 };
503
504 &dsi0_out {
505 dsi0_out_panel: endpoint {
506 remote-endpoint = <&mipi_panel_in>;
507 };
508 };
509
510 &gpu {
511 mali-supply = <&vdd_gpu_s0>;
512 status = "okay";
513 };
514
515 &hdmi0 {
516 no-hpd;
517 pinctrl-0 = <&hdmim0_tx0_cec>, <&hdmim0_tx0_scl>,
518 <&hdmim0_tx0_sda>;
519 pinctrl-names = "default";
520 status = "okay";
521 };
522
523 &hdmi0_in {
524 hdmi0_in_vp0: endpoint {
525 remote-endpoint = <&vp0_out_hdmi0>;
526 };
527 };
528
529 &hdmi0_out {
530 hdmi0_out_con: endpoint {
531 remote-endpoint = <&hdmi0_con_in>;
532 };
533 };
534
535 &hdmi0_sound {
536 status = "okay";
537 };
538
539 &hdptxphy0 {
540 status = "okay";
541 };
542
543 &i2c0 {
544 pinctrl-0 = <&i2c0m2_xfer>;
545 pinctrl-names = "default";
546 status = "okay";
547
548 vdd_cpu_big0_s0: regulator@42 {
549 compatible = "rockchip,rk8602";
550 reg = <0x42>;
551 fcs,suspend-voltage-selector = <1>;
552 regulator-max-microvolt = <1050000>;
553 regulator-min-microvolt = <550000>;
554 regulator-name = "vdd_cpu_big0_s0";
555 regulator-ramp-delay = <2300>;
556 vin-supply = <&vcc5v0_sys>;
557
558 regulator-state-mem {
559 regulator-off-in-suspend;
560 };
561 };
562
563 vdd_cpu_big1_s0: regulator@43 {
564 compatible = "rockchip,rk8603", "rockchip,rk8602";
565 reg = <0x43>;
566 fcs,suspend-voltage-selector = <1>;
567 regulator-max-microvolt = <1050000>;
568 regulator-min-microvolt = <550000>;
569 regulator-name = "vdd_cpu_big1_s0";
570 regulator-ramp-delay = <2300>;
571 vin-supply = <&vcc5v0_sys>;
572
573 regulator-state-mem {
574 regulator-off-in-suspend;
575 };
576 };
577 };
578
579 &i2c2 {
580 status = "okay";
581
582 vdd_npu_s0: regulator@42 {
583 compatible = "rockchip,rk8602";
584 reg = <0x42>;
585 fcs,suspend-voltage-selector = <1>;
586 regulator-max-microvolt = <950000>;
587 regulator-min-microvolt = <550000>;
588 regulator-name = "vdd_npu_s0";
589 regulator-ramp-delay = <2300>;
590 vin-supply = <&vcc5v0_sys>;
591
592 regulator-state-mem {
593 regulator-off-in-suspend;
594 };
595 };
596 };
597
598 &i2c3 {
599 status = "okay";
600
601 touchscreen@14 {
602 compatible = "goodix,gt911";
603 reg = <0x14>;
604 interrupt-parent = <&gpio1>;
605 interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
606 irq-gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
607 pinctrl-0 = <&touch_int>, <&touch_rst>;
608 pinctrl-names = "default";
609 reset-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
610 touchscreen-inverted-x;
611 touchscreen-size-x = <1080>;
612 touchscreen-size-y = <1920>;
613 touchscreen-swapped-x-y;
614 };
615 };
616
617 &i2c4 {
618 pinctrl-0 = <&i2c4m2_xfer>;
619 status = "okay";
620
621 ti_adc: adc@48 {
622 compatible = "ti,ads1015";
623 reg = <0x48>;
624 #address-cells = <1>;
625 #io-channel-cells = <1>;
626 #size-cells = <0>;
627
628 channel@4 {
629 reg = <4>;
630 };
631
632 channel@5 {
633 reg = <5>;
634 };
635
636 channel@6 {
637 reg = <6>;
638 };
639
640 channel@7 {
641 reg = <7>;
642 };
643 };
644
645 imu@68 {
646 compatible = "invensense,mpu6880";
647 reg = <0x68>;
648 interrupt-parent = <&gpio0>;
649 interrupts = <RK_PD3 IRQ_TYPE_EDGE_RISING>;
650 };
651 };
652
653 &i2c6 {
654 pinctrl-0 = <&i2c6m3_xfer>;
655 status = "okay";
656
657 fusb302: typec@22 {
658 compatible = "fcs,fusb302";
659 reg = <0x22>;
660 interrupt-parent = <&gpio0>;
661 interrupts = <RK_PC7 IRQ_TYPE_LEVEL_LOW>;
662 pinctrl-0 = <&usbc0_int>;
663 pinctrl-names = "default";
664 vbus-supply = <&usb_otg_vbus>;
665
666 connector {
667 compatible = "usb-c-connector";
668 data-role = "dual";
669 label = "USB-C";
670 op-sink-microwatt = <1000000>;
671 power-role = "dual";
672 self-powered;
673 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
674 PDO_FIXED(9000, 3000, PDO_FIXED_USB_COMM)
675 PDO_FIXED(12000, 3000, PDO_FIXED_USB_COMM)>;
676 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
677 try-power-role = "sink";
678
679 ports {
680 #address-cells = <1>;
681 #size-cells = <0>;
682
683 port@0 {
684 reg = <0>;
685 usbc0_orien_sw: endpoint {
686 remote-endpoint = <&usbdp_phy0_orientation_switch>;
687 };
688 };
689
690 port@1 {
691 reg = <1>;
692 usbc0_role_sw: endpoint {
693 remote-endpoint = <&dwc3_0_role_switch>;
694 };
695 };
696
697 port@2 {
698 reg = <2>;
699 dp_altmode_mux: endpoint {
700 remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
701 };
702 };
703 };
704 };
705 };
706
707 rtc_hym8563: rtc@51 {
708 compatible = "haoyu,hym8563";
709 reg = <0x51>;
710 #clock-cells = <0>;
711 clock-output-names = "hym8563";
712 interrupt-parent = <&gpio0>;
713 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
714 pinctrl-0 = <&hym8563_int>, <&clk32k_in>;
715 pinctrl-names = "default";
716 wakeup-source;
717 };
718
719 /* Battery profile from BSP device tree. */
720 battery@62 {
721 compatible = "cellwise,cw2015";
722 reg = <0x62>;
723
724 cellwise,battery-profile = /bits/ 8
725 <0x18 0x0A 0x76 0x6A 0x6A 0x6A 0x68 0x66
726 0x62 0x5E 0x5A 0x58 0x5F 0x59 0x46 0x3D
727 0x35 0x2D 0x28 0x21 0x29 0x38 0x44 0x50
728 0x1A 0x85 0x07 0xAE 0x14 0x28 0x48 0x56
729 0x66 0x66 0x66 0x6A 0x3E 0x1A 0x6C 0x3D
730 0x09 0x38 0x1A 0x49 0x7B 0x96 0xA2 0x15
731 0x3B 0x77 0x9A 0xB1 0x80 0x87 0xB0 0xCB
732 0x2F 0x00 0x64 0xA5 0xB5 0x1C 0xF0 0x49>;
733 cellwise,monitor-interval-ms = <5000>;
734 monitored-battery = <&battery>;
735 power-supplies = <&bq25703>;
736 status = "okay";
737 };
738
739 bq25703: charger@6b {
740 compatible = "ti,bq25703a";
741 reg = <0x6b>;
742 input-current-limit-microamp = <5000000>;
743 interrupt-parent = <&gpio0>;
744 interrupts = <RK_PD5 IRQ_TYPE_LEVEL_LOW>;
745 monitored-battery = <&battery>;
746 pinctrl-0 = <&charger_int_h>;
747 pinctrl-names = "default";
748 power-supplies = <&fusb302>;
749
750 regulators {
751 usb_otg_vbus: vbus {
752 enable-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
753 pinctrl-0 = <&boost_enable_h>;
754 pinctrl-names = "default";
755 regulator-max-microamp = <960000>;
756 regulator-max-microvolt = <5088000>;
757 regulator-min-microamp = <512000>;
758 regulator-min-microvolt = <4992000>;
759 regulator-name = "usb_otg_vbus";
760 };
761 };
762 };
763 };
764
765 &i2c7 {
766 status = "okay";
767
768 es8388: audio-codec@11 {
769 compatible = "everest,es8388", "everest,es8328";
770 reg = <0x11>;
771 assigned-clock-rates = <12288000>;
772 assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
773 AVDD-supply = <&vcc_3v3_s3>;
774 clocks = <&cru I2S0_8CH_MCLKOUT>;
775 DVDD-supply = <&vcc_1v8_s3>;
776 HPVDD-supply = <&vcc_3v3_s3>;
777 PVDD-supply = <&vcc_1v8_s3>;
778 #sound-dai-cells = <0>;
779 };
780 };
781
782 &i2s0_8ch {
783 pinctrl-0 = <&i2s0_lrck
784 &i2s0_mclk
785 &i2s0_sclk
786 &i2s0_sdi0
787 &i2s0_sdo0>;
788 status = "okay";
789 };
790
791 &i2s5_8ch {
792 status = "okay";
793 };
794
795 &mipidcphy0 {
796 status = "okay";
797 };
798
799 &package_thermal {
800 polling-delay = <1000>;
801
802 trips {
803 package_fan0: package-fan0 {
804 temperature = <55000>;
805 hysteresis = <2000>;
806 type = "active";
807 };
808
809 package_fan1: package-fan1 {
810 temperature = <65000>;
811 hysteresis = <2000>;
812 type = "active";
813 };
814 };
815
816 cooling-maps {
817 map1 {
818 trip = <&package_fan0>;
819 cooling-device = <&pwm_fan THERMAL_NO_LIMIT 1>;
820 };
821
822 map2 {
823 trip = <&package_fan1>;
824 cooling-device = <&pwm_fan 2 THERMAL_NO_LIMIT>;
825 };
826 };
827 };
828
829 /*
830 * Attempts to use an M.2 SATA in this slot worked intermittently
831 * with the correct nodes enabled in device-tree, but eventually
832 * resulted in a destroyed board. Advise caution.
833 */
834 &pcie2x1l1 {
835 pinctrl-0 = <&pcie_rst>;
836 pinctrl-names = "default";
837 reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
838 status = "okay";
839 };
840
841 &pd_gpu {
842 domain-supply = <&vdd_gpu_s0>;
843 };
844
845 &pd_npu {
846 domain-supply = <&vdd_npu_s0>;
847 };
848
849 &pinctrl {
850 audio-amplifier {
851 headphone_amplifier_en: headphone-amplifier-en {
852 rockchip,pins =
853 <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
854 };
855
856 hp_detect: headphone-detect {
857 rockchip,pins =
858 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
859 };
860
861 speaker_amplifier_en: speaker-amplifier-en {
862 rockchip,pins =
863 <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
864 };
865 };
866
867 bt {
868 bt_enable_h: bt-enable-h {
869 rockchip,pins =
870 <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
871 };
872
873 bt_host_wake_l: bt-host-wake-l {
874 rockchip,pins =
875 <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
876 };
877
878 bt_wake_l: bt-wake-l {
879 rockchip,pins =
880 <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
881 };
882 };
883
884 charger {
885 boost_enable_h: boost-enable-h {
886 rockchip,pins =
887 <4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
888 };
889 charger_int_h: charger-int-h {
890 rockchip,pins =
891 <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
892 };
893 };
894
895 hdmi {
896 hdmi0_en: hdmi0-en {
897 rockchip,pins =
898 <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
899 };
900 };
901
902 hym8563 {
903 hym8563_int: hym8563-int {
904 rockchip,pins =
905 <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
906 };
907 };
908
909 gpio-btns {
910 btn_pins_ctrl: btn-pins-ctrl {
911 rockchip,pins =
912 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>,
913 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>,
914 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>,
915 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>,
916 <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>,
917 <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>,
918 <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>,
919 <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
920 <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>,
921 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>,
922 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>,
923 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>,
924 <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>,
925 <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>,
926 <1 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>,
927 <1 RK_PD7 RK_FUNC_GPIO &pcfg_pull_up>;
928 };
929 };
930
931 gpio-leds {
932 led_pins: led-pins {
933 rockchip,pins =
934 <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>,
935 <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>;
936 };
937 };
938
939 lcd {
940 lcd_bl_en: lcd-bl-en {
941 rockchip,pins =
942 <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
943 };
944
945 lcd_rst: lcd-rst {
946 rockchip,pins =
947 <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
948 };
949 };
950
951 pcie-pins {
952 pcie_rst: pcie-rst {
953 rockchip,pins =
954 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;
955 };
956 };
957
958 sd-pwr {
959 sd_s0_pwr: sd-s0-pwr {
960 rockchip,pins =
961 <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
962 };
963 };
964
965 spk-pwr {
966 vcc5v0_spk_pwr: vcc5v0-spk-pwr {
967 rockchip,pins =
968 <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
969 };
970 };
971
972 touch {
973 touch_int: touch-int {
974 rockchip,pins =
975 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
976 };
977
978 touch_rst: touch-rst {
979 rockchip,pins =
980 <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
981 };
982 };
983
984 usb-typec {
985 usbc0_int: usbc0-int {
986 rockchip,pins =
987 <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
988 };
989
990 usbc_sbu_dc: usbc-sbu-dc {
991 rockchip,pins =
992 <4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,
993 <4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
994 };
995 };
996
997 vcc3v3-lcd {
998 vcc_lcd_h: vcc-lcd-h {
999 rockchip,pins =
1000 <4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
1001 };
1002 };
1003
1004 vibrator {
1005 vib_left_h: vib-left-h {
1006 rockchip,pins =
1007 <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
1008 };
1009
1010 vib_right_h: vib-right-h {
1011 rockchip,pins =
1012 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>;
1013 };
1014 };
1015
1016 wifi {
1017 wifi_enable_h: wifi-enable-h {
1018 rockchip,pins =
1019 <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
1020 };
1021
1022 wifi_host_wake_irq: wifi-host-wake-irq {
1023 rockchip,pins =
1024 <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
1025 };
1026 };
1027 };
1028
1029 &pwm12 {
1030 pinctrl-0 = <&pwm12m1_pins>;
1031 status = "okay";
1032 };
1033
1034 &pwm13 {
1035 pinctrl-0 = <&pwm13m1_pins>;
1036 status = "okay";
1037 };
1038
1039 &rknn_core_0 {
1040 npu-supply = <&vdd_npu_s0>;
1041 sram-supply = <&vdd_npu_s0>;
1042 status = "okay";
1043 };
1044
1045 &rknn_core_1 {
1046 npu-supply = <&vdd_npu_s0>;
1047 sram-supply = <&vdd_npu_s0>;
1048 status = "okay";
1049 };
1050
1051 &rknn_core_2 {
1052 npu-supply = <&vdd_npu_s0>;
1053 sram-supply = <&vdd_npu_s0>;
1054 status = "okay";
1055 };
1056
1057 &rknn_mmu_0 {
1058 status = "okay";
1059 };
1060
1061 &rknn_mmu_1 {
1062 status = "okay";
1063 };
1064
1065 &rknn_mmu_2 {
1066 status = "okay";
1067 };
1068
1069 &saradc {
1070 vref-supply = <&vcc_1v8_s0>;
1071 status = "okay";
1072 };
1073
1074 &sdhci {
1075 bus-width = <8>;
1076 mmc-hs400-1_8v;
1077 mmc-hs400-enhanced-strobe;
1078 no-sd;
1079 no-sdio;
1080 non-removable;
1081 status = "okay";
1082 };
1083
1084 &sdio {
1085 #address-cells = <1>;
1086 bus-width = <4>;
1087 cap-sd-highspeed;
1088 cap-sdio-irq;
1089 disable-wp;
1090 keep-power-in-suspend;
1091 max-frequency = <150000000>;
1092 mmc-pwrseq = <&sdio_pwrseq>;
1093 no-mmc;
1094 no-sd;
1095 sd-uhs-sdr104;
1096 #size-cells = <0>;
1097 status = "okay";
1098
1099 brcmf: wifi@1 {
1100 compatible = "brcm,bcm43456-fmac", "brcm,bcm4329-fmac";
1101 reg = <1>;
1102 interrupt-parent = <&gpio0>;
1103 interrupts = <RK_PA0 IRQ_TYPE_LEVEL_HIGH>;
1104 interrupt-names = "host-wake";
1105 pinctrl-0 = <&wifi_host_wake_irq>;
1106 pinctrl-names = "default";
1107 };
1108 };
1109
1110 &sdmmc {
1111 bus-width = <4>;
1112 cap-mmc-highspeed;
1113 cap-sd-highspeed;
1114 disable-wp;
1115 max-frequency = <150000000>;
1116 no-sdio;
1117 no-mmc;
1118 sd-uhs-sdr104;
1119 vmmc-supply = <&vcc_3v3_sd_s0>;
1120 vqmmc-supply = <&vccio_sd_s0>;
1121 status = "okay";
1122 };
1123
1124 &spi2 {
1125 #address-cells = <1>;
1126 assigned-clocks = <&cru CLK_SPI2>;
1127 assigned-clock-rates = <200000000>;
1128 num-cs = <1>;
1129 pinctrl-0 = <&spi2m2_pins>, <&spi2m2_cs0>;
1130 pinctrl-names = "default";
1131 #size-cells = <0>;
1132 status = "okay";
1133
1134 pmic@0 {
1135 compatible = "rockchip,rk806";
1136 reg = <0x0>;
1137 #gpio-cells = <2>;
1138 gpio-controller;
1139 interrupt-parent = <&gpio0>;
1140 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
1141 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
1142 <&rk806_dvs2_null>, <&rk806_dvs3_null>;
1143 pinctrl-names = "default";
1144 spi-max-frequency = <1000000>;
1145 system-power-controller;
1146
1147 vcc1-supply = <&vcc5v0_sys>;
1148 vcc2-supply = <&vcc5v0_sys>;
1149 vcc3-supply = <&vcc5v0_sys>;
1150 vcc4-supply = <&vcc5v0_sys>;
1151 vcc5-supply = <&vcc5v0_sys>;
1152 vcc6-supply = <&vcc5v0_sys>;
1153 vcc7-supply = <&vcc5v0_sys>;
1154 vcc8-supply = <&vcc5v0_sys>;
1155 vcc9-supply = <&vcc5v0_sys>;
1156 vcc10-supply = <&vcc5v0_sys>;
1157 vcc11-supply = <&vcc_2v0_pldo_s3>;
1158 vcc12-supply = <&vcc5v0_sys>;
1159 vcc13-supply = <&vcc_1v1_nldo_s3>;
1160 vcc14-supply = <&vcc_1v1_nldo_s3>;
1161 vcca-supply = <&vcc5v0_sys>;
1162
1163 rk806_dvs1_null: dvs1-null-pins {
1164 pins = "gpio_pwrctrl1";
1165 function = "pin_fun0";
1166 };
1167
1168 rk806_dvs2_null: dvs2-null-pins {
1169 pins = "gpio_pwrctrl2";
1170 function = "pin_fun0";
1171 };
1172
1173 rk806_dvs3_null: dvs3-null-pins {
1174 pins = "gpio_pwrctrl3";
1175 function = "pin_fun0";
1176 };
1177
1178 regulators {
1179 vdd_gpu_s0: dcdc-reg1 {
1180 regulator-boot-on;
1181 regulator-enable-ramp-delay = <400>;
1182 regulator-max-microvolt = <950000>;
1183 regulator-min-microvolt = <550000>;
1184 regulator-name = "vdd_gpu_s0";
1185 regulator-ramp-delay = <12500>;
1186 regulator-state-mem {
1187 regulator-off-in-suspend;
1188 };
1189 };
1190
1191 vdd_cpu_lit_s0: dcdc-reg2 {
1192 regulator-always-on;
1193 regulator-boot-on;
1194 regulator-max-microvolt = <950000>;
1195 regulator-min-microvolt = <550000>;
1196 regulator-ramp-delay = <12500>;
1197 regulator-name = "vdd_cpu_lit_s0";
1198 regulator-state-mem {
1199 regulator-off-in-suspend;
1200 };
1201 };
1202
1203 vdd_logic_s0: dcdc-reg3 {
1204 regulator-always-on;
1205 regulator-boot-on;
1206 regulator-max-microvolt = <750000>;
1207 regulator-min-microvolt = <675000>;
1208 regulator-name = "vdd_logic_s0";
1209 regulator-ramp-delay = <12500>;
1210 regulator-state-mem {
1211 regulator-on-in-suspend;
1212 regulator-suspend-microvolt = <750000>;
1213 };
1214 };
1215
1216 vdd_vdenc_s0: dcdc-reg4 {
1217 regulator-always-on;
1218 regulator-boot-on;
1219 regulator-max-microvolt = <950000>;
1220 regulator-min-microvolt = <550000>;
1221 regulator-name = "vdd_vdenc_s0";
1222 regulator-ramp-delay = <12500>;
1223 regulator-state-mem {
1224 regulator-off-in-suspend;
1225 };
1226 };
1227
1228 vdd_ddr_s0: dcdc-reg5 {
1229 regulator-always-on;
1230 regulator-boot-on;
1231 regulator-min-microvolt = <675000>;
1232 regulator-max-microvolt = <900000>;
1233 regulator-ramp-delay = <12500>;
1234 regulator-name = "vdd_ddr_s0";
1235 regulator-state-mem {
1236 regulator-off-in-suspend;
1237 regulator-suspend-microvolt = <850000>;
1238 };
1239 };
1240
1241 vdd2_ddr_s3: dcdc-reg6 {
1242 regulator-always-on;
1243 regulator-boot-on;
1244 regulator-name = "vdd2_ddr_s3";
1245 regulator-state-mem {
1246 regulator-on-in-suspend;
1247 };
1248 };
1249
1250 vcc_2v0_pldo_s3: dcdc-reg7 {
1251 regulator-always-on;
1252 regulator-boot-on;
1253 regulator-max-microvolt = <2000000>;
1254 regulator-min-microvolt = <2000000>;
1255 regulator-name = "vdd_2v0_pldo_s3";
1256 regulator-state-mem {
1257 regulator-on-in-suspend;
1258 regulator-suspend-microvolt = <2000000>;
1259 };
1260 };
1261
1262 vcc_3v3_s3: dcdc-reg8 {
1263 regulator-always-on;
1264 regulator-boot-on;
1265 regulator-max-microvolt = <3300000>;
1266 regulator-min-microvolt = <3300000>;
1267 regulator-name = "vcc_3v3_s3";
1268 regulator-state-mem {
1269 regulator-on-in-suspend;
1270 regulator-suspend-microvolt = <3300000>;
1271 };
1272 };
1273
1274 vddq_ddr_s0: dcdc-reg9 {
1275 regulator-always-on;
1276 regulator-boot-on;
1277 regulator-name = "vddq_ddr_s0";
1278 regulator-state-mem {
1279 regulator-off-in-suspend;
1280 };
1281 };
1282
1283 vcc_1v8_s3: dcdc-reg10 {
1284 regulator-always-on;
1285 regulator-boot-on;
1286 regulator-max-microvolt = <1800000>;
1287 regulator-min-microvolt = <1800000>;
1288 regulator-name = "vcc_1v8_s3";
1289 regulator-state-mem {
1290 regulator-on-in-suspend;
1291 regulator-suspend-microvolt = <1800000>;
1292 };
1293 };
1294
1295 avcc_1v8_s0: pldo-reg1 {
1296 regulator-always-on;
1297 regulator-boot-on;
1298 regulator-max-microvolt = <1800000>;
1299 regulator-min-microvolt = <1800000>;
1300 regulator-name = "avcc_1v8_s0";
1301 regulator-state-mem {
1302 regulator-off-in-suspend;
1303 };
1304 };
1305
1306 vcc_1v8_s0: pldo-reg2 {
1307 regulator-always-on;
1308 regulator-boot-on;
1309 regulator-max-microvolt = <1800000>;
1310 regulator-min-microvolt = <1800000>;
1311 regulator-name = "vcc_1v8_s0";
1312 regulator-state-mem {
1313 regulator-off-in-suspend;
1314 regulator-suspend-microvolt = <1800000>;
1315 };
1316 };
1317
1318 avdd_1v2_s0: pldo-reg3 {
1319 regulator-always-on;
1320 regulator-boot-on;
1321 regulator-max-microvolt = <1200000>;
1322 regulator-min-microvolt = <1200000>;
1323 regulator-name = "avdd_1v2_s0";
1324 regulator-state-mem {
1325 regulator-off-in-suspend;
1326 };
1327 };
1328
1329 vcc_3v3_s0: pldo-reg4 {
1330 regulator-always-on;
1331 regulator-boot-on;
1332 regulator-max-microvolt = <3300000>;
1333 regulator-min-microvolt = <3300000>;
1334 regulator-name = "vcc_3v3_s0";
1335 regulator-state-mem {
1336 regulator-off-in-suspend;
1337 };
1338 };
1339
1340 vccio_sd_s0: pldo-reg5 {
1341 regulator-always-on;
1342 regulator-boot-on;
1343 regulator-max-microvolt = <3300000>;
1344 regulator-min-microvolt = <1800000>;
1345 regulator-name = "vccio_sd_s0";
1346 regulator-state-mem {
1347 regulator-off-in-suspend;
1348 };
1349 };
1350
1351 vcc_1v8_s3_pldo6: pldo-reg6 {
1352 regulator-always-on;
1353 regulator-boot-on;
1354 regulator-max-microvolt = <1800000>;
1355 regulator-min-microvolt = <1800000>;
1356 regulator-name = "vcc_1v8_s3_pldo6";
1357 regulator-state-mem {
1358 regulator-on-in-suspend;
1359 regulator-suspend-microvolt = <1800000>;
1360 };
1361 };
1362
1363 vdd_0v75_s3: nldo-reg1 {
1364 regulator-always-on;
1365 regulator-boot-on;
1366 regulator-max-microvolt = <750000>;
1367 regulator-min-microvolt = <750000>;
1368 regulator-name = "vdd_0v75_s3";
1369 regulator-state-mem {
1370 regulator-on-in-suspend;
1371 regulator-suspend-microvolt = <750000>;
1372 };
1373 };
1374
1375 vdd_ddr_pll_s0: nldo-reg2 {
1376 regulator-always-on;
1377 regulator-boot-on;
1378 regulator-max-microvolt = <850000>;
1379 regulator-min-microvolt = <850000>;
1380 regulator-name = "vdd_ddr_pll_s0";
1381 regulator-state-mem {
1382 regulator-off-in-suspend;
1383 regulator-suspend-microvolt = <850000>;
1384 };
1385 };
1386
1387 avdd_0v75_s0: nldo-reg3 {
1388 regulator-always-on;
1389 regulator-boot-on;
1390 regulator-max-microvolt = <837500>;
1391 regulator-min-microvolt = <837500>;
1392 regulator-name = "avdd_0v75_s0";
1393 regulator-state-mem {
1394 regulator-off-in-suspend;
1395 };
1396 };
1397
1398 vdd_0v85_s0: nldo-reg4 {
1399 regulator-always-on;
1400 regulator-boot-on;
1401 regulator-min-microvolt = <850000>;
1402 regulator-max-microvolt = <850000>;
1403 regulator-name = "vdd_0v85_s0";
1404 regulator-state-mem {
1405 regulator-off-in-suspend;
1406 };
1407 };
1408
1409 vdd_0v75_s0: nldo-reg5 {
1410 regulator-always-on;
1411 regulator-boot-on;
1412 regulator-min-microvolt = <750000>;
1413 regulator-max-microvolt = <750000>;
1414 regulator-name = "vdd_0v75_s0";
1415 regulator-state-mem {
1416 regulator-off-in-suspend;
1417 };
1418 };
1419 };
1420 };
1421 };
1422
1423 &tsadc {
1424 status = "okay";
1425 };
1426
1427 &u2phy0 {
1428 status = "okay";
1429 };
1430
1431 &u2phy0_otg {
1432 status = "okay";
1433 };
1434
1435 &uart2 {
1436 pinctrl-0 = <&uart2m0_xfer>;
1437 status = "okay";
1438 };
1439
1440 &uart9 {
1441 pinctrl-0 = <&uart9m2_xfer>, <&uart9m2_ctsn>, <&uart9m2_rtsn>;
1442 uart-has-rtscts;
1443 status = "okay";
1444
1445 bluetooth {
1446 compatible = "brcm,bcm4345c5";
1447 clocks = <&rtc_hym8563>;
1448 clock-names = "lpo";
1449 device-wakeup-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
1450 interrupt-parent = <&gpio3>;
1451 interrupts = <RK_PB0 IRQ_TYPE_EDGE_FALLING>;
1452 pinctrl-0 = <&bt_enable_h>, <&bt_host_wake_l>, <&bt_wake_l>;
1453 pinctrl-names = "default";
1454 shutdown-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>;
1455 };
1456 };
1457
1458 &usb_host0_xhci {
1459 usb-role-switch;
1460 status = "okay";
1461
1462 port {
1463 #address-cells = <1>;
1464 #size-cells = <0>;
1465 dwc3_0_role_switch: endpoint@0 {
1466 reg = <0>;
1467 remote-endpoint = <&usbc0_role_sw>;
1468 };
1469 };
1470 };
1471
1472 &usbdp_phy0 {
1473 mode-switch;
1474 orientation-switch;
1475 pinctrl-0 = <&usbc_sbu_dc>;
1476 pinctrl-names = "default";
1477 sbu1-dc-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>;
1478 sbu2-dc-gpios = <&gpio4 RK_PA1 GPIO_ACTIVE_HIGH>;
1479 rockchip,dp-lane-mux = <2 3>;
1480 status = "okay";
1481
1482 port {
1483 #address-cells = <1>;
1484 #size-cells = <0>;
1485
1486 usbdp_phy0_orientation_switch: endpoint@0 {
1487 reg = <0>;
1488 remote-endpoint = <&usbc0_orien_sw>;
1489 };
1490
1491 usbdp_phy0_dp_altmode_mux: endpoint@1 {
1492 reg = <1>;
1493 remote-endpoint = <&dp_altmode_mux>;
1494 };
1495 };
1496 };
1497
1498 &vop {
1499 status = "okay";
1500 };
1501
1502 &vop_mmu {
1503 status = "okay";
1504 };
1505
1506 &vp0 {
1507 #address-cells = <1>;
1508 #size-cells = <0>;
1509
1510 vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
1511 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
1512 remote-endpoint = <&hdmi0_in_vp0>;
1513 };
1514 };
1515
1516 &vp3 {
1517 #address-cells = <1>;
1518 #size-cells = <0>;
1519
1520 vp3_out_dsi0: endpoint@ROCKCHIP_VOP2_EP_MIPI0 {
1521 reg = <ROCKCHIP_VOP2_EP_MIPI0>;
1522 remote-endpoint = <&dsi0_in_vp3>;
1523 };
1524 };