linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/6] ARM: dts: sun7i: Enable USB DRC on Bananapi
Date: Tue, 22 Sep 2015 15:36:01 +0200	[thread overview]
Message-ID: <1442928966-6418-2-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1442928966-6418-1-git-send-email-hdegoede@redhat.com>

Enable the otg/drc usb controller on the Bananapi.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 arch/arm/boot/dts/sun7i-a20-bananapi.dts | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi.dts b/arch/arm/boot/dts/sun7i-a20-bananapi.dts
index 74382f3..61436ad 100644
--- a/arch/arm/boot/dts/sun7i-a20-bananapi.dts
+++ b/arch/arm/boot/dts/sun7i-a20-bananapi.dts
@@ -159,7 +159,18 @@
 	status = "okay";
 };
 
+&otg_sram {
+	status = "okay";
+};
+
 &pio {
+	usb0_id_detect_pin: usb0_id_detect_pin at 0 {
+		allwinner,pins = "PH4";
+		allwinner,function = "gpio_in";
+		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+	};
+
 	mmc0_cd_pin_bananapi: mmc0_cd_pin at 0 {
 		allwinner,pins = "PH10";
 		allwinner,function = "gpio_in";
@@ -209,6 +220,10 @@
 	regulator-name = "avcc";
 };
 
+&reg_usb0_vbus {
+	status = "okay";
+};
+
 &reg_usb1_vbus {
 	status = "okay";
 };
@@ -243,7 +258,21 @@
 	status = "okay";
 };
 
+&usb_otg {
+	dr_mode = "otg";
+	status = "okay";
+};
+
+&usb_power_supply {
+	status = "okay";
+};
+
 &usbphy {
+	pinctrl-names = "default";
+	pinctrl-0 = <&usb0_id_detect_pin>;
+	usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
+	usb0_vbus_power-supply = <&usb_power_supply>;
+	usb0_vbus-supply = <&reg_usb0_vbus>;
 	usb1_vbus-supply = <&reg_usb1_vbus>;
 	usb2_vbus-supply = <&reg_usb2_vbus>;
 	status = "okay";
-- 
2.4.3

  reply	other threads:[~2015-09-22 13:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-22 13:36 [PATCH 1/6] ARM: dts: axp209: Add usb_power_supply child node to the ax209 node Hans de Goede
2015-09-22 13:36 ` Hans de Goede [this message]
2015-09-23  8:07   ` [linux-sunxi] [PATCH 2/6] ARM: dts: sun7i: Enable USB DRC on Bananapi Jens Thiele
2015-09-23  8:47     ` Hans de Goede
2015-09-29  8:04   ` Maxime Ripard
2015-09-29  8:26     ` [linux-sunxi] " Hans de Goede
2015-10-01  8:32       ` Maxime Ripard
2015-10-08  8:37         ` Hans de Goede
2015-10-11 16:47           ` Maxime Ripard
2015-10-11 16:46   ` Maxime Ripard
2015-09-22 13:36 ` [PATCH 3/6] ARM: dts: sun7i: Enable USB DRC on orangepi-mini Hans de Goede
2015-09-22 13:36 ` [PATCH 4/6] ARM: dts: sun7i: Enable USB DRC on the Orange pi Hans de Goede
2015-09-22 13:36 ` [PATCH 5/6] ARM: dts: sun7i: Enable USB DRC on Wexler TAB7200 Hans de Goede
2015-09-22 13:36 ` [PATCH 6/6] ARM: dts: sun7i: Add dts file for Wits Pro A20 DKT Hans de Goede

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=1442928966-6418-2-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).