Thread (3 messages) 3 messages, 2 authors, 2021-05-10

Re: [PATCH] arm64: dts: allwinner: Pine H64: Enable USB 3.0 port

From: Jernej Škrabec <jernej.skrabec@gmail.com>
Date: 2021-05-10 15:31:50
Also in: linux-arm-kernel, linux-sunxi

Hi Andre!

Dne ponedeljek, 10. maj 2021 ob 15:01:19 CEST je Andre Przywara napisal(a):
quoted hunk ↗ jump to hunk
The Pine H64 board features an USB 3.0 type A port, which works just
fine.

Enable the controller and USB PHY in the .dts to make it usable.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/
arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
quoted hunk ↗ jump to hunk
index 1ffd68f43f87..9061c9913f4c 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
@@ -89,6 +89,10 @@
 	status = "okay";
 };
 
+&dwc3 {
+	status = "okay";
+};
+
 &ehci0 {
 	status = "okay";
 };
@@ -332,3 +336,8 @@
 	usb3_vbus-supply = <&reg_usb_vbus>;
 	status = "okay";
 };
+
+&usb3phy {
+	phy-supply = <&reg_usb_vbus>;
+	status = "okay";
+};
-- 
2.17.5
Exactly the same patch was already proposed by Icenowy. In short, PHY is 
powered by internal power and doesn't need phy-supply property. It's connector 
that needs power supply. One of her latest attempts can be found here: 
https://lore.kernel.org/patchwork/cover/1058917/

Best regards,
Jernej

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help