aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.io>2017-12-28 09:05:38 -0500
committerChen-Yu Tsai <wens@csie.org>2017-12-29 00:02:03 -0500
commit532c129e11788954a4fc74baf6b787aa2cff6a67 (patch)
tree80b46ca0f24088aa3171498a79943a7c6d31dc29
parent2ce3dc66d75fc204cc42bc4ee9c6f612ef4a8949 (diff)
ARM: dts: sun8i: fix USB Ethernet of Orange Pi R1
Orange Pi R1 uses a Realtek RTL8152B USB Ethernet chip, which is easily seen on the board but not show in the schematics. A regulator for the power of the RTL8152B chip is hidden, which uses the same pin with the Wi-Fi regulator on the original Orange Pi Zero. Add this regulator back to the device tree, and bind it to USB1. Tested-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
-rw-r--r--arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
index 32a6d312422e..112f09c67d67 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
@@ -49,6 +49,20 @@
49 49
50 /delete-node/ reg_vcc_wifi; 50 /delete-node/ reg_vcc_wifi;
51 51
52 /*
53 * Ths pin of this regulator is the same with the Wi-Fi extra
54 * regulator on the original Zero. However it's used for USB
55 * Ethernet rather than the Wi-Fi now.
56 */
57 reg_vcc_usb_eth: reg-vcc-usb-ethernet {
58 compatible = "regulator-fixed";
59 regulator-min-microvolt = <3300000>;
60 regulator-max-microvolt = <3300000>;
61 regulator-name = "vcc-usb-ethernet";
62 enable-active-high;
63 gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
64 };
65
52 aliases { 66 aliases {
53 ethernet1 = &rtl8189etv; 67 ethernet1 = &rtl8189etv;
54 }; 68 };
@@ -71,3 +85,7 @@
71 reg = <1>; 85 reg = <1>;
72 }; 86 };
73}; 87};
88
89&usbphy {
90 usb1_vbus-supply = <&reg_vcc_usb_eth>;
91};