[PATCH 08/11] arm64: dts: rockchip: Add USB-C DP AltMode for RG-Vita-Pro
From: Sebastian Reichel
Date: Wed Nov 25 2026 - 20:16:24 EST
Properly describe the USB-C setup incl. DP AltMode support, which also
fixes the USBDP PHY ports description for the RG-Vita-Pro, so that it
follows the documented ABI.
Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>
---
.../dts/rockchip/rk3576-anbernic-rg-vita-pro.dts | 78 +++++++++++++++++++---
1 file changed, 68 insertions(+), 10 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts b/arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts
index 85576a437f7b..5da90f3792a1 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts
@@ -469,6 +469,22 @@ mipi_out_panel: endpoint {
};
};
+&dp {
+ status = "okay";
+};
+
+&dp0_in {
+ dp0_in_vp2: endpoint {
+ remote-endpoint = <&vp2_out_dp0>;
+ };
+};
+
+&dp0_out {
+ dp0_out_con: endpoint {
+ remote-endpoint = <&usbdp_phy_dp_in>;
+ };
+};
+
&gpu {
mali-supply = <&vdd_gpu_s0>;
status = "okay";
@@ -932,22 +948,25 @@ ports {
port@0 {
reg = <0>;
- usbc0_hs_ep: endpoint {
+ usbc0_hs: endpoint {
remote-endpoint = <&usb_drd0_hs_ep>;
};
};
+
port@1 {
reg = <1>;
- usbc0_ss_ep: endpoint {
- remote-endpoint = <&usb_drd0_ss_ep>;
+ usbc0_ss: endpoint {
+ remote-endpoint = <&usbdp_phy_ss_out>;
};
};
+
port@2 {
reg = <2>;
- usbc0_dp_ep: endpoint {
- remote-endpoint = <&usbdp_phy_ep>;
+ usbc0_sbu: endpoint {
+ remote-endpoint = <&usbdp_phy0_dp_out>;
};
};
+
};
};
};
@@ -1221,6 +1240,13 @@ vp1_out_dsi: endpoint@ROCKCHIP_VOP2_EP_MIPI0 {
};
};
+&vp2 {
+ vp2_out_dp0: endpoint@a {
+ reg = <ROCKCHIP_VOP2_EP_DP0>;
+ remote-endpoint = <&dp0_in_vp2>;
+ };
+};
+
&u2phy0 {
status = "okay";
};
@@ -1258,9 +1284,40 @@ &usbdp_phy {
sbu2-dc-gpios = <&gpio4 RK_PB7 GPIO_ACTIVE_HIGH>;
status = "okay";
- port {
- usbdp_phy_ep: endpoint {
- remote-endpoint = <&usbc0_dp_ep>;
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ usbdp_phy_ss_out: endpoint {
+ remote-endpoint = <&usbc0_ss>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ usbdp_phy_ss_in: endpoint {
+ remote-endpoint = <&usb_drd0_ss_ep>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+
+ usbdp_phy_dp_in: endpoint {
+ remote-endpoint = <&dp0_out_con>;
+ };
+ };
+
+ port@3 {
+ reg = <3>;
+
+ usbdp_phy0_dp_out: endpoint {
+ remote-endpoint = <&usbc0_sbu>;
+ };
};
};
};
@@ -1277,15 +1334,16 @@ ports {
port@0 {
reg = <0>;
usb_drd0_hs_ep: endpoint {
- remote-endpoint = <&usbc0_hs_ep>;
+ remote-endpoint = <&usbc0_hs>;
};
};
port@1 {
reg = <1>;
usb_drd0_ss_ep: endpoint {
- remote-endpoint = <&usbc0_ss_ep>;
+ remote-endpoint = <&usbdp_phy_ss_in>;
};
};
};
+
};
--
2.53.0