summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-h3-orangepi-zero-plus2.dts
diff options
context:
space:
mode:
authorDiego Rondini <diego.rondini@kynetics.com>2020-06-15 16:02:23 +0300
committerMaxime Ripard <maxime@cerno.tech>2020-06-16 13:35:33 +0300
commit43aad09c792894727d8f6914534f43df23079926 (patch)
treef2962a0a980afabb122764a21ddcabff80f7535f /arch/arm/boot/dts/sun8i-h3-orangepi-zero-plus2.dts
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff)
downloadlinux-43aad09c792894727d8f6914534f43df23079926.tar.xz
ARM: dts: orange-pi-zero-plus2: enable USB OTG port
Enable support for USB OTG port on Orange Pi Zero Plus 2 (both H3 and H5 variants). As, according to the board schematics, the USB OTG port cannot provide power to external devices, we set dr_mode to peripheral. Signed-off-by: Diego Rondini <diego.rondini@kynetics.com> Link: https://lore.kernel.org/r/20200615130223.34464-1-diego.rondini@kynetics.com Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-h3-orangepi-zero-plus2.dts')
-rw-r--r--arch/arm/boot/dts/sun8i-h3-orangepi-zero-plus2.dts23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-zero-plus2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-zero-plus2.dts
index b8f46e2802fd..cbe32b975c5f 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-zero-plus2.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-zero-plus2.dts
@@ -88,6 +88,10 @@
status = "okay";
};
+&ehci0 {
+ status = "okay";
+};
+
&hdmi {
status = "okay";
};
@@ -132,8 +136,27 @@
status = "okay";
};
+&ohci0 {
+ status = "okay";
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pa_pins>;
status = "okay";
};
+
+&usb_otg {
+ /*
+ * According to schematics CN1 MicroUSB port can be used to take
+ * external 5V to power up the board VBUS. On the contrary CN1 MicroUSB
+ * port cannot provide power externally even if the board is powered
+ * via GPIO pins. It thus makes sense to force peripheral mode.
+ */
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
+&usbphy {
+ status = "okay";
+};