1 From b76dc5927f6442df913f03ed261c5bff18a98df6 Mon Sep 17 00:00:00 2001
2 From: Icenowy Zheng <icenowy@aosc.io>
3 Date: Thu, 28 Dec 2017 21:01:56 +0800
4 Subject: [PATCH] ARM: dts: sun8i: fix USB Ethernet of Orange Pi R1
6 Orange Pi R1 uses a Realtek RTL8152B USB Ethernet chip, which is easily
7 seen on the board but not show in the schematics. A regulator for the
8 power of the RTL8152B chip is hidden, which uses the same pin with the
9 Wi-Fi regulator on the original Orange Pi Zero.
11 Add this regulator back to the device tree, and bind it to USB1.
13 Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
15 arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 18 ++++++++++++++++++
16 1 file changed, 18 insertions(+)
18 --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
19 +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
22 /delete-node/ reg_vcc_wifi;
25 + * Ths pin of this regulator is the same with the Wi-Fi extra
26 + * regulator on the original Zero. However it's used for USB
27 + * Ethernet rather than the Wi-Fi now.
29 + reg_vcc_usb_eth: reg-vcc-usb-ethernet {
30 + compatible = "regulator-fixed";
31 + regulator-min-microvolt = <5000000>;
32 + regulator-max-microvolt = <5000000>;
33 + regulator-name = "vcc-usb-ethernet";
35 + gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
39 ethernet1 = &rtl8189etv;
47 + usb1_vbus-supply = <®_vcc_usb_eth>;