From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/6] ARM: dts: sun7i: Enable USB DRC on pcDuino 3
Date: Fri, 14 Aug 2015 16:44:35 +0200 [thread overview]
Message-ID: <1439563477-12295-5-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1439563477-12295-1-git-send-email-hdegoede@redhat.com>
From: Jelle van der Waa <jelle@vdwaa.nl>
Enable the otg/drc usb controller on the pcDuino 3.
Note this board has the otg-vbus connected directly to the 5v-dcc of
the board, so there is no vbus0 regulator, nor vbus0-det.
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
arch/arm/boot/dts/sun7i-a20-pcduino3.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-pcduino3.dts b/arch/arm/boot/dts/sun7i-a20-pcduino3.dts
index 99e238b..08cf715 100644
--- a/arch/arm/boot/dts/sun7i-a20-pcduino3.dts
+++ b/arch/arm/boot/dts/sun7i-a20-pcduino3.dts
@@ -173,6 +173,10 @@
status = "okay";
};
+&otg_sram {
+ status = "okay";
+};
+
&pio {
led_pins_pcduino3: led_pins at 0 {
allwinner,pins = "PH15", "PH16";
@@ -187,6 +191,13 @@
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+
+ 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>;
+ };
};
®_ahci_5v {
@@ -237,7 +248,15 @@
status = "okay";
};
+&usb_otg {
+ dr_mode = "otg";
+ status = "okay";
+};
+
&usbphy {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb0_id_detect_pin>;
+ usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
usb1_vbus-supply = <®_usb1_vbus>;
usb2_vbus-supply = <®_usb2_vbus>;
status = "okay";
--
2.4.3
next prev parent reply other threads:[~2015-08-14 14:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 14:44 [PATCH 0/6] ARM: dts: sunxi: Various sunxi devicetree patches Hans de Goede
2015-08-14 14:44 ` [PATCH 1/6] ARM: dts: sun5i: Add simplefb node for tvencoder output Hans de Goede
2015-08-20 6:43 ` Maxime Ripard
2015-08-14 14:44 ` [PATCH 2/6] ARM: dts: sun7i: Enable i2c bus 1 and 2 on the Wits A20 Pro DKT Hans de Goede
2015-08-14 14:50 ` Hans de Goede
2015-08-14 14:44 ` [PATCH 3/6] ARM: dts: sun7i: Add regulator configuration to the pcduino3 dts file Hans de Goede
2015-08-20 6:44 ` Maxime Ripard
2015-08-14 14:44 ` Hans de Goede [this message]
2015-08-20 6:45 ` [PATCH 4/6] ARM: dts: sun7i: Enable USB DRC on pcDuino 3 Maxime Ripard
2015-08-20 7:36 ` [linux-sunxi] " Hans de Goede
2015-08-20 15:03 ` Maxime Ripard
2015-08-14 14:44 ` [PATCH 5/6] ARM: dts: sun7i: Enable USB DRC on cubieboard2 Hans de Goede
2015-08-20 15:04 ` Maxime Ripard
2015-08-14 14:44 ` [PATCH 6/6] ARM: dts: sun8i: Add support for qt90h-v4 tablets Hans de Goede
2015-08-20 6:47 ` 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=1439563477-12295-5-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).