]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: dts: sun8i: fix USB Ethernet of Orange Pi R1
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 28 Dec 2017 14:05:38 +0000 (22:05 +0800)
committerChen-Yu Tsai <wens@csie.org>
Fri, 29 Dec 2017 05:02:03 +0000 (13:02 +0800)
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>
arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts

index 32a6d312422ed9c7687b0a1073f271823888afd5..112f09c67d67011f8754a21d118d630d4ac97805 100644 (file)
 
        /delete-node/ reg_vcc_wifi;
 
+       /*
+        * Ths pin of this regulator is the same with the Wi-Fi extra
+        * regulator on the original Zero. However it's used for USB
+        * Ethernet rather than the Wi-Fi now.
+        */
+       reg_vcc_usb_eth: reg-vcc-usb-ethernet {
+               compatible = "regulator-fixed";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-name = "vcc-usb-ethernet";
+               enable-active-high;
+               gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
+       };
+
        aliases {
                ethernet1 = &rtl8189etv;
        };
@@ -71,3 +85,7 @@
                reg = <1>;
        };
 };
+
+&usbphy {
+       usb1_vbus-supply = <&reg_vcc_usb_eth>;
+};