linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/7] ARM: dts: sun6i: Add EHCI support for the M9 board
Date: Thu, 13 Nov 2014 09:31:48 +0000	[thread overview]
Message-ID: <1415871109-28332-6-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1415871109-28332-1-git-send-email-hdegoede@redhat.com>

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>
---
 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@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";
@@ -39,6 +52,12 @@
 				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 {
@@ -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


  parent reply	other threads:[~2014-11-13  9:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13  9:31 [PATCH 1/7] ARM: dts: sunxi: Add regulator-boot-on property to ahci-5v regulator Hans de Goede
2014-11-13  9:31 ` [PATCH 2/7] ARM: dts: sun4i: Add simplefb node Hans de Goede
2014-11-13  9:31 ` [PATCH 3/7] ARM: dts: sun5i: " Hans de Goede
2014-11-13  9:31 ` [PATCH 4/7] ARM: dts: sun6i: " Hans de Goede
2014-11-13 16:46   ` Maxime Ripard
2014-11-13 17:52     ` Hans de Goede
2014-11-14 10:24       ` Maxime Ripard
2014-11-14 10:30         ` Hans de Goede
2014-11-14 11:21           ` Maxime Ripard
2014-11-13  9:31 ` [PATCH 5/7] ARM: dts: sun7i: " Hans de Goede
2014-11-13  9:31 ` Hans de Goede [this message]
2014-11-13 16:47   ` [PATCH 6/7] ARM: dts: sun6i: Add EHCI support for the M9 board Maxime Ripard
2014-11-13  9:31 ` [PATCH 7/7] ARM: dts: sun6i: Add support for the status led Hans de Goede
2014-11-13 16:48   ` Maxime Ripard
2014-11-13 16:49 ` [PATCH 1/7] ARM: dts: sunxi: Add regulator-boot-on property to ahci-5v regulator Maxime Ripard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1415871109-28332-6-git-send-email-hdegoede@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).