Skip to contentSkip to conversation

arm64: dts: allwinner: Pine H64: Enable USB 3.0 port

PATCH In review Andre Przywara 2 participants 3 messages May 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: allwinner: Pine H64: Enable USB 3.0 port

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.

---
 arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +9 -0
index 1ffd68f43f87..9061c9913f4c 100644
@@ -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";
+};
Signature · 1 line
2.17.5
maintainer
#1 lore raw

Hi Andre!

Dne ponedeljek, 10. maj 2021 ob 15:01:19 CEST je Andre Przywara napisal(a):

arch/

Quoted 11 lines

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.

---
 arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/ renamed from arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +0 -0

arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts

Quoted 26 lines

index 1ffd68f43f87..9061c9913f4c 100644

arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +9 -0
@@ -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";
+};
Signature · 1 line
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

maintainer
#2 lore raw

Dne ponedeljek, 10. maj 2021 ob 17:30:44 CEST je Jernej Škrabec napisal(a):

Quoted 36 lines

Hi Andre!

Dne ponedeljek, 10. maj 2021 ob 15:01:19 CEST je Andre Przywara napisal(a):

arch/

Quoted 11 lines

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.

---
 arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/ renamed from arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +0 -0

arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts

Quoted 21 lines

index 1ffd68f43f87..9061c9913f4c 100644

arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +7 -0
@@ -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>;
Quoted 8 lines
Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +2 -0
+	status = "okay";
+};
Signature · 1 line
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

Quoted 2 lines

that needs power supply. One of her latest attempts can be found here:
https://lore.kernel.org/patchwork/cover/1058917/

P.S: Maybe wait on outcome of https://lore.kernel.org/linux-sunxi/
[email protected]/T/#t which may change USB3 node form.

Best regards,
Jernej