* [PATCH 1/1] ARM: dts: sun5i-a13-olinuxino-micro: enable USB DRC
@ 2016-03-23 16:28 Jean-Michel Friedt
[not found] ` <1458750528-13180-1-git-send-email-jmfriedt-qPpMuP/vQ5RWj0EZb7rXcA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Michel Friedt @ 2016-03-23 16:28 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: JM Friedt, devicetree, maxime.ripard
From: JM Friedt <jmfriedt@femto-st.fr>
Enable the OTG controller on the Olinuxino A13-micro.
Signed-off-by: JM Friedt <jmfriedt@femto-st.fr>
---
arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts | 41 +++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
index ad84fe4..081329e 100644
--- a/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
+++ b/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
@@ -109,6 +109,10 @@
status = "okay";
};
+&otg_sram {
+ status = "okay";
+};
+
&pio {
mmc0_cd_pin_olinuxinom: mmc0_cd_pin@0 {
allwinner,pins = "PG0";
@@ -124,6 +128,27 @@
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+ usb0_id_detect_pin: usb0_id_detect_pin@0 {
+ allwinner,pins = "PG2";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+ };
+
+ usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
+ allwinner,pins = "PG1";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>;
+ };
+
+ usb0_vbus_pin_olinuxinom: usb0_vbus_pin@0 {
+ allwinner,pins = "PG12";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
usb1_vbus_pin_olinuxinom: usb1_vbus_pin@0 {
allwinner,pins = "PG11";
allwinner,function = "gpio_out";
@@ -132,6 +157,12 @@
};
};
+®_usb0_vbus {
+ pinctrl-0 = <&usb0_vbus_pin_olinuxinom>;
+ gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+};
+
®_usb1_vbus {
pinctrl-0 = <&usb1_vbus_pin_olinuxinom>;
gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
@@ -144,7 +175,17 @@
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-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
+ usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
+ usb0_vbus-supply = <®_usb0_vbus>;
usb1_vbus-supply = <®_usb1_vbus>;
status = "okay";
};
--
2.6.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] ARM: dts: sun5i-a13-olinuxino-micro: enable USB DRC
[not found] ` <1458750528-13180-1-git-send-email-jmfriedt-qPpMuP/vQ5RWj0EZb7rXcA@public.gmane.org>
@ 2016-03-24 7:55 ` Maxime Ripard
0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2016-03-24 7:55 UTC (permalink / raw)
To: Jean-Michel Friedt
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
Hi,
On Wed, Mar 23, 2016 at 05:28:48PM +0100, Jean-Michel Friedt wrote:
> From: JM Friedt <jmfriedt-qPpMuP/vQ5RWj0EZb7rXcA@public.gmane.org>
>
> Enable the OTG controller on the Olinuxino A13-micro.
>
> Signed-off-by: JM Friedt <jmfriedt-qPpMuP/vQ5RWj0EZb7rXcA@public.gmane.org>
Thanks a lot for your patch.
It looks fine, but you need to have your whole first name here in the
SoB.
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-24 7:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 16:28 [PATCH 1/1] ARM: dts: sun5i-a13-olinuxino-micro: enable USB DRC Jean-Michel Friedt
[not found] ` <1458750528-13180-1-git-send-email-jmfriedt-qPpMuP/vQ5RWj0EZb7rXcA@public.gmane.org>
2016-03-24 7:55 ` Maxime Ripard
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).