Commit 43aad09c authored by Diego Rondini's avatar Diego Rondini Committed by Maxime Ripard

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: default avatarDiego Rondini <diego.rondini@kynetics.com>
Link: https://lore.kernel.org/r/20200615130223.34464-1-diego.rondini@kynetics.comSigned-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent b3a9e3b9
......@@ -88,6 +88,10 @@ &de {
status = "okay";
};
&ehci0 {
status = "okay";
};
&hdmi {
status = "okay";
};
......@@ -132,8 +136,27 @@ &mmc2 {
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";
};
......@@ -48,6 +48,10 @@ &de {
status = "okay";
};
&ehci0 {
status = "okay";
};
&hdmi {
status = "okay";
};
......@@ -92,6 +96,10 @@ &mmc2 {
status = "okay";
};
&ohci0 {
status = "okay";
};
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pa_pins>;
......@@ -103,3 +111,18 @@ &uart1 {
pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_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";
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment