// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2021 Rockchip Electronics Co., Ltd. * */ #include "dt-bindings/usb/pd.h" #include "rk3588.dtsi" #include "rk3588-blueberry.dtsi" #include "rk3588-rk806-single.dtsi" / { /* If hdmirx node is disabled, delete the reserved-memory node here. */ reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; /* Reserve 256MB memory for hdmirx-controller@fdee0000 */ cma { compatible = "shared-dma-pool"; reusable; reg = <0x0 (256 * 0x100000) 0x0 (256 * 0x100000)>; linux,cma-default; }; }; es8388_sound: es8388-sound { status = "okay"; compatible = "rockchip,multicodecs-card"; rockchip,card-name = "rockchip-es8388"; //hp-det-gpio = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>; rockchip,format = "i2s"; rockchip,mclk-fs = <256>; rockchip,cpu = <&i2s0_8ch>; rockchip,codec = <&es8388>; rockchip,audio-routing = "Headphone", "LOUT1", "Headphone", "ROUT1", "Speaker", "LOUT2", "Speaker", "ROUT2", "Headphone", "Headphone Power", "Headphone", "Headphone Power", "Speaker", "Speaker Power", "Speaker", "Speaker Power", "LINPUT1", "Main Mic", "LINPUT2", "Main Mic", "RINPUT1", "Headset Mic", "RINPUT2", "Headset Mic"; pinctrl-names = "default"; pinctrl-0 = <&hp_det>; }; rk_headset: rk-headset { status = "disabled"; compatible = "rockchip_headset"; headset_gpio = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&hp_det>; io-channels = <&saradc 3>; }; hdmiin-sound { compatible = "rockchip,hdmi"; rockchip,mclk-fs = <128>; rockchip,format = "i2s"; rockchip,bitclock-master = <&hdmirx_ctrler>; rockchip,frame-master = <&hdmirx_ctrler>; rockchip,card-name = "rockchip-hdmiin"; rockchip,cpu = <&i2s7_8ch>; rockchip,codec = <&hdmirx_ctrler 0>; rockchip,jack-det; }; leds: leds { compatible = "gpio-leds"; wifi_led: wifi-led { gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; default-state = "off"; }; hdd_led: hdd-led { gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; default-state = "off"; }; eth_led: eth-led { gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; default-state = "off"; }; work_led: work-led { gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; //linux,default-trigger = "heartbeat"; default-state = "on"; }; }; gpio_keys: gpio-keys { compatible = "gpio-keys"; autorepeat; pinctrl-names = "default"; pinctrl-0 = <&pwrbtn>; power { debounce-interval = <100>; gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>; //gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>; label = "GPIO Key Power"; linux,code = ; wakeup-source; }; }; vk2c21_lcd { compatible = "lcd_vk2c21"; i2c_scl = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; i2c_sda = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; status = "disabled";//"okay"; //zxLog_2022.9.20 for maozhuo time-lcd show; }; pcie30_avdd0v75: pcie30-avdd0v75 { compatible = "regulator-fixed"; regulator-name = "pcie30_avdd0v75"; regulator-boot-on; regulator-always-on; regulator-min-microvolt = <750000>; regulator-max-microvolt = <750000>; vin-supply = <&vdd_0v75_s0>; }; pcie30_avdd1v8: pcie30-avdd1v8 { compatible = "regulator-fixed"; regulator-name = "pcie30_avdd1v8"; regulator-boot-on; regulator-always-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; vin-supply = <&avcc_1v8_s0>; }; vcc12v_dcin: vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <12000000>; regulator-max-microvolt = <12000000>; }; vcc3v3_pcie30: vcc3v3-pcie30 { compatible = "regulator-fixed"; regulator-name = "vcc3v3_pcie30"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; pinctrl-names = "default"; pinctrl-0 = <&vcc3v3_pcie30_en>; gpios = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>; //hugsun gpio1_c4 startup-delay-us = <10000>; vin-supply = <&vcc12v_dcin>; }; vcc5v0_sys: vcc5v0-sys { compatible = "regulator-fixed"; regulator-name = "vcc5v0_sys"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; vin-supply = <&vcc12v_dcin>; }; vcc5v0_host: vcc5v0-host-regulator { compatible = "regulator-fixed"; regulator-name = "vcc5v0_host"; regulator-boot-on; regulator-always-on; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; vin-supply = <&vcc5v0_sys>; pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; }; vcc5v0_otg: vcc5v0-otg-regulator { compatible = "regulator-fixed"; regulator-name = "vcc5v0_otg"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; vin-supply = <&vcc5v0_sys>; pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_otg_en>; }; vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 { compatible = "regulator-fixed"; regulator-name = "vcc_1v1_nldo_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; vin-supply = <&vcc5v0_sys>; }; modem { compatible = "rockchip,modem"; status = "okay"; power-on_gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; reset_gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; //GPIO_C4 }; ext_cam_clk: external-camera-clock { compatible = "fixed-clock"; clock-frequency = <24000000>; clock-output-names = "CLK_CAMERA_24MHZ"; #clock-cells = <0>; }; wireless_bluetooth: wireless-bluetooth { compatible = "bluetooth-platdata"; clocks = <&hym8563>; clock-names = "ext_clock"; uart_rts_gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_LOW>; pinctrl-names = "default", "rts_gpio"; pinctrl-0 = <&uart6m1_rtsn>, <&bt_gpio>; pinctrl-1 = <&uart6_gpios>; BT,reset_gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; BT,wake_gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; BT,wake_host_irq = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; status = "okay"; }; wireless_wlan: wireless-wlan { compatible = "wlan-platdata"; wifi_chip_type = "ap6275p"; pinctrl-names = "default"; pinctrl-0 = <&wifi_host_wake_irq>, <&wifi_poweren_gpio>; WIFI,host_wake_irq = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>; WIFI,poweren_gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; status = "okay"; }; }; &combphy0_ps { status = "okay"; }; &combphy1_ps { status = "okay"; }; &combphy2_psu { status = "okay"; }; &dp0 { status = "disable"; }; //&dp0_in_vp2 { // status = "okay"; //}; &dp1 { pinctrl-0 = <&dp1m0_pins>; pinctrl-names = "default"; status = "okay"; }; &dp1_in_vp2 { status = "okay"; }; &dp1_sound{ status = "okay"; }; &gmac0 { /* Use rgmii-rxid mode to disable rx delay inside Soc */ phy-mode = "rgmii-rxid"; clock_in_out = "output"; snps,reset-gpio = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>; snps,reset-active-low; /* Reset time is 20ms, 100ms for rtl8211f */ snps,reset-delays-us = <0 20000 100000>; pinctrl-names = "default"; pinctrl-0 = <&gmac0_miim &gmac0_tx_bus2 &gmac0_rx_bus2 &gmac0_rgmii_clk &gmac0_rgmii_bus>; tx_delay = <0x44>; /* rx_delay = <0x4f>; */ phy-handle = <&rgmii_phy0>; status = "okay"; }; &gmac1 { /* Use rgmii-rxid mode to disable rx delay inside Soc */ phy-mode = "rgmii-rxid"; clock_in_out = "output"; snps,reset-gpio = <&gpio4 RK_PA2 GPIO_ACTIVE_LOW>; snps,reset-active-low; /* Reset time is 20ms, 100ms for rtl8211f */ snps,reset-delays-us = <0 20000 100000>; pinctrl-names = "default"; pinctrl-0 = <&gmac1_miim &gmac1_tx_bus2 &gmac1_rx_bus2 &gmac1_rgmii_clk &gmac1_rgmii_bus>; tx_delay = <0x42>; /* rx_delay = <0x4f>; */ phy-handle = <&rgmii_phy1>; status = "okay"; }; &hdmi0 { enable-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>; cec-enable = "true" ; status = "okay"; }; &hdmi0_in_vp0 { status = "okay"; }; &hdmi0_sound { status = "okay"; }; &hdptxphy_hdmi0 { status = "okay"; }; /* lt6911 hdmi in */ &mipi2_csi2 { status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; mipi2_csi2_input: endpoint@1 { reg = <1>; remote-endpoint = <&csidphy0_out>; }; }; port@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; mipi2_csi2_output: endpoint@0 { reg = <0>; remote-endpoint = <&cif_mipi2_in0>; }; }; }; }; &csi2_dphy0 { status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; mipi_in_lt6911: endpoint@1 { reg = <1>; remote-endpoint = <<6911_out>; data-lanes = <1 2 3 4>; }; }; port@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; csidphy0_out: endpoint@0 { reg = <0>; remote-endpoint = <&mipi2_csi2_input>; }; }; }; }; &csi2_dphy0_hw { status = "okay"; }; &i2c7 { pinctrl-names = "default"; pinctrl-0 = <&i2c7m2_xfer>; status = "okay"; lt6911:lt6911@2b { compatible = "lontium,lt6911uxc"; status = "okay"; reg = <0x2b>; clocks = <&ext_cam_clk>; clock-names = "xvclk"; power-domains = <&power RK3588_PD_VI>; pinctrl-names = "default"; pinctrl-0 = <<6911uxc_pin>; interrupt-parent = <&gpio3>; interrupts = ; reset-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_LOW>; plugin-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; rockchip,camera-module-index = <1>; rockchip,camera-module-facing = "back"; rockchip,camera-module-name = "lt6911"; rockchip,camera-module-lens-name = "default"; port { lt6911_out: endpoint { remote-endpoint = <&mipi_in_lt6911>; data-lanes = <1 2 3 4>; }; }; }; }; &rkcif { status = "okay"; }; &rkcif_mipi_lvds2 { status = "okay"; port { cif_mipi2_in0: endpoint { remote-endpoint = <&mipi2_csi2_output>; }; }; }; &rkcif_mipi_lvds2_sditf { status = "okay"; port { mipi_lvds2_sditf: endpoint { remote-endpoint = <&isp0_vir0>; }; }; }; &rkcif_mmu { status = "okay"; }; &rkisp0 { status = "okay"; }; &isp0_mmu { status = "okay"; }; &rkisp0_vir0 { status = "okay"; port { #address-cells = <1>; #size-cells = <0>; isp0_vir0: endpoint@0 { reg = <0>; remote-endpoint = <&mipi_lvds2_sditf>; }; }; }; /* lt6911 hdmi in end */ /* Should work with at least 128MB cma reserved above. */ &hdmirx_ctrler { status = "disabled"; /* Effective level used to trigger HPD: 0-low, 1-high */ hpd-trigger-level = <1>; hdmirx-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>; //gpio1_d5 pinctrl-names = "default"; pinctrl-0 = <&hdmim1_rx &hdmirx_det>; }; &i2c0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c0m2_xfer>; vdd_cpu_big0_s0: vdd_cpu_big0_mem_s0: rk8602@42 { compatible = "rockchip,rk8602"; reg = <0x42>; vin-supply = <&vcc5v0_sys>; regulator-compatible = "rk860x-reg"; regulator-name = "vdd_cpu_big0_s0"; regulator-min-microvolt = <550000>; regulator-max-microvolt = <1050000>; regulator-ramp-delay = <2300>; rockchip,suspend-voltage-selector = <1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; }; vdd_cpu_big1_s0: vdd_cpu_big1_mem_s0: rk8603@43 { compatible = "rockchip,rk8603"; reg = <0x43>; vin-supply = <&vcc5v0_sys>; regulator-compatible = "rk860x-reg"; regulator-name = "vdd_cpu_big1_s0"; regulator-min-microvolt = <550000>; regulator-max-microvolt = <1050000>; regulator-ramp-delay = <2300>; rockchip,suspend-voltage-selector = <1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; }; }; &i2c2 { status = "okay"; vdd_npu_s0: vdd_npu_mem_s0: rk8602@42 { compatible = "rockchip,rk8602"; reg = <0x42>; vin-supply = <&vcc5v0_sys>; regulator-compatible = "rk860x-reg"; regulator-name = "vdd_npu_s0"; regulator-min-microvolt = <550000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <2300>; rockchip,suspend-voltage-selector = <1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; }; }; &i2c3 { status = "okay"; es8388: es8388@10 { status = "okay"; #sound-dai-cells = <0>; compatible = "everest,es8388", "everest,es8323"; reg = <0x10>; clocks = <&mclkout_i2s0>; clock-names = "mclk"; assigned-clocks = <&mclkout_i2s0>; assigned-clock-rates = <12288000>; pinctrl-names = "default"; pinctrl-0 = <&i2s0_mclk>; }; }; &i2c5 { pinctrl-names = "default"; pinctrl-0 = <&i2c5m3_xfer>; status = "okay"; }; &i2c6 { status = "okay"; usbc0: fusb302@22 { compatible = "fcs,fusb302"; reg = <0x22>; interrupt-parent = <&gpio3>; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&usbc0_int>; vbus-supply = <&vcc5v0_otg>; status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; usbc0_role_sw: endpoint@0 { remote-endpoint = <&dwc3_0_role_switch>; }; }; }; usb_con: connector { compatible = "usb-c-connector"; label = "USB-C"; data-role = "dual"; power-role = "dual"; try-power-role = "sink"; op-sink-microwatt = <1000000>; sink-pdos = ; source-pdos = ; altmodes { #address-cells = <1>; #size-cells = <0>; altmode@0 { reg = <0>; svid = <0xff01>; vdo = <0xffffffff>; }; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; usbc0_orien_sw: endpoint { remote-endpoint = <&usbdp_phy0_orientation_switch>; }; }; port@1 { reg = <1>; dp_altmode_mux: endpoint { remote-endpoint = <&usbdp_phy0_dp_altmode_mux>; }; }; }; }; }; hym8563: hym8563@51 { compatible = "haoyu,hym8563"; reg = <0x51>; #clock-cells = <0>; clock-frequency = <32768>; clock-output-names = "hym8563"; pinctrl-names = "default"; pinctrl-0 = <&hym8563_int>; interrupt-parent = <&gpio0>; interrupts = ; wakeup-source; }; }; &i2s0_8ch { status = "okay"; pinctrl-0 = <&i2s0_lrck &i2s0_sclk &i2s0_sdi0 &i2s0_sdo0>; }; //hdmi01 sound &i2s5_8ch { status = "okay"; }; //hdmi02 sound &i2s6_8ch { status = "okay"; }; //hdmiin sound &i2s7_8ch { status = "okay"; }; &spdif_tx2 { status = "okay"; }; &spdif_tx5 { status = "okay"; }; &mdio0 { rgmii_phy0: phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x1>; }; }; &mdio1 { rgmii_phy1: phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x1>; }; }; &pcie2x1l0 { reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; rockchip,skip-scan-in-resume; status = "okay"; }; &pcie30phy { rockchip,pcie30-phymode = ; status = "okay"; }; &pcie3x4 { reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie30>; status = "okay"; }; &rk806single { pinctrl-names = "default", "pmic-power-off"; pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, <&rk806_dvs2_null>, <&rk806_dvs3_null>; pinctrl-1 = <&rk806_dvs1_slp>, <&rk806_dvs2_null>, <&rk806_dvs3_null>; regulators { avcc_1v8_s0: PLDO_REG1 { regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-name = "avcc_1v8_s0"; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <1800000>; }; }; }; }; &vdd_log_s0 { //fox.luo@2022.05.26 don't wake up regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <750000>; }; }; &rockchip_suspend { status = "okay"; rockchip,sleep-debug-en = <1>; rockchip,virtual-poweroff = <1>; rockchip,sleep-mode-config = < (0 | RKPM_SLP_ARMOFF_DDRPD ) >; rockchip,wakeup-config = < (0 | RKPM_CPU0_WKUP_EN | RKPM_GPIO_WKUP_EN ) >; }; &route_dp1 { status = "okay"; connect = <&vp2_out_dp1>; }; &route_hdmi0 { status = "okay"; connect = <&vp0_out_hdmi0>; }; &sata0 { status = "okay"; }; //rs485 &uart0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart0m2_xfer>; }; //rs232 &uart3 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart3m2_xfer>; }; &uart6 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart6m1_xfer &uart6m1_ctsn>; }; &sdhci { bus-width = <8>; no-sdio; no-sd; non-removable; max-frequency = <200000000>; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe; full-pwr-cycle-in-suspend; status = "okay"; }; &sdmmc { max-frequency = <150000000>; no-sdio; no-mmc; bus-width = <4>; cap-mmc-highspeed; cap-sd-highspeed; disable-wp; sd-uhs-sdr104; vqmmc-supply = <&vccio_sd_s0>; status = "okay"; }; &pinctrl { wireless-bluetooth { uart6_gpios: uart6-gpios { rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; }; bt_gpio: bt-gpio { rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>, <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>; }; }; wireless-wlan { wifi_host_wake_irq: wifi-host-wake-irq { rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>; }; wifi_poweren_gpio: wifi-poweren-gpio { rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; }; }; buttons { pwrbtn: pwrbtn { rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>; //rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; }; }; hdmi { hdmirx_det: hdmirx-det { rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; }; }; headphone { hp_det: hp-det { rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; }; }; hym8563 { hym8563_int: hym8563-int { rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; }; }; usb { vcc5v0_host_en: vcc5v0-host-en { rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; }; }; usb-typec { usbc0_int: usbc0-int { rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; }; vcc5v0_otg_en: vcc5v0-otg-en { rockchip,pins = <4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; }; }; hdmiin { lt6911uxc_pin: lt6911uxc-pin { rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>, <4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; }; }; pcie { vcc3v3_pcie30_en: vcc3v3-pcie30-en { rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>; }; }; }; //type-c0 &u2phy0 { status = "okay"; }; &u2phy1 { status = "okay"; }; //usb2.0 host0 &u2phy2 { status = "okay"; }; //usb2.0 host1 &u2phy3 { status = "okay"; }; &u2phy0_otg { rockchip,typec-vbus-det; status = "okay"; }; &u2phy1_otg { phy-supply = <&vcc5v0_host>; status = "okay"; }; &u2phy2_host { phy-supply = <&vcc5v0_host>; status = "okay"; }; &u2phy3_host { phy-supply = <&vcc5v0_host>; status = "okay"; }; &usb_host0_ehci { status = "okay"; }; &usb_host0_ohci { status = "okay"; }; &usb_host1_ehci { status = "okay"; }; &usb_host1_ohci { status = "okay"; }; &usbdp_phy0 { orientation-switch; svid = <0xff01>; sbu1-dc-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; sbu2-dc-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; status = "okay"; port { #address-cells = <1>; #size-cells = <0>; usbdp_phy0_orientation_switch: endpoint@0 { reg = <0>; remote-endpoint = <&usbc0_orien_sw>; }; usbdp_phy0_dp_altmode_mux: endpoint@1 { reg = <1>; remote-endpoint = <&dp_altmode_mux>; }; }; }; &usbdp_phy0_dp { status = "okay"; }; &usbdp_phy0_u3 { status = "okay"; }; &usbdp_phy1 { rockchip,dp-lane-mux = < 0 1 2 3 >; status = "okay"; }; &usbdp_phy1_dp { status = "okay"; }; &usbdp_phy1_u3 { maximum-speed = "high-speed"; status = "okay"; }; &usbdrd3_0 { status = "okay"; }; &usbdrd3_1 { status = "okay"; }; &usbdrd_dwc3_0 { dr_mode = "otg"; usb-role-switch; status = "okay"; port { #address-cells = <1>; #size-cells = <0>; dwc3_0_role_switch: endpoint@0 { reg = <0>; remote-endpoint = <&usbc0_role_sw>; }; }; }; &usbdrd_dwc3_1 { dr_mode = "host"; maximum-speed = "high-speed"; status = "okay"; }; &usbhost3_0 { status = "okay"; }; &usbhost_dwc3_0 { dr_mode = "host"; status = "okay"; }; &vdd_vdenc_s0 { regulator-init-microvolt = <750000>; };