diff mbox

[RFC,9/9] ARM: dts: sun8i: enable USB host for Banana Pi M2 Ultra

Message ID 20170217173722.6477-10-icenowy@aosc.xyz (mailing list archive)
State New, archived
Headers show

Commit Message

Icenowy Zheng Feb. 17, 2017, 5:37 p.m. UTC
Banana Pi M2 Ultra board features two USB host ports, connected to the
two USB host ports on the SoC.

Add support for them.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
---
 arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Comments

Maxime Ripard Feb. 21, 2017, 11:05 p.m. UTC | #1
On Sat, Feb 18, 2017 at 01:37:22AM +0800, Icenowy Zheng wrote:
> Banana Pi M2 Ultra board features two USB host ports, connected to the
> two USB host ports on the SoC.
> 
> Add support for them.
> 
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>

Same comment than for the DTSI. This should be merged with the rest of
the DTS' patch.

Maxime
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
index 1d824830a1ad..672fb7f0f393 100644
--- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
+++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
@@ -63,6 +63,14 @@ 
 	};
 };
 
+&ehci1 {
+	status = "okay";
+};
+
+&ehci2 {
+	status = "okay";
+};
+
 &i2c0 {
 	status = "okay";
 
@@ -154,8 +162,23 @@ 
 	status = "okay";
 };
 
+&ohci1 {
+	status = "okay";
+};
+
+&ohci2 {
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins_0>;
 	status = "okay";
 };
+
+&usbphy {
+	pinctrl-names = "default";
+	usb1_vbus-supply = <&reg_vcc5v0>;
+	usb2_vbus-supply = <&reg_vcc5v0>;
+	status = "okay";
+};