From: Paul Kocialkowski <contact@paulk.fr>
To: linux-kernel@vger.kernel.org
Cc: "Rob Herring" <robh+dt@kernel.org>,
"Pawel Moll" <pawel.moll@arm.com>,
"Mark Rutland" <mark.rutland@arm.com>,
"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
"Kumar Gala" <galak@codeaurora.org>,
"Russell King" <linux@arm.linux.org.uk>,
"Benoît Cousson" <bcousson@baylibre.com>,
"Tony Lindgren" <tony@atomide.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Javier Martinez Canillas" <javier@dowhile0.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-omap@vger.kernel.org,
"Paul Kocialkowski" <contact@paulk.fr>
Subject: [PATCH v4 2/5] ARM: dts: omap3-sniper: USB OTG support
Date: Sun, 28 Feb 2016 13:39:42 +0100 [thread overview]
Message-ID: <1456663185-14170-3-git-send-email-contact@paulk.fr> (raw)
In-Reply-To: <1456663185-14170-1-git-send-email-contact@paulk.fr>
This adds support for USB OTG on the Optimus Black.
The HSUSB0 interface is connected to the TWL4030 USB PHY.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
arch/arm/boot/dts/omap3-sniper.dts | 32 +++++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
index f057e03..6e31daf 100644
--- a/arch/arm/boot/dts/omap3-sniper.dts
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -94,6 +94,23 @@
OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat7 */
>;
};
+
+ usb_otg_hs_pins: pinmux_usb_otg_hs_pins {
+ pinctrl-single,pins = <
+ OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk */
+ OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp */
+ OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir */
+ OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt */
+ OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0 */
+ OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1 */
+ OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2 */
+ OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3 */
+ OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4 */
+ OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5 */
+ OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6 */
+ OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7 */
+ >;
+ };
};
&omap3_pmx_wkup {
@@ -175,15 +192,16 @@
&mmc1 {
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins &mmc1_cd_pin>;
+
vmmc-supply = <&lp8720_ldo1>;
cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio 10 */
bus-width = <4>;
};
&mmc2 {
-
pinctrl-names = "default";
pinctrl-0 = <&mmc2_pins>;
+
vmmc-supply = <&vmmc2>;
ti,non-removable;
bus-width = <8>;
@@ -193,6 +211,18 @@
status = "disabled";
};
+&usb_otg_hs {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_otg_hs_pins>;
+
+ interface-type = <0>;
+ usb-phy = <&usb2_phy>;
+ phys = <&usb2_phy>;
+ phy-names = "usb2-phy";
+ mode = <3>;
+ power = <50>;
+};
+
#include "twl4030.dtsi"
#include "twl4030_omap3.dtsi"
--
2.6.4
next prev parent reply other threads:[~2016-02-28 12:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-28 12:39 [PATCH v4 0/5] LG Optimus Black codename sniper support series Paul Kocialkowski
[not found] ` <1456663185-14170-1-git-send-email-contact-W9ppeneeCTY@public.gmane.org>
2016-02-28 12:39 ` [PATCH v4 1/5] ARM: dts: LG Optimus Black codename sniper basic support Paul Kocialkowski
[not found] ` <1456663185-14170-2-git-send-email-contact-W9ppeneeCTY@public.gmane.org>
2016-02-29 21:51 ` Tony Lindgren
2016-03-01 8:05 ` Paul Kocialkowski
[not found] ` <20160229215136.GO13417-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-03-20 15:58 ` Paul Kocialkowski
[not found] ` <1458489518.29161.3.camel-W9ppeneeCTY@public.gmane.org>
2016-03-30 19:13 ` Tony Lindgren
2016-03-30 19:22 ` Paul Kocialkowski
2016-02-28 12:39 ` Paul Kocialkowski [this message]
2016-02-28 12:39 ` [PATCH v4 3/5] ARM: dts: omap3-sniper: TWL4030 keypad support Paul Kocialkowski
2016-03-01 19:19 ` Paul Kocialkowski
2016-03-01 20:59 ` Tony Lindgren
[not found] ` <20160301205928.GB4469-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-03-01 22:04 ` Paul Kocialkowski
2016-02-28 12:39 ` [PATCH v4 4/5] ARM: omap2plus_defconfig: Enable LP872x regulator support Paul Kocialkowski
2016-02-28 12:39 ` [PATCH v4 5/5] ARM: multi_v7_defconfig: " Paul Kocialkowski
[not found] ` <1456663185-14170-6-git-send-email-contact-W9ppeneeCTY@public.gmane.org>
2016-02-29 21:54 ` Tony Lindgren
2016-02-29 21:58 ` Arnd Bergmann
2016-02-29 22:57 ` Tony Lindgren
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=1456663185-14170-3-git-send-email-contact@paulk.fr \
--to=contact@paulk.fr \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=javier@dowhile0.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=tony@atomide.com \
/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).