Lines Matching +full:en +full:- +full:host1

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 /dts-v1/;
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/pinctrl/rockchip.h>
14 #include <dt-bindings/soc/rockchip,vop2.h>
15 #include <dt-bindings/usb/pd.h>
16 #include "rk3588-friendlyelec-cm3588.dtsi"
20 compatible = "friendlyarm,cm3588-nas", "friendlyarm,cm3588", "rockchip,rk3588";
22 adc_key_recovery: adc-key-recovery {
23 compatible = "adc-keys";
24 io-channels = <&saradc 1>;
25 io-channel-names = "buttons";
26 keyup-threshold-microvolt = <1800000>;
27 poll-interval = <100>;
29 button-recovery {
32 press-threshold-microvolt = <17000>;
36 analog-sound {
37 compatible = "simple-audio-card";
38 pinctrl-names = "default";
39 pinctrl-0 = <&headphone_detect>;
41 simple-audio-card,format = "i2s";
42 simple-audio-card,hp-det-gpios = <&gpio1 RK_PC4 GPIO_ACTIVE_LOW>;
43 simple-audio-card,mclk-fs = <256>;
44 simple-audio-card,name = "realtek,rt5616-codec";
46 simple-audio-card,routing =
51 simple-audio-card,widgets =
55 simple-audio-card,cpu {
56 sound-dai = <&i2s0_8ch>;
59 simple-audio-card,codec {
60 sound-dai = <&rt5616>;
64 buzzer: pwm-beeper {
65 compatible = "pwm-beeper";
66 amp-supply = <&vcc_5v0_sys>;
67 beeper-hz = <500>;
71 fan: pwm-fan {
72 compatible = "pwm-fan";
73 #cooling-cells = <2>;
74 cooling-levels = <0 50 80 120 160 220>;
75 fan-supply = <&vcc_5v0_sys>;
79 gpio_keys: gpio-keys {
80 compatible = "gpio-keys";
81 pinctrl-names = "default";
82 pinctrl-0 = <&key1_pin>;
84 button-user {
85 debounce-interval = <50>;
89 wakeup-source;
93 hdmi0-con {
94 compatible = "hdmi-connector";
99 remote-endpoint = <&hdmi0_out_con>;
104 ir-receiver {
105 compatible = "gpio-ir-receiver";
109 vcc_12v_dcin: regulator-vcc-12v-dcin {
110 compatible = "regulator-fixed";
111 regulator-name = "vcc_12v_dcin";
112 regulator-always-on;
113 regulator-boot-on;
114 regulator-min-microvolt = <12000000>;
115 regulator-max-microvolt = <12000000>;
118 vcc_3v3_m2_a: regulator-vcc-3v3-m2-a {
119 compatible = "regulator-fixed";
120 regulator-name = "vcc_3v3_m2_a";
121 regulator-always-on;
122 regulator-boot-on;
123 regulator-min-microvolt = <3300000>;
124 regulator-max-microvolt = <3300000>;
125 vin-supply = <&vcc_12v_dcin>;
128 vcc_3v3_m2_b: regulator-vcc-3v3-m2-b {
129 compatible = "regulator-fixed";
130 regulator-name = "vcc_3v3_m2_b";
131 regulator-always-on;
132 regulator-boot-on;
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
135 vin-supply = <&vcc_12v_dcin>;
138 vcc_3v3_m2_c: regulator-vcc-3v3-m2-c {
139 compatible = "regulator-fixed";
140 regulator-name = "vcc_3v3_m2_c";
141 regulator-always-on;
142 regulator-boot-on;
143 regulator-min-microvolt = <3300000>;
144 regulator-max-microvolt = <3300000>;
145 vin-supply = <&vcc_12v_dcin>;
148 vcc_3v3_m2_d: regulator-vcc-3v3-m2-d {
149 compatible = "regulator-fixed";
150 regulator-name = "vcc_3v3_m2_d";
151 regulator-always-on;
152 regulator-boot-on;
153 regulator-min-microvolt = <3300000>;
154 regulator-max-microvolt = <3300000>;
155 vin-supply = <&vcc_12v_dcin>;
159 vcc_5v0_sys: regulator-vcc-5v0-sys {
160 compatible = "regulator-fixed";
161 regulator-name = "vcc_5v0_sys";
162 regulator-always-on;
163 regulator-boot-on;
164 regulator-min-microvolt = <5000000>;
165 regulator-max-microvolt = <5000000>;
166 vin-supply = <&vcc_12v_dcin>;
170 vcc_5v0_host_20: regulator-vcc-5v0-host-20 {
171 compatible = "regulator-fixed";
172 enable-active-high;
174 pinctrl-names = "default";
175 pinctrl-0 = <&vcc_5v0_host20_en>;
176 regulator-name = "vcc_5v0_host_20";
177 regulator-min-microvolt = <5000000>;
178 regulator-max-microvolt = <5000000>;
179 vin-supply = <&vcc_5v0_sys>;
183 vcc_5v0_host_30_p1: regulator-vcc-5v0-host-30-p1 {
184 compatible = "regulator-fixed";
185 enable-active-high;
187 pinctrl-names = "default";
188 pinctrl-0 = <&vcc_5v0_host30p1_en>;
189 regulator-name = "vcc_5v0_host_30_p1";
190 regulator-min-microvolt = <5000000>;
191 regulator-max-microvolt = <5000000>;
192 vin-supply = <&vcc_5v0_sys>;
196 vcc_5v0_host_30_p2: regulator-vcc-5v0-host-30-p2 {
197 compatible = "regulator-fixed";
198 enable-active-high;
200 pinctrl-names = "default";
201 pinctrl-0 = <&vcc_5v0_host30p2_en>;
202 regulator-name = "vcc_5v0_host_30_p2";
203 regulator-min-microvolt = <5000000>;
204 regulator-max-microvolt = <5000000>;
205 vin-supply = <&vcc_5v0_sys>;
209 vbus_5v0_typec: regulator-vbus-5v0-typec {
210 compatible = "regulator-fixed";
211 enable-active-high;
213 pinctrl-names = "default";
214 pinctrl-0 = <&typec_5v_pwr_en>;
215 regulator-name = "vbus_5v0_typec";
216 regulator-min-microvolt = <5000000>;
217 regulator-max-microvolt = <5000000>;
218 vin-supply = <&vcc_5v0_sys>;
224 vin-supply = <&vcc_12v_dcin>;
234 /* Used by USB 3.0 OTG 2 controller (USB 3.0 Type-A port 2) */
240 /* GPIO names are in the format "Human-readable-name [SIGNAL_LABEL]" */
243 gpio-line-names =
244 /* GPIO0 A0-A7 */
247 /* GPIO0 B0-B7 */
250 /* GPIO0 C0-C7 */
253 /* GPIO0 D0-D7 */
254 "", "", "", "USB3 Type-C [CC_INT_L]",
259 gpio-line-names =
260 /* GPIO1 A0-A7 */
262 "USB2 Type-A [USB2_PWREN]", "", "", "Pin 15",
263 /* GPIO1 B0-B7 */
265 …"Pin 24 [SPI0_CS0_M2/UART7_RX_M2]", "Pin 22 [SPI0_CS1_M0/UART7_TX_M2]", "", "CSI-Pin 14 [MIPI_CAM2…
266 /* GPIO1 C0-C7 */
269 /* GPIO1 D0-D7 */
270 "", "", "USB3 Type-C [TYPEC5V_PWREN_H]", "5V Fan [PWM1_M1]",
271 "", "HDMI-in detect [HDMIIRX_DET_L]", "Pin 05 [I2C8_SCL_M2]", "Pin 03 [I2C8_SDA_M2]";
275 gpio-line-names =
276 /* GPIO2 A0-A7 */
279 /* GPIO2 B0-B7 */
282 /* GPIO2 C0-C7 */
283 "", "CSI-Pin 11 [MIPI_CAM2_RESET_L]", "CSI-Pin 12 [MIPI_CAM2_PDN_L]", "",
285 /* GPIO2 D0-D7 */
291 gpio-line-names =
292 /* GPIO3 A0-A7 */
294 "Pin 37 [SPI4_CS1_M1]", "USB3-A #2 [USB3_2_PWREN]", "DSI-Pin 12 [LCD_RST]", "Buzzer [PWM8_M0]",
295 /* GPIO3 B0-B7 */
296 "Pin 33 [PWM9_M0]", "DSI-Pin 10 [PWM2_M1/LCD_BL]", "Pin 07", "Pin 16",
298 /* GPIO3 C0-C7 */
299 "DSI-Pin 08 [TP_INT_L]", "DSI-Pin 14 [TP_RST_L]", "Pin 11 [PWM14_M0]", "Pin 13 [PWM15_IR_M0]",
300 "", "", "", "DSI-Pin 06 [I2C5_SCL_M0_TP]",
301 /* GPIO3 D0-D7 */
302 "DSI-Pin 05 [I2C5_SDA_M0_TP]", "", "", "",
307 gpio-line-names =
308 /* GPIO4 A0-A7 */
309 "", "", "M.2 M-Key Slot4 [M2_D_PERST_L]", "",
311 /* GPIO4 B0-B7 */
312 "USB3-A #1 [USB3_TYPEC1_PWREN]", "", "", "M.2 M-Key Slot3 [M2_C_PERST_L]",
313 …"M.2 M-Key Slot2 [M2_B_PERST_L]", "M.2 M-Key Slot1 [M2_A_CLKREQ_L]", "M.2 M-Key Slot1 [M2_A_PERST_…
314 /* GPIO4 C0-C7 */
317 /* GPIO4 D0-D7 */
328 remote-endpoint = <&vp0_out_hdmi0>;
334 remote-endpoint = <&hdmi0_con_in>;
342 /* Connected to MIPI-DSI0 */
344 pinctrl-names = "default";
345 pinctrl-0 = <&i2c5m0_xfer>;
350 fusb302: typec-portc@22 {
353 interrupt-parent = <&gpio0>;
355 pinctrl-names = "default";
356 pinctrl-0 = <&usbc0_int>;
357 vbus-supply = <&vbus_5v0_typec>;
360 compatible = "usb-c-connector";
361 data-role = "dual";
362 label = "USB-C";
363 power-role = "source";
364 source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
365 try-power-role = "source";
366 vbus-supply = <&vbus_5v0_typec>;
369 #address-cells = <1>;
370 #size-cells = <0>;
376 remote-endpoint = <&usbdp_phy0_orientation_switch>;
384 remote-endpoint = <&dwc3_0_role_switch>;
392 remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
400 /* Connected to MIPI-CSI1 */
403 /* GPIO Connector, connected to 40-pin GPIO header */
405 pinctrl-names = "default";
406 pinctrl-0 = <&i2c8m2_xfer>;
412 max-link-speed = <3>;
413 num-lanes = <1>;
415 pinctrl-names = "default";
416 pinctrl-0 = <&pcie2_0_rst>;
417 reset-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
418 vpcie3v3-supply = <&vcc_3v3_m2_b>;
424 max-link-speed = <3>;
425 num-lanes = <1>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&pcie2_1_rst>;
429 reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
430 vpcie3v3-supply = <&vcc_3v3_m2_d>;
437 * port 0 lane 0 - always mapped to controller 0 (4L)
438 * port 0 lane 1 - map to controller 2 (1L0)
439 * port 1 lane 0 - map to controller 1 (2L)
440 * port 1 lane 1 - map to controller 3 (1L1)
442 data-lanes = <1 3 2 4>;
448 max-link-speed = <3>;
449 num-lanes = <1>;
450 pinctrl-names = "default";
451 pinctrl-0 = <&pcie3x4_rst>;
452 reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
453 vpcie3v3-supply = <&vcc_3v3_m2_a>;
459 max-link-speed = <3>;
460 num-lanes = <1>;
461 pinctrl-names = "default";
462 pinctrl-0 = <&pcie3x2_rst>;
463 reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
464 vpcie3v3-supply = <&vcc_3v3_m2_c>;
470 headphone_detect: headphone-detect {
475 gpio-key {
476 key1_pin: key1-pin {
482 pcie2_0_rst: pcie2-0-rst {
486 pcie2_1_rst: pcie2-1-rst {
490 pcie3x2_rst: pcie3x2-rst {
494 pcie3x4_rst: pcie3x4-rst {
500 vcc_5v0_host20_en: vcc-5v0-host20-en {
504 vcc_5v0_host30p1_en: vcc-5v0-host30p1-en {
508 vcc_5v0_host30p2_en: vcc-5v0-host30p2-en {
513 usb-typec {
514 usbc0_int: usbc0-int {
518 typec_5v_pwr_en: typec-5v-pwr-en {
526 pinctrl-names = "default";
527 pinctrl-0 = <&pwm1m1_pins>;
531 /* Connected to MIPI-DSI0 */
533 pinctrl-names = "default";
534 pinctrl-0 = <&pwm2m1_pins>;
539 pinctrl-names = "default";
540 pinctrl-0 = <&pwm3m0_pins>;
544 /* GPIO Connector, connected to 40-pin GPIO header */
547 pinctrl-names = "default";
548 pinctrl-0 = <&pwm4m1_pins>;
552 /* GPIO Connector, connected to 40-pin GPIO header */
554 pinctrl-names = "default";
555 pinctrl-0 = <&pwm5m1_pins>;
561 pinctrl-names = "default";
562 pinctrl-0 = <&pwm8m0_pins>;
566 /* GPIO Connector, connected to 40-pin GPIO header */
568 pinctrl-names = "default";
569 pinctrl-0 = <&pwm9m0_pins>;
573 /* GPIO Connector, connected to 40-pin GPIO header */
576 pinctrl-names = "default";
577 pinctrl-0 = <&pwm10m0_pins>;
581 /* GPIO Connector, connected to 40-pin GPIO header */
584 pinctrl-names = "default";
585 pinctrl-0 = <&pwm12m0_pins>;
589 /* GPIO Connector, connected to 40-pin GPIO header */
592 pinctrl-names = "default";
593 pinctrl-0 = <&pwm13m0_pins>;
597 /* GPIO Connector, connected to 40-pin GPIO header */
599 pinctrl-names = "default";
600 pinctrl-0 = <&pwm14m0_pins>;
604 /* GPIO Connector, connected to 40-pin GPIO header */
607 pinctrl-names = "default";
608 pinctrl-0 = <&pwm15m0_pins>;
617 /* GPIO Connector, connected to 40-pin GPIO header */
620 num-cs = <1>;
621 pinctrl-names = "default";
622 pinctrl-0 = <&spi0m2_cs0 &spi0m2_pins>;
626 /* GPIO Connector, connected to 40-pin GPIO header */
629 num-cs = <1>;
630 pinctrl-names = "default";
631 pinctrl-0 = <&spi4m1_cs0 &spi4m1_pins>;
635 /* GPIO Connector, connected to 40-pin GPIO header */
638 pinctrl-names = "default";
639 pinctrl-0 = <&uart0m0_xfer>;
648 /* GPIO Connector, connected to 40-pin GPIO header */
651 pinctrl-names = "default";
652 pinctrl-0 = <&uart3m1_xfer>;
656 /* GPIO Connector, connected to 40-pin GPIO header */
659 pinctrl-names = "default";
660 pinctrl-0 = <&uart4m2_xfer>;
664 /* GPIO Connector, connected to 40-pin GPIO header */
666 pinctrl-names = "default";
667 pinctrl-0 = <&uart6m1_xfer>;
671 /* GPIO Connector, connected to 40-pin GPIO header */
674 pinctrl-names = "default";
675 pinctrl-0 = <&uart7m2_xfer>;
679 /* GPIO Connector, connected to 40-pin GPIO header */
682 pinctrl-names = "default";
683 pinctrl-0 = <&uart8m1_xfer>;
687 /* USB2 PHY for USB Type-C port */
694 phy-supply = <&vbus_5v0_typec>;
698 /* USB2 PHY for USB 3.0 Type-A port 1 */
705 phy-supply = <&vcc_5v0_host_30_p1>;
709 /* USB2 PHY for USB 2.0 Type-A */
716 phy-supply = <&vcc_5v0_host_20>;
720 /* USB2 PHY for USB 3.0 Type-A port 2 */
721 /* CM3588 USB Controller Config Table: USB20 HOST1 */
727 phy-supply = <&vcc_5v0_host_30_p2>;
731 /* USB 2.0 Type-A */
737 /* USB 2.0 Type-A */
743 /* USB Type-C */
746 usb-role-switch;
751 remote-endpoint = <&usbc0_role_sw>;
756 /* Lower USB 3.0 Type-A (port 2) */
762 /* Lower USB 3.0 Type-A (port 2) */
768 /* Upper USB 3.0 Type-A (port 1) */
775 /* Lower USB 3.0 Type-A (port 2) */
781 /* USB3 PHY for USB Type-C port */
784 mode-switch;
785 orientation-switch;
786 sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
787 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
791 #address-cells = <1>;
792 #size-cells = <0>;
796 remote-endpoint = <&usbc0_orien_sw>;
801 remote-endpoint = <&dp_altmode_mux>;
806 /* USB3 PHY for USB 3.0 Type-A port 1 */
823 remote-endpoint = <&hdmi0_in_vp0>;