summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
diff options
context:
space:
mode:
authorKrzysztof Adamski <k@japko.eu>2017-12-06 01:03:58 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-12-07 12:02:47 +0300
commit90706eb825661553a3fb321192143cdcd95cf13d (patch)
treec92f0598d39b7c6ec5dc7d0d0d4797c4a4046335 /arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
parent6ca358645d4dce309754d6541a1dc9d1108ca1e6 (diff)
downloadlinux-90706eb825661553a3fb321192143cdcd95cf13d.tar.xz
ARM: dts: sun8i: h3: enable USB OTG for NanoPi Neo board
Similarly to Orange Pi Zero, NanoPi Neo board has an USB OTG port with an ID pin but with unpowered VBUS. This patch enables this port in forced peripheral mode. ohci/ehci nodes are still enabled since the host mode may work if external power source is used. In that case, the mode can be switched for example via sysfs. The same strategy is used for Orange Pi Zero board DTS. Signed-off-by: Krzysztof Adamski <k@japko.eu> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts')
-rw-r--r--arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
index 78f6c24952dd..9f33f6fae595 100644
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
@@ -47,9 +47,26 @@
compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
};
+&ehci0 {
+ status = "okay";
+};
+
&emac {
phy-handle = <&int_mii_phy>;
phy-mode = "mii";
allwinner,leds-active-low;
status = "okay";
};
+
+&ohci0 {
+ status = "okay";
+};
+
+&usb_otg {
+ status = "okay";
+ dr_mode = "peripheral";
+};
+
+&usbphy {
+ usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
+};