[PATCH v2] arm64: dts: rockchip: enable otg/drd operation of usb_host0_xhci in rk3568

Michael Riesch michael.riesch at wolfvision.net
Sun May 1 23:45:51 PDT 2022


This USB 3.0 controller of the Rockchip RK3568 is capable of OTG/DRD
operation. Enable it in the device tree.

Signed-off-by: Michael Riesch <michael.riesch at wolfvision.net>
---
v2:
 - As pointed out by Nicolas, this is RK3568 specific. Moved change to
   rk3568.dtsi.

 arch/arm64/boot/dts/rockchip/rk3568.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
index 5eafddf62edc..bbfe8f3d68b7 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
@@ -134,6 +134,7 @@ power-domain at RK3568_PD_PIPE {
 };

 &usb_host0_xhci {
+	dr_mode = "otg";
 	phys = <&usb2phy0_otg>, <&combphy0 PHY_TYPE_USB3>;
 	phy-names = "usb2-phy", "usb3-phy";
 };
--
2.30.2



More information about the linux-arm-kernel mailing list