diff mbox

ARM: dts: dra7x-evm: beagle-x14: Fix USB Peripheral

Message ID 1426585431-29914-1-git-send-email-rogerq@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Roger Quadros March 17, 2015, 9:43 a.m. UTC
Now that we have EXTCON_USB_GPIO queued for v4.1, revert
commit addfcde7c485 ("ARM: dts: dra7x-evm: beagle-x15: Fix USB Host")

On these EVMs, 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).

Gets USB peripheral mode to work on this EVM.

Signed-off-by: Roger Quadros <rogerq@ti.com>
---
 arch/arm/boot/dts/am57xx-beagle-x15.dts | 8 ++++++++
 arch/arm/boot/dts/dra7-evm.dts          | 8 ++++++++
 arch/arm/boot/dts/dra72-evm.dts         | 8 ++++++++
 3 files changed, 24 insertions(+)

Comments

Felipe Balbi March 17, 2015, 2:54 p.m. UTC | #1
Hi,

On Tue, Mar 17, 2015 at 11:43:51AM +0200, Roger Quadros wrote:
> Now that we have EXTCON_USB_GPIO queued for v4.1, revert
> commit addfcde7c485 ("ARM: dts: dra7x-evm: beagle-x15: Fix USB Host")
> 
> On these EVMs, 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).
> 
> Gets USB peripheral mode to work on this EVM.
> 
> Signed-off-by: Roger Quadros <rogerq@ti.com>

on subject: x14 ? other than that

Reviewed-by: Felipe Balbi <balbi@ti.com>
Tony Lindgren March 17, 2015, 6:02 p.m. UTC | #2
* Felipe Balbi <balbi@ti.com> [150317 07:55]:
> Hi,
> 
> On Tue, Mar 17, 2015 at 11:43:51AM +0200, Roger Quadros wrote:
> > Now that we have EXTCON_USB_GPIO queued for v4.1, revert
> > commit addfcde7c485 ("ARM: dts: dra7x-evm: beagle-x15: Fix USB Host")
> > 
> > On these EVMs, 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).
> > 
> > Gets USB peripheral mode to work on this EVM.
> > 
> > Signed-off-by: Roger Quadros <rogerq@ti.com>
> 
> on subject: x14 ? other than that
> 
> Reviewed-by: Felipe Balbi <balbi@ti.com>

Applying into omap-for-v4.1/dt-v2 with the subject line fixed.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Roger Quadros March 18, 2015, 9:38 a.m. UTC | #3
On 17/03/15 20:02, Tony Lindgren wrote:
> * Felipe Balbi <balbi@ti.com> [150317 07:55]:
>> Hi,
>>
>> On Tue, Mar 17, 2015 at 11:43:51AM +0200, Roger Quadros wrote:
>>> Now that we have EXTCON_USB_GPIO queued for v4.1, revert
>>> commit addfcde7c485 ("ARM: dts: dra7x-evm: beagle-x15: Fix USB Host")
>>>
>>> On these EVMs, 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).
>>>
>>> Gets USB peripheral mode to work on this EVM.
>>>
>>> Signed-off-by: Roger Quadros <rogerq@ti.com>
>>
>> on subject: x14 ? other than that

oops :P

>>
>> Reviewed-by: Felipe Balbi <balbi@ti.com>
> 
> Applying into omap-for-v4.1/dt-v2 with the subject line fixed.

Thanks Tony.

cheers,
-roger
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts
index bd48dba..170fbf9 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15.dts
+++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts
@@ -548,6 +548,14 @@ 
 	pinctrl-0 = <&usb1_pins>;
 };
 
+&omap_dwc3_1 {
+	extcon = <&extcon_usb1>;
+};
+
+&omap_dwc3_2 {
+	extcon = <&extcon_usb2>;
+};
+
 &usb2 {
 	dr_mode = "peripheral";
 };
diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
index b1bd06c..aa46590 100644
--- a/arch/arm/boot/dts/dra7-evm.dts
+++ b/arch/arm/boot/dts/dra7-evm.dts
@@ -541,6 +541,14 @@ 
 	};
 };
 
+&omap_dwc3_1 {
+	extcon = <&extcon_usb1>;
+};
+
+&omap_dwc3_2 {
+	extcon = <&extcon_usb2>;
+};
+
 &usb1 {
 	dr_mode = "peripheral";
 	pinctrl-names = "default";
diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts
index daf2811..ce0390f 100644
--- a/arch/arm/boot/dts/dra72-evm.dts
+++ b/arch/arm/boot/dts/dra72-evm.dts
@@ -377,6 +377,14 @@ 
 	phy-supply = <&ldo4_reg>;
 };
 
+&omap_dwc3_1 {
+	extcon = <&extcon_usb1>;
+};
+
+&omap_dwc3_2 {
+	extcon = <&extcon_usb2>;
+};
+
 &usb1 {
 	dr_mode = "peripheral";
 	pinctrl-names = "default";