devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Maxime Ripard
	<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
	Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: [PATCH 09/19] ARM: sun4i: dt: Add USB host nodes to hackberry dts
Date: Sat,  1 Mar 2014 20:26:28 +0100	[thread overview]
Message-ID: <1393701998-3553-10-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1393701998-3553-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Add nodes for the usb-phy and ehci- and ohci-usb-host controllers.

Based on fex file settings, the fex file also contains a mysterious line:
usb_hub_vcc_en_gpio = port:PB09<1><0><default><0>

Which also clashes with usbc0, which has:
usb_drv_vbus_gpio = port:PB09<1><0><default><0>

So if usb does not work properly we need someone with a hackberry to look
closer into this.

Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 arch/arm/boot/dts/sun4i-a10-hackberry.dts | 40 +++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/arch/arm/boot/dts/sun4i-a10-hackberry.dts b/arch/arm/boot/dts/sun4i-a10-hackberry.dts
index 6692d336..d7c17e4 100644
--- a/arch/arm/boot/dts/sun4i-a10-hackberry.dts
+++ b/arch/arm/boot/dts/sun4i-a10-hackberry.dts
@@ -13,6 +13,7 @@
 
 /dts-v1/;
 /include/ "sun4i-a10.dtsi"
+/include/ "sunxi-common-regulators.dtsi"
 
 / {
 	model = "Miniand Hackberry";
@@ -35,6 +36,28 @@
 			};
 		};
 
+		usbphy: phy@01c13400 {
+			usb1_vbus-supply = <&reg_usb1_vbus>;
+			usb2_vbus-supply = <&reg_usb2_vbus>;
+			status = "okay";
+		};
+
+		ehci0: usb@01c14000 {
+			status = "okay";
+		};
+
+		ohci0: usb@01c14400 {
+			status = "okay";
+		};
+
+		ehci1: usb@01c1c000 {
+			status = "okay";
+		};
+
+		ohci1: usb@01c1c400 {
+			status = "okay";
+		};
+
 		pio: pinctrl@01c20800 {
 			pinctrl-names = "default";
 			pinctrl-0 = <&hackberry_hogs>;
@@ -45,6 +68,13 @@
 				allwinner,drive = <0>;
 				allwinner,pull = <0>;
 			};
+
+			usb2_vbus_pin_hackberry: usb2_vbus_pin@0 {
+					allwinner,pins = "PH12";
+					allwinner,function = "gpio_out";
+					allwinner,drive = <0>;
+					allwinner,pull = <0>;
+			};
 		};
 
 		uart0: serial@01c28000 {
@@ -62,4 +92,14 @@
 		enable-active-high;
 		gpio = <&pio 7 19 0>;
 	};
+
+	reg_usb1_vbus: usb1-vbus {
+		status = "okay";
+	};
+
+	reg_usb2_vbus: usb2-vbus {
+		pinctrl-0 = <&usb2_vbus_pin_hackberry>;
+		gpio = <&pio 7 12 0>;
+		status = "okay";
+	};
 };
-- 
1.9.0

  parent reply	other threads:[~2014-03-01 19:26 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-01 19:26 [PATCH 00/19] ARM: sunxi: dt: ahci, ehci and ohci support Hans de Goede
     [not found] ` <1393701998-3553-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-03-01 19:26   ` [PATCH 01/19] ARM: sunxi: dt: Add sunxi-common-regulators include file Hans de Goede
2014-03-01 19:26   ` [PATCH 02/19] ARM: sun4i: dt: Add ahci / sata support Hans de Goede
2014-03-01 19:26   ` [PATCH 03/19] ARM: sun7i: " Hans de Goede
2014-03-01 19:26   ` [PATCH 04/19] ARM: sun4i: dt: Add USB host bindings Hans de Goede
2014-03-01 19:26   ` [PATCH 05/19] ARM: sun5i: " Hans de Goede
2014-03-01 19:26   ` [PATCH 06/19] ARM: sun7i: " Hans de Goede
2014-03-01 19:26   ` [PATCH 07/19] ARM: sun4i: dt: Add USB host nodes to Mele A1000 dts Hans de Goede
2014-03-01 19:26   ` [PATCH 08/19] ARM: sun4i: dt: Add USB host nodes to cubieboard dts Hans de Goede
2014-03-01 19:26   ` Hans de Goede [this message]
2014-03-01 19:26   ` [PATCH 10/19] ARM: sun4i: dt: Add USB host nodes to mini-xplus dts Hans de Goede
2014-03-01 19:26   ` [PATCH 11/19] ARM: sun4i: dt: Add USB host nodes to pcduino.dts Hans de Goede
2014-03-01 19:26   ` [PATCH 12/19] ARM: sun5i: dt: Add USB host nodes to A13-Olinuxino Hans de Goede
2014-03-01 19:26   ` [PATCH 13/19] ARM: sun5i: dt: Add USB host nodes to a10s-olinuxino-micro Hans de Goede
2014-03-01 19:26   ` [PATCH 14/19] ARM: sun5i: dt: Add USB host nodes to a13-olinuxino-micro Hans de Goede
2014-03-01 19:26   ` [PATCH 15/19] ARM: sun7i: dt: Add USB host nodes to cubietruck dts Hans de Goede
2014-03-01 19:26   ` [PATCH 16/19] ARM: sun7i: dt: Add USB host nodes to cubieboard2 dts Hans de Goede
2014-03-01 19:26   ` [PATCH 17/19] ARM: sun7i: dt: Add USB host nodes to a20-olinuxino-micro dts Hans de Goede
2014-03-01 19:26   ` [PATCH 18/19] ARM: sun4i: dt: Add support for the A10-OLinuXino-LIME board Hans de Goede
2014-03-01 19:26   ` [PATCH 19/19] ARM: sun4i: dt: Add support for the INet-97F_Rev_02 board Hans de Goede
2014-03-04 16:48   ` [PATCH 00/19] ARM: sunxi: dt: ahci, ehci and ohci support 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=1393701998-3553-10-git-send-email-hdegoede@redhat.com \
    --to=hdegoede-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.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).