Skip to contentSkip to conversation

ARM: dts: sun8i: Fix power for USB Ethernet controller

PATCH New Hauke Mehrtens 2 participants 2 messages Dec 28, 2017

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

PATCH 1/1 ARM: dts: sun8i: Fix power for USB Ethernet controller

The RTL8152B USB controller needs a 3.3 volt power supply which is controlled by PAD20. Without this patch Linux will not see that there is a device connected to the USB bus and the 2. USB port will not work.

I do not of a better solution to add a regulator to a USB device.

---
 arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts +4 -2
index 32a6d312422e..1d5db0e0bd12 100644
@@ -47,13 +47,15 @@
 	model = "Xunlong Orange Pi R1";
 	compatible = "xunlong,orangepi-r1", "allwinner,sun8i-h2-plus";
 
-	/delete-node/ reg_vcc_wifi;
-
 	aliases {
 		ethernet1 = &rtl8189etv;
 	};
 };
 
+&reg_vcc_wifi {
+	regulator-always-on;
+};
+
 &ohci1 {
 	/*
 	 * RTL8152B USB-Ethernet adapter is connected to USB1,
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 ARM: dts: sun8i: Fix power for USB Ethernet controller

? 2017?12?28???? CST ??8:52:22?Hauke Mehrtens ???

Quoted 5 lines

The RTL8152B USB controller needs a 3.3 volt power supply which is controlled by PAD20. Without this patch Linux will not see that there is a device connected to the USB bus and the 2. USB port will not work.

I do not of a better solution to add a regulator to a USB device.

I have one.

Please check the patch I will send you soon.

Quoted 29 lines
---
 arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts index 32a6d312422e..1d5db0e0bd12 100644

arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts +4 -2
@@ -47,13 +47,15 @@
 	model = "Xunlong Orange Pi R1";
 	compatible = "xunlong,orangepi-r1", "allwinner,sun8i-h2-plus";
 
-	/delete-node/ reg_vcc_wifi;
-
 	aliases {
 		ethernet1 = &rtl8189etv;
 	};
 };
 
+&reg_vcc_wifi {
+	regulator-always-on;
+};
+
 &ohci1 {
 	/*
 	 * RTL8152B USB-Ethernet adapter is connected to USB1,