ARM: sun8i: v40: enable USB host ports for Banana Pi M2 Berry
authorIcenowy Zheng <icenowy@aosc.io>
Fri, 6 Apr 2018 14:03:44 +0000 (22:03 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 16 Apr 2018 12:40:29 +0000 (14:40 +0200)
Banana Pi M2 Berry has an on-board USB Hub that provides 4 USB Type-A
ports, and it's connected to the USB1 port of the SoC.

Enable it.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts

index a26d72c..35859d8 100644 (file)
        };
 };
 
+&ehci1 {
+       /* Terminus Tech FE 1.1s 4-port USB 2.0 hub here */
+       status = "okay";
+};
+
 &i2c0 {
        status = "okay";
 
        pinctrl-0 = <&uart0_pb_pins>;
        status = "okay";
 };
+
+&usbphy {
+       usb1_vbus-supply = <&reg_vcc5v0>;
+       status = "okay";
+};