[PATCH 6/7] ARM: dts: sun6i: Add EHCI support for the M9 board
Hans de Goede
hdegoede at redhat.com
Thu Nov 13 01:31:48 PST 2014
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 at redhat.com>
---
arch/arm/boot/dts/sun6i-a31-m9.dts | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm/boot/dts/sun6i-a31-m9.dts b/arch/arm/boot/dts/sun6i-a31-m9.dts
index bc6115d..c85247e 100644
--- a/arch/arm/boot/dts/sun6i-a31-m9.dts
+++ b/arch/arm/boot/dts/sun6i-a31-m9.dts
@@ -32,6 +32,19 @@
status = "okay";
};
+ usbphy: phy at 01c19400 {
+ usb1_vbus-supply = <®_usb1_vbus>;
+ status = "okay";
+ };
+
+ ehci0: usb at 01c1a000 {
+ status = "okay";
+ };
+
+ ehci1: usb at 01c1b000 {
+ status = "okay";
+ };
+
pio: pinctrl at 01c20800 {
mmc0_cd_pin_m9: mmc0_cd_pin at 0 {
allwinner,pins = "PH22";
@@ -39,6 +52,12 @@
allwinner,drive = <0>;
allwinner,pull = <1>;
};
+ usb1_vbus_pin_m9: usb1_vbus_pin at 0 {
+ allwinner,pins = "PC27";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <0>;
+ allwinner,pull = <0>;
+ };
};
uart0: serial at 01c28000 {
@@ -47,4 +66,11 @@
status = "okay";
};
};
+
+ reg_usb1_vbus: usb1-vbus {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb1_vbus_pin_m9>;
+ gpio = <&pio 2 27 0>;
+ status = "okay";
+ };
};
--
2.1.0
More information about the linux-arm-kernel
mailing list