]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: allwinner: h6: enable USB2 on Pine H64
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 4 Oct 2018 12:28:51 +0000 (20:28 +0800)
committerChen-Yu Tsai <wens@csie.org>
Thu, 15 Nov 2018 07:54:39 +0000 (15:54 +0800)
Pine H64 board has both the USB2 OTG pins and the USB2 host pins on H6
SoC wired out to USB Type-A ports.

Enable them.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts

index 9f127c6115877460a62665e5d9da665495242646..bdb8470fc8dc96925007922a0a6d8a1dd663d886 100644 (file)
@@ -95,6 +95,14 @@ hdmi_out_con: endpoint {
        };
 };
 
+&ehci0 {
+       status = "okay";
+};
+
+&ehci3 {
+       status = "okay";
+};
+
 &mmc0 {
        pinctrl-names = "default";
        pinctrl-0 = <&mmc0_pins>;
@@ -115,6 +123,14 @@ &mmc2 {
        status = "okay";
 };
 
+&ohci0 {
+       status = "okay";
+};
+
+&ohci3 {
+       status = "okay";
+};
+
 &r_i2c {
        status = "okay";
 
@@ -240,3 +256,14 @@ &uart0 {
        pinctrl-0 = <&uart0_ph_pins>;
        status = "okay";
 };
+
+&usb2otg {
+       dr_mode = "host";
+       status = "okay";
+};
+
+&usb2phy {
+       usb0_vbus-supply = <&reg_usb_vbus>;
+       usb3_vbus-supply = <&reg_usb_vbus>;
+       status = "okay";
+};