* [PATCH] ARM: omap2plus_defconfig: Enable EXTCON_USB_GPIO
@ 2015-03-24 10:19 Roger Quadros
2015-03-24 14:26 ` Nishanth Menon
0 siblings, 1 reply; 6+ messages in thread
From: Roger Quadros @ 2015-03-24 10:19 UTC (permalink / raw)
To: tony; +Cc: nm, balbi, linux-omap, Roger Quadros
We need to enable EXTCON_USB_GPIO_USB and not
EXTCON_GPIO_USB.
Fixes: c08a54c0ebeb ("ARM: omap2plus_defconfig: Enable EXTCON_GPIO_USB")
Reported-by: Nishant Menon <nm@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
---
arch/arm/configs/omap2plus_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index 04b4c8e..daf9412 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -391,7 +391,7 @@ CONFIG_TI_EDMA=y
CONFIG_DMA_OMAP=y
# CONFIG_IOMMU_SUPPORT is not set
CONFIG_EXTCON=m
-CONFIG_EXTCON_GPIO=m
+CONFIG_EXTCON_USB_GPIO=m
CONFIG_EXTCON_PALMAS=m
CONFIG_TI_EMIF=m
CONFIG_PWM=y
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] ARM: omap2plus_defconfig: Enable EXTCON_USB_GPIO
2015-03-24 10:19 [PATCH] ARM: omap2plus_defconfig: Enable EXTCON_USB_GPIO Roger Quadros
@ 2015-03-24 14:26 ` Nishanth Menon
2015-03-24 16:44 ` Felipe Balbi
0 siblings, 1 reply; 6+ messages in thread
From: Nishanth Menon @ 2015-03-24 14:26 UTC (permalink / raw)
To: Roger Quadros; +Cc: tony, balbi, linux-omap
On 12:19-20150324, Roger Quadros wrote:
> We need to enable EXTCON_USB_GPIO_USB and not
> EXTCON_GPIO_USB.
>
> Fixes: c08a54c0ebeb ("ARM: omap2plus_defconfig: Enable EXTCON_GPIO_USB")
>
> Reported-by: Nishant Menon <nm@ti.com>
> Signed-off-by: Roger Quadros <rogerq@ti.com>
> ---
> arch/arm/configs/omap2plus_defconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> index 04b4c8e..daf9412 100644
> --- a/arch/arm/configs/omap2plus_defconfig
> +++ b/arch/arm/configs/omap2plus_defconfig
> @@ -391,7 +391,7 @@ CONFIG_TI_EDMA=y
> CONFIG_DMA_OMAP=y
> # CONFIG_IOMMU_SUPPORT is not set
> CONFIG_EXTCON=m
> -CONFIG_EXTCON_GPIO=m
> +CONFIG_EXTCON_USB_GPIO=m
> CONFIG_EXTCON_PALMAS=m
> CONFIG_TI_EMIF=m
> CONFIG_PWM=y
> --
> 2.1.0
Yep and it finally works! Yipiee!!
http://pastebin.ubuntu.com/10669565/
Acked-and-Tested-by: Nishanth Menon <nm@ti.com>
>
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ARM: omap2plus_defconfig: Enable EXTCON_USB_GPIO
2015-03-24 14:26 ` Nishanth Menon
@ 2015-03-24 16:44 ` Felipe Balbi
2015-03-24 16:57 ` Nishanth Menon
0 siblings, 1 reply; 6+ messages in thread
From: Felipe Balbi @ 2015-03-24 16:44 UTC (permalink / raw)
To: Nishanth Menon; +Cc: Roger Quadros, tony, balbi, linux-omap
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
On Tue, Mar 24, 2015 at 09:26:48AM -0500, Nishanth Menon wrote:
> On 12:19-20150324, Roger Quadros wrote:
> > We need to enable EXTCON_USB_GPIO_USB and not
> > EXTCON_GPIO_USB.
> >
> > Fixes: c08a54c0ebeb ("ARM: omap2plus_defconfig: Enable EXTCON_GPIO_USB")
> >
> > Reported-by: Nishant Menon <nm@ti.com>
> > Signed-off-by: Roger Quadros <rogerq@ti.com>
> > ---
> > arch/arm/configs/omap2plus_defconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> > index 04b4c8e..daf9412 100644
> > --- a/arch/arm/configs/omap2plus_defconfig
> > +++ b/arch/arm/configs/omap2plus_defconfig
> > @@ -391,7 +391,7 @@ CONFIG_TI_EDMA=y
> > CONFIG_DMA_OMAP=y
> > # CONFIG_IOMMU_SUPPORT is not set
> > CONFIG_EXTCON=m
> > -CONFIG_EXTCON_GPIO=m
> > +CONFIG_EXTCON_USB_GPIO=m
> > CONFIG_EXTCON_PALMAS=m
> > CONFIG_TI_EMIF=m
> > CONFIG_PWM=y
> > --
> > 2.1.0
>
> Yep and it finally works! Yipiee!!
> http://pastebin.ubuntu.com/10669565/
I don't see the peripheral side IRQ in /proc/interrupts. What's going
on? Can you load g_zero or g_mass_storage and verify peripheral side
also works ?
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ARM: omap2plus_defconfig: Enable EXTCON_USB_GPIO
2015-03-24 16:44 ` Felipe Balbi
@ 2015-03-24 16:57 ` Nishanth Menon
2015-03-24 17:09 ` Felipe Balbi
0 siblings, 1 reply; 6+ messages in thread
From: Nishanth Menon @ 2015-03-24 16:57 UTC (permalink / raw)
To: Felipe Balbi; +Cc: Roger Quadros, tony, linux-omap
On 11:44-20150324, Felipe Balbi wrote:
> On Tue, Mar 24, 2015 at 09:26:48AM -0500, Nishanth Menon wrote:
> > On 12:19-20150324, Roger Quadros wrote:
> > > We need to enable EXTCON_USB_GPIO_USB and not
> > > EXTCON_GPIO_USB.
> > >
> > > Fixes: c08a54c0ebeb ("ARM: omap2plus_defconfig: Enable EXTCON_GPIO_USB")
> > >
> > > Reported-by: Nishant Menon <nm@ti.com>
> > > Signed-off-by: Roger Quadros <rogerq@ti.com>
> > > ---
> > > arch/arm/configs/omap2plus_defconfig | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> > > index 04b4c8e..daf9412 100644
> > > --- a/arch/arm/configs/omap2plus_defconfig
> > > +++ b/arch/arm/configs/omap2plus_defconfig
> > > @@ -391,7 +391,7 @@ CONFIG_TI_EDMA=y
> > > CONFIG_DMA_OMAP=y
> > > # CONFIG_IOMMU_SUPPORT is not set
> > > CONFIG_EXTCON=m
> > > -CONFIG_EXTCON_GPIO=m
> > > +CONFIG_EXTCON_USB_GPIO=m
> > > CONFIG_EXTCON_PALMAS=m
> > > CONFIG_TI_EMIF=m
> > > CONFIG_PWM=y
> > > --
> > > 2.1.0
> >
> > Yep and it finally works! Yipiee!!
> > http://pastebin.ubuntu.com/10669565/
>
> I don't see the peripheral side IRQ in /proc/interrupts. What's going
> on? Can you load g_zero or g_mass_storage and verify peripheral side
> also works ?
my board is remote atm and does not have the usb peripheral cable hooked in.
However, I did load g_zero and looks like 73 is registered.
root@am57xx-evm:~# cat /proc/interrupts
CPU0 CPU1
16: 0 0 CBAR 32 gp_timer
19: 2296 2083 GIC 27 arch_timer
22: 1 0 CBAR 4 l3-dbg-irq
23: 1 0 WUGEN 10 l3-app-irq
28: 6002 0 CBAR 8 omap-dma-engine
32: 2 0 4ae10000.gpio 0 palmas
224: 0 0 4805d000.gpio 27 4809c000.mmc cd
254: 0 0 48051000.gpio 24 extcon_usb2
255: 0 0 48051000.gpio 25 extcon_usb1
295: 507 0 CBAR 69 OMAP UART2
308: 524 0 CBAR 51 48070000.i2c
309: 6 0 CBAR 56 48060000.i2c
310: 8334 0 CBAR 78 mmc0
311: 1451 0 CBAR 81 mmc1
312: 233 0 CBAR 49 4a140000.sata
313: 0 0 CBAR 217 rtc0
314: 5 0 CBAR 72 dwc3-omap
315: 2 0 CBAR 87 dwc3-omap
317: 727 0 CBAR 335 48484000.ethernet
318: 22 0 CBAR 336 48484000.ethernet
331: 1 0 PRCM pinctrl
386: 1 0 pinctrl 584 OMAP UART2
387: 0 0 palmas 8 48070000.i2c:tps659038@58:tps659038_rtc
388: 0 0 palmas 1 48070000.i2c:tps659038@58:tps659038_pwr_button
389: 0 0 CBAR 2 mcp7941x
390: 460 0 CBAR 71 xhci-hcd:usb1
391: 11 0 CBAR 73 dwc3
IPI0: 0 1 CPU wakeup interrupts
IPI1: 0 0 Timer broadcast interrupts
IPI2: 2723 3962 Rescheduling interrupts
IPI3: 0 0 Function call interrupts
IPI4: 279 214 Single function call interrupts
IPI5: 0 0 CPU stop interrupts
IPI6: 0 0 IRQ work interrupts
IPI7: 0 0 completion interrupts
Err: 0
Looking at arch/arm/boot/dts/am57xx-beagle-x15.dts
looks like extcon is used for both host and peripheral - am I mistaken - if I am right,
then at least the host devices seem to work (usb storage).
extcon_usb1: extcon_usb1 {
compatible = "linux,extcon-usb-gpio";
id-gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&extcon_usb1_pins>;
};
extcon_usb2: extcon_usb2 {
compatible = "linux,extcon-usb-gpio";
id-gpio = <&gpio7 24 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&extcon_usb2_pins>;
};
...
&usb2_phy1 {
phy-supply = <&ldousb_reg>;
};
&usb1 {
dr_mode = "host";
pinctrl-names = "default";
pinctrl-0 = <&usb1_pins>;
};
&omap_dwc3_1 {
extcon = <&extcon_usb1>;
};
&omap_dwc3_2 {
extcon = <&extcon_usb2>;
};
&usb2 {
dr_mode = "peripheral";
};
Anything I am missing?
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ARM: omap2plus_defconfig: Enable EXTCON_USB_GPIO
2015-03-24 16:57 ` Nishanth Menon
@ 2015-03-24 17:09 ` Felipe Balbi
2015-05-04 16:11 ` Tony Lindgren
0 siblings, 1 reply; 6+ messages in thread
From: Felipe Balbi @ 2015-03-24 17:09 UTC (permalink / raw)
To: Nishanth Menon; +Cc: Felipe Balbi, Roger Quadros, tony, linux-omap
[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]
On Tue, Mar 24, 2015 at 11:57:54AM -0500, Nishanth Menon wrote:
> On 11:44-20150324, Felipe Balbi wrote:
> > On Tue, Mar 24, 2015 at 09:26:48AM -0500, Nishanth Menon wrote:
> > > On 12:19-20150324, Roger Quadros wrote:
> > > > We need to enable EXTCON_USB_GPIO_USB and not
> > > > EXTCON_GPIO_USB.
> > > >
> > > > Fixes: c08a54c0ebeb ("ARM: omap2plus_defconfig: Enable EXTCON_GPIO_USB")
> > > >
> > > > Reported-by: Nishant Menon <nm@ti.com>
> > > > Signed-off-by: Roger Quadros <rogerq@ti.com>
> > > > ---
> > > > arch/arm/configs/omap2plus_defconfig | 2 +-
> > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> > > > index 04b4c8e..daf9412 100644
> > > > --- a/arch/arm/configs/omap2plus_defconfig
> > > > +++ b/arch/arm/configs/omap2plus_defconfig
> > > > @@ -391,7 +391,7 @@ CONFIG_TI_EDMA=y
> > > > CONFIG_DMA_OMAP=y
> > > > # CONFIG_IOMMU_SUPPORT is not set
> > > > CONFIG_EXTCON=m
> > > > -CONFIG_EXTCON_GPIO=m
> > > > +CONFIG_EXTCON_USB_GPIO=m
> > > > CONFIG_EXTCON_PALMAS=m
> > > > CONFIG_TI_EMIF=m
> > > > CONFIG_PWM=y
> > > > --
> > > > 2.1.0
> > >
> > > Yep and it finally works! Yipiee!!
> > > http://pastebin.ubuntu.com/10669565/
> >
> > I don't see the peripheral side IRQ in /proc/interrupts. What's going
> > on? Can you load g_zero or g_mass_storage and verify peripheral side
> > also works ?
> my board is remote atm and does not have the usb peripheral cable hooked in.
> However, I did load g_zero and looks like 73 is registered.
thanks, that should be enough :-)
Reviewed-by: Felipe Balbi <balbi@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ARM: omap2plus_defconfig: Enable EXTCON_USB_GPIO
2015-03-24 17:09 ` Felipe Balbi
@ 2015-05-04 16:11 ` Tony Lindgren
0 siblings, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2015-05-04 16:11 UTC (permalink / raw)
To: Felipe Balbi; +Cc: Nishanth Menon, Roger Quadros, linux-omap
* Felipe Balbi <balbi@ti.com> [150324 10:10]:
> On Tue, Mar 24, 2015 at 11:57:54AM -0500, Nishanth Menon wrote:
> > On 11:44-20150324, Felipe Balbi wrote:
> > > On Tue, Mar 24, 2015 at 09:26:48AM -0500, Nishanth Menon wrote:
> > > > On 12:19-20150324, Roger Quadros wrote:
> > > > > We need to enable EXTCON_USB_GPIO_USB and not
> > > > > EXTCON_GPIO_USB.
> > > > >
> > > > > Fixes: c08a54c0ebeb ("ARM: omap2plus_defconfig: Enable EXTCON_GPIO_USB")
> > > > >
> > > > > Reported-by: Nishant Menon <nm@ti.com>
> > > > > Signed-off-by: Roger Quadros <rogerq@ti.com>
> > > > > ---
> > > > > arch/arm/configs/omap2plus_defconfig | 2 +-
> > > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > > >
> > > > > diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> > > > > index 04b4c8e..daf9412 100644
> > > > > --- a/arch/arm/configs/omap2plus_defconfig
> > > > > +++ b/arch/arm/configs/omap2plus_defconfig
> > > > > @@ -391,7 +391,7 @@ CONFIG_TI_EDMA=y
> > > > > CONFIG_DMA_OMAP=y
> > > > > # CONFIG_IOMMU_SUPPORT is not set
> > > > > CONFIG_EXTCON=m
> > > > > -CONFIG_EXTCON_GPIO=m
> > > > > +CONFIG_EXTCON_USB_GPIO=m
> > > > > CONFIG_EXTCON_PALMAS=m
> > > > > CONFIG_TI_EMIF=m
> > > > > CONFIG_PWM=y
> > > > > --
> > > > > 2.1.0
> > > >
> > > > Yep and it finally works! Yipiee!!
> > > > http://pastebin.ubuntu.com/10669565/
> > >
> > > I don't see the peripheral side IRQ in /proc/interrupts. What's going
> > > on? Can you load g_zero or g_mass_storage and verify peripheral side
> > > also works ?
> > my board is remote atm and does not have the usb peripheral cable hooked in.
> > However, I did load g_zero and looks like 73 is registered.
>
> thanks, that should be enough :-)
>
> Reviewed-by: Felipe Balbi <balbi@ti.com>
> Acked-by: Felipe Balbi <balbi@ti.com>
Applying into omap-for-v4.1/fixes thanks.
Tony
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-05-04 16:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-24 10:19 [PATCH] ARM: omap2plus_defconfig: Enable EXTCON_USB_GPIO Roger Quadros
2015-03-24 14:26 ` Nishanth Menon
2015-03-24 16:44 ` Felipe Balbi
2015-03-24 16:57 ` Nishanth Menon
2015-03-24 17:09 ` Felipe Balbi
2015-05-04 16:11 ` Tony Lindgren
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.