1
0

201-ARM-dts-sun8i-fix-USB-Ethernet-of-Orange-Pi-R1.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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
  5. Orange Pi R1 uses a Realtek RTL8152B USB Ethernet chip, which is easily
  6. seen on the board but not show in the schematics. A regulator for the
  7. power of the RTL8152B chip is hidden, which uses the same pin with the
  8. Wi-Fi regulator on the original Orange Pi Zero.
  9. Add this regulator back to the device tree, and bind it to USB1.
  10. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
  11. ---
  12. arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 18 ++++++++++++++++++
  13. 1 file changed, 18 insertions(+)
  14. --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
  15. +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts
  16. @@ -49,6 +49,20 @@
  17. /delete-node/ reg_vcc_wifi;
  18. + /*
  19. + * Ths pin of this regulator is the same with the Wi-Fi extra
  20. + * regulator on the original Zero. However it's used for USB
  21. + * Ethernet rather than the Wi-Fi now.
  22. + */
  23. + reg_vcc_usb_eth: reg-vcc-usb-ethernet {
  24. + compatible = "regulator-fixed";
  25. + regulator-min-microvolt = <5000000>;
  26. + regulator-max-microvolt = <5000000>;
  27. + regulator-name = "vcc-usb-ethernet";
  28. + enable-active-high;
  29. + gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
  30. + };
  31. +
  32. aliases {
  33. ethernet1 = &rtl8189etv;
  34. };
  35. @@ -71,3 +85,7 @@
  36. reg = <1>;
  37. };
  38. };
  39. +
  40. +&usbphy {
  41. + usb1_vbus-supply = <&reg_vcc_usb_eth>;
  42. +};