Lines Matching +full:en +full:- +full:host2
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/usb/pd.h>
15 #include "rk3588-friendlyelec-cm3588.dtsi"
19 compatible = "friendlyarm,cm3588-nas", "friendlyarm,cm3588", "rockchip,rk3588";
21 adc_key_recovery: adc-key-recovery {
22 compatible = "adc-keys";
23 io-channels = <&saradc 1>;
24 io-channel-names = "buttons";
25 keyup-threshold-microvolt = <1800000>;
26 poll-interval = <100>;
28 button-recovery {
31 press-threshold-microvolt = <17000>;
35 analog-sound {
36 compatible = "simple-audio-card";
37 pinctrl-names = "default";
38 pinctrl-0 = <&headphone_detect>;
40 simple-audio-card,format = "i2s";
41 simple-audio-card,hp-det-gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_LOW>;
42 simple-audio-card,mclk-fs = <256>;
43 simple-audio-card,name = "realtek,rt5616-codec";
45 simple-audio-card,routing =
50 simple-audio-card,widgets =
54 simple-audio-card,cpu {
55 sound-dai = <&i2s0_8ch>;
58 simple-audio-card,codec {
59 sound-dai = <&rt5616>;
63 buzzer: pwm-beeper {
64 compatible = "pwm-beeper";
65 amp-supply = <&vcc_5v0_sys>;
66 beeper-hz = <500>;
70 fan: pwm-fan {
71 compatible = "pwm-fan";
72 #cooling-cells = <2>;
73 cooling-levels = <0 50 80 120 160 220>;
74 fan-supply = <&vcc_5v0_sys>;
78 gpio_keys: gpio-keys {
79 compatible = "gpio-keys";
80 pinctrl-names = "default";
81 pinctrl-0 = <&key1_pin>;
83 button-user {
84 debounce-interval = <50>;
88 wakeup-source;
92 ir-receiver {
93 compatible = "gpio-ir-receiver";
97 vcc_12v_dcin: regulator-vcc-12v-dcin {
98 compatible = "regulator-fixed";
99 regulator-name = "vcc_12v_dcin";
100 regulator-always-on;
101 regulator-boot-on;
102 regulator-min-microvolt = <12000000>;
103 regulator-max-microvolt = <12000000>;
106 vcc_3v3_m2_a: regulator-vcc-3v3-m2-a {
107 compatible = "regulator-fixed";
108 regulator-name = "vcc_3v3_m2_a";
109 regulator-always-on;
110 regulator-boot-on;
111 regulator-min-microvolt = <3300000>;
112 regulator-max-microvolt = <3300000>;
113 vin-supply = <&vcc_12v_dcin>;
116 vcc_3v3_m2_b: regulator-vcc-3v3-m2-b {
117 compatible = "regulator-fixed";
118 regulator-name = "vcc_3v3_m2_b";
119 regulator-always-on;
120 regulator-boot-on;
121 regulator-min-microvolt = <3300000>;
122 regulator-max-microvolt = <3300000>;
123 vin-supply = <&vcc_12v_dcin>;
126 vcc_3v3_m2_c: regulator-vcc-3v3-m2-c {
127 compatible = "regulator-fixed";
128 regulator-name = "vcc_3v3_m2_c";
129 regulator-always-on;
130 regulator-boot-on;
131 regulator-min-microvolt = <3300000>;
132 regulator-max-microvolt = <3300000>;
133 vin-supply = <&vcc_12v_dcin>;
136 vcc_3v3_m2_d: regulator-vcc-3v3-m2-d {
137 compatible = "regulator-fixed";
138 regulator-name = "vcc_3v3_m2_d";
139 regulator-always-on;
140 regulator-boot-on;
141 regulator-min-microvolt = <3300000>;
142 regulator-max-microvolt = <3300000>;
143 vin-supply = <&vcc_12v_dcin>;
147 vcc_5v0_sys: regulator-vcc-5v0-sys {
148 compatible = "regulator-fixed";
149 regulator-name = "vcc_5v0_sys";
150 regulator-always-on;
151 regulator-boot-on;
152 regulator-min-microvolt = <5000000>;
153 regulator-max-microvolt = <5000000>;
154 vin-supply = <&vcc_12v_dcin>;
158 vcc_5v0_host_20: regulator-vcc-5v0-host-20 {
159 compatible = "regulator-fixed";
160 enable-active-high;
162 pinctrl-names = "default";
163 pinctrl-0 = <&vcc_5v0_host20_en>;
164 regulator-name = "vcc_5v0_host_20";
165 regulator-min-microvolt = <5000000>;
166 regulator-max-microvolt = <5000000>;
167 vin-supply = <&vcc_5v0_sys>;
171 vcc_5v0_host_30_p1: regulator-vcc-5v0-host-30-p1 {
172 compatible = "regulator-fixed";
173 enable-active-high;
175 pinctrl-names = "default";
176 pinctrl-0 = <&vcc_5v0_host30p1_en>;
177 regulator-name = "vcc_5v0_host_30_p1";
178 regulator-min-microvolt = <5000000>;
179 regulator-max-microvolt = <5000000>;
180 vin-supply = <&vcc_5v0_sys>;
184 vcc_5v0_host_30_p2: regulator-vcc-5v0-host-30-p2 {
185 compatible = "regulator-fixed";
186 enable-active-high;
188 pinctrl-names = "default";
189 pinctrl-0 = <&vcc_5v0_host30p2_en>;
190 regulator-name = "vcc_5v0_host_30_p2";
191 regulator-min-microvolt = <5000000>;
192 regulator-max-microvolt = <5000000>;
193 vin-supply = <&vcc_5v0_sys>;
197 vbus_5v0_typec: regulator-vbus-5v0-typec {
198 compatible = "regulator-fixed";
199 enable-active-high;
201 pinctrl-names = "default";
202 pinctrl-0 = <&typec_5v_pwr_en>;
203 regulator-name = "vbus_5v0_typec";
204 regulator-min-microvolt = <5000000>;
205 regulator-max-microvolt = <5000000>;
206 vin-supply = <&vcc_5v0_sys>;
212 vin-supply = <&vcc_12v_dcin>;
222 /* Used by USB 3.0 OTG 2 controller (USB 3.0 Type-A port 2) */
223 /* CM3588 USB Controller Config Table: USB30 HOST2 */
228 /* GPIO names are in the format "Human-readable-name [SIGNAL_LABEL]" */
231 gpio-line-names =
232 /* GPIO0 A0-A7 */
235 /* GPIO0 B0-B7 */
238 /* GPIO0 C0-C7 */
241 /* GPIO0 D0-D7 */
242 "", "", "", "USB3 Type-C [CC_INT_L]",
247 gpio-line-names =
248 /* GPIO1 A0-A7 */
250 "USB2 Type-A [USB2_PWREN]", "", "", "Pin 15",
251 /* GPIO1 B0-B7 */
253 …"Pin 24 [SPI0_CS0_M2/UART7_RX_M2]", "Pin 22 [SPI0_CS1_M0/UART7_TX_M2]", "", "CSI-Pin 14 [MIPI_CAM2…
254 /* GPIO1 C0-C7 */
257 /* GPIO1 D0-D7 */
258 "", "", "USB3 Type-C [TYPEC5V_PWREN_H]", "5V Fan [PWM1_M1]",
259 "", "HDMI-in detect [HDMIIRX_DET_L]", "Pin 05 [I2C8_SCL_M2]", "Pin 03 [I2C8_SDA_M2]";
263 gpio-line-names =
264 /* GPIO2 A0-A7 */
267 /* GPIO2 B0-B7 */
270 /* GPIO2 C0-C7 */
271 "", "CSI-Pin 11 [MIPI_CAM2_RESET_L]", "CSI-Pin 12 [MIPI_CAM2_PDN_L]", "",
273 /* GPIO2 D0-D7 */
279 gpio-line-names =
280 /* GPIO3 A0-A7 */
282 "Pin 37 [SPI4_CS1_M1]", "USB3-A #2 [USB3_2_PWREN]", "DSI-Pin 12 [LCD_RST]", "Buzzer [PWM8_M0]",
283 /* GPIO3 B0-B7 */
284 "Pin 33 [PWM9_M0]", "DSI-Pin 10 [PWM2_M1/LCD_BL]", "Pin 07", "Pin 16",
286 /* GPIO3 C0-C7 */
287 "DSI-Pin 08 [TP_INT_L]", "DSI-Pin 14 [TP_RST_L]", "Pin 11 [PWM14_M0]", "Pin 13 [PWM15_IR_M0]",
288 "", "", "", "DSI-Pin 06 [I2C5_SCL_M0_TP]",
289 /* GPIO3 D0-D7 */
290 "DSI-Pin 05 [I2C5_SDA_M0_TP]", "", "", "",
295 gpio-line-names =
296 /* GPIO4 A0-A7 */
297 "", "", "M.2 M-Key Slot4 [M2_D_PERST_L]", "",
299 /* GPIO4 B0-B7 */
300 "USB3-A #1 [USB3_TYPEC1_PWREN]", "", "", "M.2 M-Key Slot3 [M2_C_PERST_L]",
301 …"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_…
302 /* GPIO4 C0-C7 */
305 /* GPIO4 D0-D7 */
310 /* Connected to MIPI-DSI0 */
312 pinctrl-names = "default";
313 pinctrl-0 = <&i2c5m0_xfer>;
318 fusb302: typec-portc@22 {
321 interrupt-parent = <&gpio0>;
323 pinctrl-names = "default";
324 pinctrl-0 = <&usbc0_int>;
325 vbus-supply = <&vbus_5v0_typec>;
328 compatible = "usb-c-connector";
329 data-role = "dual";
330 label = "USB-C";
331 power-role = "source";
332 source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
333 try-power-role = "source";
334 vbus-supply = <&vbus_5v0_typec>;
337 #address-cells = <1>;
338 #size-cells = <0>;
344 remote-endpoint = <&usbdp_phy0_orientation_switch>;
352 remote-endpoint = <&dwc3_0_role_switch>;
360 remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
368 /* Connected to MIPI-CSI1 */
371 /* GPIO Connector, connected to 40-pin GPIO header */
373 pinctrl-names = "default";
374 pinctrl-0 = <&i2c8m2_xfer>;
380 max-link-speed = <3>;
381 num-lanes = <1>;
383 pinctrl-names = "default";
384 pinctrl-0 = <&pcie2_0_rst>;
385 reset-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
386 vpcie3v3-supply = <&vcc_3v3_m2_b>;
392 max-link-speed = <3>;
393 num-lanes = <1>;
395 pinctrl-names = "default";
396 pinctrl-0 = <&pcie2_1_rst>;
397 reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
398 vpcie3v3-supply = <&vcc_3v3_m2_d>;
405 * port 0 lane 0 - always mapped to controller 0 (4L)
406 * port 0 lane 1 - map to controller 2 (1L0)
407 * port 1 lane 0 - map to controller 1 (2L)
408 * port 1 lane 1 - map to controller 3 (1L1)
410 data-lanes = <1 3 2 4>;
416 max-link-speed = <3>;
417 num-lanes = <1>;
418 pinctrl-names = "default";
419 pinctrl-0 = <&pcie3x4_rst>;
420 reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
421 vpcie3v3-supply = <&vcc_3v3_m2_a>;
427 max-link-speed = <3>;
428 num-lanes = <1>;
429 pinctrl-names = "default";
430 pinctrl-0 = <&pcie3x2_rst>;
431 reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
432 vpcie3v3-supply = <&vcc_3v3_m2_c>;
438 headphone_detect: headphone-detect {
443 gpio-key {
444 key1_pin: key1-pin {
450 pcie2_0_rst: pcie2-0-rst {
454 pcie2_1_rst: pcie2-1-rst {
458 pcie3x2_rst: pcie3x2-rst {
462 pcie3x4_rst: pcie3x4-rst {
468 vcc_5v0_host20_en: vcc-5v0-host20-en {
472 vcc_5v0_host30p1_en: vcc-5v0-host30p1-en {
476 vcc_5v0_host30p2_en: vcc-5v0-host30p2-en {
481 usb-typec {
482 usbc0_int: usbc0-int {
486 typec_5v_pwr_en: typec-5v-pwr-en {
494 pinctrl-names = "default";
495 pinctrl-0 = <&pwm1m1_pins>;
499 /* Connected to MIPI-DSI0 */
501 pinctrl-names = "default";
502 pinctrl-0 = <&pwm2m1_pins>;
507 pinctrl-names = "default";
508 pinctrl-0 = <&pwm3m0_pins>;
512 /* GPIO Connector, connected to 40-pin GPIO header */
515 pinctrl-names = "default";
516 pinctrl-0 = <&pwm4m1_pins>;
520 /* GPIO Connector, connected to 40-pin GPIO header */
522 pinctrl-names = "default";
523 pinctrl-0 = <&pwm5m1_pins>;
529 pinctrl-names = "default";
530 pinctrl-0 = <&pwm8m0_pins>;
534 /* GPIO Connector, connected to 40-pin GPIO header */
536 pinctrl-names = "default";
537 pinctrl-0 = <&pwm9m0_pins>;
541 /* GPIO Connector, connected to 40-pin GPIO header */
544 pinctrl-names = "default";
545 pinctrl-0 = <&pwm10m0_pins>;
549 /* GPIO Connector, connected to 40-pin GPIO header */
552 pinctrl-names = "default";
553 pinctrl-0 = <&pwm12m0_pins>;
557 /* GPIO Connector, connected to 40-pin GPIO header */
560 pinctrl-names = "default";
561 pinctrl-0 = <&pwm13m0_pins>;
565 /* GPIO Connector, connected to 40-pin GPIO header */
567 pinctrl-names = "default";
568 pinctrl-0 = <&pwm14m0_pins>;
572 /* GPIO Connector, connected to 40-pin GPIO header */
575 pinctrl-names = "default";
576 pinctrl-0 = <&pwm15m0_pins>;
585 /* GPIO Connector, connected to 40-pin GPIO header */
588 num-cs = <1>;
589 pinctrl-names = "default";
590 pinctrl-0 = <&spi0m2_cs0 &spi0m2_pins>;
594 /* GPIO Connector, connected to 40-pin GPIO header */
597 num-cs = <1>;
598 pinctrl-names = "default";
599 pinctrl-0 = <&spi4m1_cs0 &spi4m1_pins>;
603 /* GPIO Connector, connected to 40-pin GPIO header */
606 pinctrl-names = "default";
607 pinctrl-0 = <&uart0m0_xfer>;
616 /* GPIO Connector, connected to 40-pin GPIO header */
619 pinctrl-names = "default";
620 pinctrl-0 = <&uart3m1_xfer>;
624 /* GPIO Connector, connected to 40-pin GPIO header */
627 pinctrl-names = "default";
628 pinctrl-0 = <&uart4m2_xfer>;
632 /* GPIO Connector, connected to 40-pin GPIO header */
634 pinctrl-names = "default";
635 pinctrl-0 = <&uart6m1_xfer>;
639 /* GPIO Connector, connected to 40-pin GPIO header */
642 pinctrl-names = "default";
643 pinctrl-0 = <&uart7m2_xfer>;
647 /* GPIO Connector, connected to 40-pin GPIO header */
650 pinctrl-names = "default";
651 pinctrl-0 = <&uart8m1_xfer>;
655 /* USB2 PHY for USB Type-C port */
662 phy-supply = <&vbus_5v0_typec>;
666 /* USB2 PHY for USB 3.0 Type-A port 1 */
673 phy-supply = <&vcc_5v0_host_30_p1>;
677 /* USB2 PHY for USB 2.0 Type-A */
684 phy-supply = <&vcc_5v0_host_20>;
688 /* USB2 PHY for USB 3.0 Type-A port 2 */
695 phy-supply = <&vcc_5v0_host_30_p2>;
699 /* USB 2.0 Type-A */
705 /* USB 2.0 Type-A */
711 /* USB Type-C */
714 usb-role-switch;
719 remote-endpoint = <&usbc0_role_sw>;
724 /* Lower USB 3.0 Type-A (port 2) */
730 /* Lower USB 3.0 Type-A (port 2) */
736 /* Upper USB 3.0 Type-A (port 1) */
743 /* Lower USB 3.0 Type-A (port 2) */
749 /* USB3 PHY for USB Type-C port */
752 mode-switch;
753 orientation-switch;
754 sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
755 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
759 #address-cells = <1>;
760 #size-cells = <0>;
764 remote-endpoint = <&usbc0_orien_sw>;
769 remote-endpoint = <&dp_altmode_mux>;
774 /* USB3 PHY for USB 3.0 Type-A port 1 */