]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: sun8i: a83t: h8homlet-v2: Enable USB ports
authorChen-Yu Tsai <wens@csie.org>
Thu, 3 Aug 2017 08:14:11 +0000 (16:14 +0800)
committerChen-Yu Tsai <wens@csie.org>
Fri, 18 Aug 2017 16:25:25 +0000 (00:25 +0800)
The h8homlet board has the A83T's standard USB 1.1/2.0 host pair routed
to a USB host port on the board. The other USB host port is routed to
USB OTG controller.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts

index e0055180d29f164790105bc058af3285b53f8038..1f0d60afb25b695c44523c70d80677f1dd753ecb 100644 (file)
@@ -58,6 +58,10 @@ chosen {
        };
 };
 
+&ehci0 {
+       status = "okay";
+};
+
 &mmc0 {
        pinctrl-names = "default";
        pinctrl-0 = <&mmc0_pins>;
@@ -78,6 +82,20 @@ &mmc2 {
        status = "okay";
 };
 
+&ohci0 {
+       status = "okay";
+};
+
+&reg_usb0_vbus {
+       gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
+       status = "okay";
+};
+
+&reg_usb1_vbus {
+       gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
+       status = "okay";
+};
+
 &r_rsb {
        status = "okay";
 
@@ -118,3 +136,14 @@ &uart0 {
        pinctrl-0 = <&uart0_pb_pins>;
        status = "okay";
 };
+
+&usbphy {
+       usb0_vbus-supply = <&reg_usb0_vbus>;
+       usb1_vbus-supply = <&reg_usb1_vbus>;
+       status = "okay";
+};
+
+&usb_otg {
+       dr_mode = "host";
+       status = "okay";
+};