summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun6i-a31-m9.dts
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-11-13 12:31:48 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-11-13 19:47:06 +0300
commit5070ac3ee2e987a9704d8d908731f11ed07399f4 (patch)
tree333643e7b65bbe71b1269770a164fcc2adb633bc /arch/arm/boot/dts/sun6i-a31-m9.dts
parent0d716ea960e55bacbcd1ae93e4c6186dfe4b65a8 (diff)
downloadlinux-5070ac3ee2e987a9704d8d908731f11ed07399f4.tar.xz
ARM: dts: sun6i: Add EHCI support for the M9 board
The Mele M9 / A1000G quad uses both usb-ports, one goes to an internal usb wifi card, the other to a build-in usb-hub, so neither need their OHCI companion controller to be enabled since the are always connected at USB-2 speeds. The controller which is attached to the wifi also does not need a vbus regulator. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun6i-a31-m9.dts')
-rw-r--r--arch/arm/boot/dts/sun6i-a31-m9.dts27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31-m9.dts b/arch/arm/boot/dts/sun6i-a31-m9.dts
index c887be6cea3d..e81eed328c82 100644
--- a/arch/arm/boot/dts/sun6i-a31-m9.dts
+++ b/arch/arm/boot/dts/sun6i-a31-m9.dts
@@ -68,6 +68,19 @@
status = "okay";
};
+ usbphy: phy@01c19400 {
+ usb1_vbus-supply = <&reg_usb1_vbus>;
+ status = "okay";
+ };
+
+ ehci0: usb@01c1a000 {
+ status = "okay";
+ };
+
+ ehci1: usb@01c1b000 {
+ status = "okay";
+ };
+
pio: pinctrl@01c20800 {
mmc0_cd_pin_m9: mmc0_cd_pin@0 {
allwinner,pins = "PH22";
@@ -75,6 +88,13 @@
allwinner,drive = <0>;
allwinner,pull = <1>;
};
+
+ usb1_vbus_pin_m9: usb1_vbus_pin@0 {
+ allwinner,pins = "PC27";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <0>;
+ allwinner,pull = <0>;
+ };
};
uart0: serial@01c28000 {
@@ -83,4 +103,11 @@
status = "okay";
};
};
+
+ reg_usb1_vbus: usb1-vbus {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb1_vbus_pin_m9>;
+ gpio = <&pio 2 27 0>;
+ status = "okay";
+ };
};