From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 12/20] ARM: dts: sun7i: Enable USB DRC on Cubietruck
Date: Fri, 5 Jun 2015 21:02:15 +0200 [thread overview]
Message-ID: <1433530943-12599-13-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1433530943-12599-1-git-send-email-hdegoede@redhat.com>
From: Roman Byshko <rbyshko@gmail.com>
Enable the otg/drc usb controller on the cubietruck.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
index 4611e2f..839d79d 100644
--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
@@ -199,6 +199,10 @@
status = "okay";
};
+&otg_sram {
+ status = "okay";
+};
+
&pio {
vmmc3_pin_cubietruck: vmmc3_pin at 0 {
allwinner,pins = "PH9";
@@ -227,6 +231,20 @@
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+
+ usb0_id_detect_pin: usb0_id_detect_pin at 0 {
+ allwinner,pins = "PH19";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
+ usb0_vbus_detect_pin: usb0_vbus_detect_pin at 0 {
+ allwinner,pins = "PH22";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
};
&pwm {
@@ -288,7 +306,16 @@
status = "okay";
};
+&usb_otg {
+ dr_mode = "otg";
+ status = "okay";
+};
+
&usbphy {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
+ usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */
+ usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
usb0_vbus-supply = <®_usb0_vbus>;
usb1_vbus-supply = <®_usb1_vbus>;
usb2_vbus-supply = <®_usb2_vbus>;
--
2.4.2
next prev parent reply other threads:[~2015-06-05 19:02 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-05 19:02 [PATCH 00/20] ARM: dts: Add USB and OTG related nodes and enable on various boards Hans de Goede
2015-06-05 19:02 ` [PATCH 01/20] ARM: dts: sun4i: Add USB Dual Role Controller Hans de Goede
2015-06-05 19:02 ` [PATCH 02/20] ARM: dts: sun5i: " Hans de Goede
2015-06-05 19:02 ` [PATCH 03/20] ARM: dts: sun6i: " Hans de Goede
2015-06-05 19:02 ` [PATCH 04/20] ARM: dts: sun7i: " Hans de Goede
2015-06-05 19:02 ` [PATCH 05/20] ARM: dts: sun8i: Add A23 usb-phy and otg nodes Hans de Goede
2015-06-05 19:02 ` [PATCH 06/20] ARM: dts: sun8i: Add A33 " Hans de Goede
2015-06-05 19:02 ` [PATCH 07/20] ARM: dts: sun8i: Add support for USB controllers on A23/A33 Hans de Goede
2015-06-05 19:02 ` [PATCH 08/20] ARM: dts: sun4i: Enable USB DRC on Chuwi V7 CW0825 Hans de Goede
2015-06-05 19:02 ` [PATCH 09/20] ARM: dts: sun4i: Enable USB DRC on the Cubieboard Hans de Goede
2015-06-18 15:59 ` Maxime Ripard
2015-06-18 16:16 ` Hans de Goede
2015-06-05 19:02 ` [PATCH 10/20] ARM: dts: sun5i: Enable USB DRC on UTOO P66 Hans de Goede
2015-06-05 19:02 ` [PATCH 11/20] ARM: dts: sun6i: Enable USB DRC on the Mele A1000G quad Hans de Goede
2015-06-05 19:02 ` Hans de Goede [this message]
2015-06-05 19:02 ` [PATCH 13/20] ARM: dts: sun7i: Enable USB DRC on A20-OLinuxIno-Lime Hans de Goede
2015-06-05 19:02 ` [PATCH 14/20] ARM: dts: sun7i: Enable USB DRC on A20-OLinuxIno-Micro Hans de Goede
2015-06-05 19:02 ` [PATCH 15/20] ARM: dts: sun7i: Enable USB DRC on Bananapi (BROKEN!) Hans de Goede
2015-06-05 19:15 ` Hans de Goede
2015-06-05 19:02 ` [PATCH 16/20] ARM: dts: sun8i: Enable USB DRC on Ippo Q8H-A23 tablets Hans de Goede
2015-06-05 19:02 ` [PATCH 17/20] ARM: dts: sun8i: Enable USB DRC on Ippo Q8H-A33 tablet Hans de Goede
2015-06-05 19:02 ` [PATCH 18/20] ARM: dts: sun8i: Enable USB DRC on GA10H-A33 tablets Hans de Goede
2015-06-05 19:02 ` [PATCH 19/20] ARM: dts: sun8i: Enable USB host " Hans de Goede
2015-06-05 19:02 ` [PATCH 20/20] ARM: dts: sun8i: sina33: Enable USB hosts Hans de Goede
2015-06-08 10:03 ` [PATCH 00/20] ARM: dts: Add USB and OTG related nodes and enable on various boards Maxime Ripard
2015-06-08 12:56 ` [linux-sunxi] " Michal Suchanek
2015-06-09 20:18 ` Maxime Ripard
2015-06-10 13:27 ` Hans de Goede
2015-06-12 13:27 ` Hans de Goede
2015-06-13 13:30 ` Hans de Goede
2015-06-16 9:36 ` Maxime Ripard
2015-06-16 9:35 ` 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=1433530943-12599-13-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).