aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2015-01-26 07:15:30 -0500
committerTony Lindgren <tony@atomide.com>2015-01-30 18:48:39 -0500
commitf60db98eaa67e02915f01e11933501127bc004b0 (patch)
treebc05f99ee2c091564798dd3a4dfec2a16337f8a3
parentf56de327b4c41aa8dece7f32ab76571fac4bf586 (diff)
ARM: dts: am57xx-beagle-x15: Add extcon nodes for USB
On this EVM, the USB cable state has to be determined via the ID pin tied to a GPIO line. We use the gpio-usb-extcon driver to read the ID pin and the extcon framework to forward the USB cable state information to the USB driver so the controller can be configured in the right mode (host/peripheral). NOTE: the ports on this board cannot switch roles. They are configured either host or peripheral by hardwiring the respective ID pins. Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/boot/dts/am57xx-beagle-x15.dts33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts
index c5d4ceabdd80..0e889eb62a59 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15.dts
+++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts
@@ -88,6 +88,20 @@
88 gpio-fan,speed-map = <0 0>, 88 gpio-fan,speed-map = <0 0>,
89 <13000 1>; 89 <13000 1>;
90 }; 90 };
91
92 extcon_usb1: extcon_usb1 {
93 compatible = "linux,extcon-usb-gpio";
94 id-gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&extcon_usb1_pins>;
97 };
98
99 extcon_usb2: extcon_usb2 {
100 compatible = "linux,extcon-usb-gpio";
101 id-gpio = <&gpio7 24 GPIO_ACTIVE_HIGH>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&extcon_usb2_pins>;
104 };
91}; 105};
92 106
93&dra7_pmx_core { 107&dra7_pmx_core {
@@ -252,6 +266,17 @@
252 >; 266 >;
253 }; 267 };
254 268
269 extcon_usb1_pins: extcon_usb1_pins {
270 pinctrl-single,pins = <
271 0x3ec (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_rtsn.gpio7_25 */
272 >;
273 };
274
275 extcon_usb2_pins: extcon_usb2_pins {
276 pinctrl-single,pins = <
277 0x3e8 (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_ctsn.gpio7_24 */
278 >;
279 };
255}; 280};
256 281
257&i2c1 { 282&i2c1 {
@@ -523,3 +548,11 @@
523 pinctrl-names = "default"; 548 pinctrl-names = "default";
524 pinctrl-0 = <&usb1_pins>; 549 pinctrl-0 = <&usb1_pins>;
525}; 550};
551
552&omap_dwc3_1 {
553 extcon = <&extcon_usb1>;
554};
555
556&omap_dwc3_2 {
557 extcon = <&extcon_usb2>;
558};