[PATCH 1/1] arm64: dts: rockchip: enable Type-C for 100ASK DshanPi A1
Chukun Pan
amadeus at jmu.edu.cn
Tue Dec 1 02:00:00 PST 2026
Enable the HUSB311 controller and the corresponding USB nodes on the
100ASK DshanPi A1. Remove the VBUS regulator from the USB controller
supply, as it is managed by TCPM. Tested using a USB 3.0 flash drive.
Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
---
.../dts/rockchip/rk3576-100ask-dshanpi-a1.dts | 94 ++++++++++++++++++-
1 file changed, 93 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts b/arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts
index 41c90414e898..e86a8bb8a28e 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts
@@ -11,6 +11,7 @@
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/soc/rockchip,vop2.h>
+#include <dt-bindings/usb/pd.h>
#include "rk3576.dtsi"
/ {
@@ -683,6 +684,64 @@ es8388: audio-codec at 11 {
};
};
+&i2c9 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c9m1_xfer>;
+ status = "okay";
+
+ usb-typec at 4e {
+ compatible = "hynetek,husb311", "richtek,rt1711h";
+ reg = <0x4e>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <RK_PC0 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usbcc_int_l>;
+ vbus-supply = <&vbus5v0_typec>;
+
+ connector {
+ compatible = "usb-c-connector";
+ label = "USB-C";
+ data-role = "dual";
+ pd-revision = /bits/ 8 <0x2 0x0 0x1 0x2>;
+ power-role = "source";
+ source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
+
+ altmodes {
+ displayport {
+ svid = /bits/ 16 <0xff01>;
+ vdo = <0xffffffff>;
+ };
+ };
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port at 0 {
+ reg = <0>;
+ usbc0_hs_ep: endpoint {
+ remote-endpoint = <&usb_drd0_hs_ep>;
+ };
+ };
+
+ port at 1 {
+ reg = <1>;
+ usbc0_ss_ep: endpoint {
+ remote-endpoint = <&usb_drd0_ss_ep>;
+ };
+ };
+
+ port at 2 {
+ reg = <2>;
+ usbc0_dp_ep: endpoint {
+ remote-endpoint = <&usbdp_phy_ep>;
+ };
+ };
+ };
+ };
+ };
+};
+
&mdio0 {
rgmii_phy0: phy at 0 {
compatible = "ethernet-phy-ieee802.3-c22";
@@ -748,6 +807,10 @@ usb {
typec5v_pwren_h: typec5v-pwren-h {
rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
};
+
+ usbcc_int_l: usbcc-int-l {
+ rockchip,pins = <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
};
};
@@ -791,7 +854,6 @@ &u2phy0 {
};
&u2phy0_otg {
- phy-supply = <&vbus5v0_typec>;
status = "okay";
};
@@ -811,11 +873,41 @@ &uart0 {
};
&usbdp_phy {
+ mode-switch;
+ orientation-switch;
+ sbu1-dc-gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
+ sbu2-dc-gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
status = "okay";
+
+ port {
+ usbdp_phy_ep: endpoint {
+ remote-endpoint = <&usbc0_dp_ep>;
+ };
+ };
};
&usb_drd0_dwc3 {
+ usb-role-switch;
status = "okay";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port at 0 {
+ reg = <0>;
+ usb_drd0_hs_ep: endpoint {
+ remote-endpoint = <&usbc0_hs_ep>;
+ };
+ };
+
+ port at 1 {
+ reg = <1>;
+ usb_drd0_ss_ep: endpoint {
+ remote-endpoint = <&usbc0_ss_ep>;
+ };
+ };
+ };
};
&usb_drd1_dwc3 {
--
2.34.1
More information about the Linux-rockchip
mailing list