The ArmSoM Sige1 has two USB 2.0 Type-A HOST ports behind an onboard
USB hub, and one USB 2.0 Type-C OTG port.

Add support for using the USB 2.0 ports on ArmSoM Sige1.

The onboard USB hub handles OHCI so only the EHCI controller is enabled.

Signed-off-by: Jonas Karlman <[email protected]>
[added phy-supply for otg port]
Signed-off-by: Heiko Stuebner <[email protected]>
Link: https://patch.msgid.link/[email protected]

[ upstream commit: b6b74087f90a201cfdd6da6a43e7b92dba8370e3 ]

(cherry picked from commit 959d0d70460b569e212c0daa70404b794cbcd37c)
Signed-off-by: Jonas Karlman <[email protected]>
---
 .../arm64/rockchip/rk3528-armsom-sige1.dts    | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/dts/upstream/src/arm64/rockchip/rk3528-armsom-sige1.dts 
b/dts/upstream/src/arm64/rockchip/rk3528-armsom-sige1.dts
index c41af8fc0c8d..ee4183fb980d 100644
--- a/dts/upstream/src/arm64/rockchip/rk3528-armsom-sige1.dts
+++ b/dts/upstream/src/arm64/rockchip/rk3528-armsom-sige1.dts
@@ -480,3 +480,28 @@
                vddio-supply = <&vcc_1v8>;
        };
 };
+
+&usb_host0_ehci {
+       status = "okay";
+};
+
+&usb_host0_xhci {
+       extcon = <&usb2phy>;
+       maximum-speed = "high-speed";
+       phys = <&usb2phy_otg>;
+       phy-names = "usb2-phy";
+       status = "okay";
+};
+
+&usb2phy {
+       status = "okay";
+};
+
+&usb2phy_host {
+       status = "okay";
+};
+
+&usb2phy_otg {
+       phy-supply = <&vcc5v0_usb_otg>;
+       status = "okay";
+};
-- 
2.54.0

Reply via email to