* [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP @ 2013-01-15 9:54 Ezequiel Garcia [not found] ` <1358243670-11935-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> ` (3 more replies) 0 siblings, 4 replies; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-15 9:54 UTC (permalink / raw) To: linux-arm-kernel, linux-usb, devicetree-discuss Cc: Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, Thomas Petazzoni, Ezequiel Garcia, Gregory CLEMENT, Florian Fainelli The Armada 370 and Armada XP SoC has an Orion EHCI USB controller. This patch adds support for this controller in Armada 370 and Armada XP SoC common device tree files. Cc: Lior Amsalem <alior@marvell.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> --- arch/arm/boot/dts/armada-370-xp.dtsi | 15 +++++++++++++++ arch/arm/boot/dts/armada-370.dtsi | 9 +++++++++ arch/arm/boot/dts/armada-xp.dtsi | 17 +++++++++++++++++ arch/arm/mach-mvebu/Kconfig | 1 + 4 files changed, 42 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi index 28276fe..fa025c4 100644 --- a/arch/arm/boot/dts/armada-370-xp.dtsi +++ b/arch/arm/boot/dts/armada-370-xp.dtsi @@ -145,6 +145,21 @@ clocks = <&gateclk 17>; status = "disabled"; }; + + usb@d0050000 { + compatible = "marvell,orion-ehci"; + reg = <0xd0050000 0x500>; + interrupts = <45>; + status = "disabled"; + }; + + usb@d0051000 { + compatible = "marvell,orion-ehci"; + reg = <0xd0051000 0x500>; + interrupts = <46>; + status = "disabled"; + }; + }; }; diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi index 88f9bab..8188d13 100644 --- a/arch/arm/boot/dts/armada-370.dtsi +++ b/arch/arm/boot/dts/armada-370.dtsi @@ -144,5 +144,14 @@ dmacap,memset; }; }; + + usb@d0050000 { + clocks = <&coreclk 0>; + }; + + usb@d0051000 { + clocks = <&coreclk 0>; + }; + }; }; diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi index 390ba98..1443949 100644 --- a/arch/arm/boot/dts/armada-xp.dtsi +++ b/arch/arm/boot/dts/armada-xp.dtsi @@ -134,5 +134,22 @@ dmacap,memset; }; }; + + usb@d0050000 { + clocks = <&gateclk 18>; + }; + + usb@d0051000 { + clocks = <&gateclk 19>; + }; + + usb@d0052000 { + compatible = "marvell,orion-ehci"; + reg = <0xd0052000 0x500>; + interrupts = <47>; + clocks = <&gateclk 20>; + status = "disabled"; + }; + }; }; diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index 440b13e..5e4fcde 100644 --- a/arch/arm/mach-mvebu/Kconfig +++ b/arch/arm/mach-mvebu/Kconfig @@ -24,6 +24,7 @@ config MACH_ARMADA_370_XP select HAVE_SMP select CACHE_L2X0 select CPU_PJ4B + select USB_ARCH_HAS_EHCI if USB_SUPPORT config MACH_ARMADA_370 bool "Marvell Armada 370 boards" -- 1.7.8.6 ^ permalink raw reply related [flat|nested] 16+ messages in thread
[parent not found: <1358243670-11935-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* [PATCH 2/6] arm: mvebu: Enable USB controllers on Armada 370 evaluation board [not found] ` <1358243670-11935-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2013-01-15 9:54 ` Ezequiel Garcia [not found] ` <1358243670-11935-2-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2013-01-15 9:54 ` [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board Ezequiel Garcia 2013-01-15 10:23 ` [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP Florian Fainelli 2 siblings, 1 reply; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-15 9:54 UTC (permalink / raw) To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-usb-u79uwXL29TY76Z2rM5mHXA, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ Cc: Florian Fainelli, Andrew Lunn, Yehuda Yitschak, Arnd Bergmann, Lior Amsalem, Jason Cooper, Michael Opdenacker, Ezequiel Garcia, Thomas Petazzoni, Gregory CLEMENT Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org> Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Cc: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- arch/arm/boot/dts/armada-370-db.dts | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts index 8e66a7c..3d93902 100644 --- a/arch/arm/boot/dts/armada-370-db.dts +++ b/arch/arm/boot/dts/armada-370-db.dts @@ -74,5 +74,13 @@ status = "disabled"; /* No CD or WP GPIOs */ }; + + usb@d0050000 { + status = "okay"; + }; + + usb@d0051000 { + status = "okay"; + }; }; }; -- 1.7.8.6 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 16+ messages in thread
[parent not found: <1358243670-11935-2-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 2/6] arm: mvebu: Enable USB controllers on Armada 370 evaluation board [not found] ` <1358243670-11935-2-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2013-01-15 13:07 ` Arnd Bergmann [not found] ` <201301151307.26665.arnd-r2nGTMty4D4@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Arnd Bergmann @ 2013-01-15 13:07 UTC (permalink / raw) To: Ezequiel Garcia Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-usb-u79uwXL29TY76Z2rM5mHXA, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Florian Fainelli, Andrew Lunn, Yehuda Yitschak, Lior Amsalem, Jason Cooper, Michael Opdenacker, Thomas Petazzoni, Gregory CLEMENT On Tuesday 15 January 2013, Ezequiel Garcia wrote: > Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org> > Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > Cc: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> The patches look good, but when you have four trivial patches doing the same thing in different files, and you decide that it's not worth writing a changelog for them, they should probably go into a single patch. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <201301151307.26665.arnd-r2nGTMty4D4@public.gmane.org>]
* Re: [PATCH 2/6] arm: mvebu: Enable USB controllers on Armada 370 evaluation board [not found] ` <201301151307.26665.arnd-r2nGTMty4D4@public.gmane.org> @ 2013-01-15 13:58 ` Ezequiel Garcia 0 siblings, 0 replies; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-15 13:58 UTC (permalink / raw) To: Arnd Bergmann Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-usb-u79uwXL29TY76Z2rM5mHXA, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Florian Fainelli, Andrew Lunn, Yehuda Yitschak, Lior Amsalem, Jason Cooper, Michael Opdenacker, Thomas Petazzoni, Gregory CLEMENT Hi Arnd, On 01/15/2013 10:07 AM, Arnd Bergmann wrote: > On Tuesday 15 January 2013, Ezequiel Garcia wrote: >> Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org> >> Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> >> Cc: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> >> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > > The patches look good, but when you have four trivial patches > doing the same thing in different files, and you decide that it's > not worth writing a changelog for them, they should probably > go into a single patch. > Mmm... maybe you're right and such splitting is excessive. It seemed tidier this way, enabling each board on a different patch. I can squash them on a v2, if you want me to. Thanks for reviewing! -- Ezequiel García, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board [not found] ` <1358243670-11935-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2013-01-15 9:54 ` [PATCH 2/6] arm: mvebu: Enable USB controllers on Armada 370 evaluation board Ezequiel Garcia @ 2013-01-15 9:54 ` Ezequiel Garcia 2013-01-16 0:01 ` Nobuhiro Iwamatsu 2013-01-15 10:23 ` [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP Florian Fainelli 2 siblings, 1 reply; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-15 9:54 UTC (permalink / raw) To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-usb-u79uwXL29TY76Z2rM5mHXA, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ Cc: Florian Fainelli, Andrew Lunn, Yehuda Yitschak, Arnd Bergmann, Lior Amsalem, Jason Cooper, Michael Opdenacker, Ezequiel Garcia, Thomas Petazzoni, Gregory CLEMENT Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org> Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Cc: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts index b24644f..55f5b6f 100644 --- a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts +++ b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts @@ -127,5 +127,14 @@ nr-ports = <2>; status = "okay"; }; + usb@d0050000 { + status = "okay"; + }; + usb@d0051000 { + status = "okay"; + }; + usb@d0052000 { + status = "okay"; + }; }; }; -- 1.7.8.6 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board 2013-01-15 9:54 ` [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board Ezequiel Garcia @ 2013-01-16 0:01 ` Nobuhiro Iwamatsu [not found] ` <CABMQnVLD+VKj53dfQC24AwCboed3EGt+gqTKt-B9q8nhEx3Ytg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Nobuhiro Iwamatsu @ 2013-01-16 0:01 UTC (permalink / raw) To: Ezequiel Garcia Cc: Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, devicetree-discuss, linux-usb, Florian Fainelli, Gregory CLEMENT, Thomas Petazzoni, linux-arm-kernel Hi, On Tue, Jan 15, 2013 at 6:54 PM, Ezequiel Garcia <ezequiel.garcia@free-electrons.com> wrote: > Cc: Lior Amsalem <alior@marvell.com> > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> > Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> > --- > arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 9 +++++++++ > 1 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts > index b24644f..55f5b6f 100644 > --- a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts > +++ b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts > @@ -127,5 +127,14 @@ > nr-ports = <2>; > status = "okay"; > }; > + usb@d0050000 { > + status = "okay"; > + }; > + usb@d0051000 { > + status = "okay"; > + }; > + usb@d0052000 { > + status = "okay"; > + }; USB2 of openblocks-ax3-4 is used as Mini-PCIE. I think this is unnecessary. > }; > }; > -- > 1.7.8.6 > Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6 ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <CABMQnVLD+VKj53dfQC24AwCboed3EGt+gqTKt-B9q8nhEx3Ytg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board [not found] ` <CABMQnVLD+VKj53dfQC24AwCboed3EGt+gqTKt-B9q8nhEx3Ytg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-01-16 19:16 ` Ezequiel Garcia [not found] ` <CALF0-+XKGk+ru3VZ6815KTu_Aj_daYafr+Y5WJ9dXUoFqbTHOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-16 19:16 UTC (permalink / raw) To: Nobuhiro Iwamatsu Cc: Ezequiel Garcia, Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-usb-u79uwXL29TY76Z2rM5mHXA, Florian Fainelli, Gregory CLEMENT, Thomas Petazzoni, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi Nobuhiro, On Tue, Jan 15, 2013 at 9:01 PM, Nobuhiro Iwamatsu <iwamatsu-+mkmVskJBflAfugRpC6u6w@public.gmane.org> wrote: > Hi, > > > > On Tue, Jan 15, 2013 at 6:54 PM, Ezequiel Garcia > <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: >> Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org> >> Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> >> Cc: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> >> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> >> --- >> arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts | 9 +++++++++ >> 1 files changed, 9 insertions(+), 0 deletions(-) >> >> diff --git a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts >> index b24644f..55f5b6f 100644 >> --- a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts >> +++ b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts >> @@ -127,5 +127,14 @@ >> nr-ports = <2>; >> status = "okay"; >> }; >> + usb@d0050000 { >> + status = "okay"; >> + }; >> + usb@d0051000 { >> + status = "okay"; >> + }; >> + usb@d0052000 { >> + status = "okay"; >> + }; > USB2 of openblocks-ax3-4 is used as Mini-PCIE. > I think this is unnecessary. > Mmm... could you explain this with some more detail. Unfortunately, I don't have access to an Openblocks board to check on this, so I'd appreciate any clarification. Is there any Openblocks datasheet or hardware schematics publicly available for me to look at? Thanks a lot, -- Ezequiel -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <CALF0-+XKGk+ru3VZ6815KTu_Aj_daYafr+Y5WJ9dXUoFqbTHOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board [not found] ` <CALF0-+XKGk+ru3VZ6815KTu_Aj_daYafr+Y5WJ9dXUoFqbTHOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-01-16 19:37 ` Thomas Petazzoni 2013-01-19 0:07 ` Nobuhiro Iwamatsu 0 siblings, 1 reply; 16+ messages in thread From: Thomas Petazzoni @ 2013-01-16 19:37 UTC (permalink / raw) To: Ezequiel Garcia Cc: Nobuhiro Iwamatsu, Ezequiel Garcia, Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-usb-u79uwXL29TY76Z2rM5mHXA, Florian Fainelli, Gregory CLEMENT, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Dear Ezequiel Garcia, On Wed, 16 Jan 2013 16:16:59 -0300, Ezequiel Garcia wrote: > >> + usb@d0050000 { > >> + status = "okay"; > >> + }; > >> + usb@d0051000 { > >> + status = "okay"; > >> + }; > >> + usb@d0052000 { > >> + status = "okay"; > >> + }; > > USB2 of openblocks-ax3-4 is used as Mini-PCIE. > > I think this is unnecessary. > > Mmm... could you explain this with some more detail. > Unfortunately, I don't have access to an Openblocks board to check on > this, so I'd appreciate any clarification. > > Is there any Openblocks datasheet or hardware schematics publicly > available for me to look at? As far as I know, there is no public document. I've been given access to a PDF, in Japanese, that gives some details about the hardware. >From what I can read, only 2 USB ports are used from the internal Marvell EHCI controller. Another USB port is available, but it is connected to a USB controller that sits on the PCIe bus. And the PCIe interface on which this USB controller is connected is not enabled in the default U-Boot shipped with AX3-4 (at least not with the generation I have). I've been given an U-Boot version that is supposed to enable this PCIe interface, but I haven't tested yet. Anyway, from a Marvell EHCI controller perspective, only two ports are used, as Nobuhiro said. I am not sure which ports, but it seems like the first two ones were used. One of the two physical ports is a combined USB / eSATA port, but I don't think this makes any difference at the software level. I don't have the OpenBlocks AX3-4 with me right now, but I could probably make a test on Friday. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board 2013-01-16 19:37 ` Thomas Petazzoni @ 2013-01-19 0:07 ` Nobuhiro Iwamatsu [not found] ` <CABMQnVLtXfs+bUsSm0xN6KRO8hCeaqy6xKbRaHS-qX0OdiZfbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Nobuhiro Iwamatsu @ 2013-01-19 0:07 UTC (permalink / raw) To: Thomas Petazzoni, Ezequiel Garcia Cc: Ezequiel Garcia, Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-usb-u79uwXL29TY76Z2rM5mHXA, Florian Fainelli, Gregory CLEMENT, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi, Thomas, Thank you for the detailed explanation. Ezequiel, I checked your patch on OpenBlocks AX3, work fine. But I have a question. your patch "arm: mvebu: Add support for USB host controllers in Armada 370/XP" was set USB controller of 0xd0050000 to IRQ 45. I think this is 47, and 0xd0052000 is 45. Because manual has been written irq 45 is USB2. I'm sorry if if my lack of understanding or typo in the manual. Best regards, Nobuhiro On Thu, Jan 17, 2013 at 4:37 AM, Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > Dear Ezequiel Garcia, > > On Wed, 16 Jan 2013 16:16:59 -0300, Ezequiel Garcia wrote: > >> >> + usb@d0050000 { >> >> + status = "okay"; >> >> + }; >> >> + usb@d0051000 { >> >> + status = "okay"; >> >> + }; >> >> + usb@d0052000 { >> >> + status = "okay"; >> >> + }; >> > USB2 of openblocks-ax3-4 is used as Mini-PCIE. >> > I think this is unnecessary. >> >> Mmm... could you explain this with some more detail. >> Unfortunately, I don't have access to an Openblocks board to check on >> this, so I'd appreciate any clarification. >> >> Is there any Openblocks datasheet or hardware schematics publicly >> available for me to look at? > > As far as I know, there is no public document. I've been given access > to a PDF, in Japanese, that gives some details about the hardware. > > From what I can read, only 2 USB ports are used from the internal > Marvell EHCI controller. > > Another USB port is available, but it is connected to a USB controller > that sits on the PCIe bus. And the PCIe interface on which this USB > controller is connected is not enabled in the default U-Boot shipped > with AX3-4 (at least not with the generation I have). I've been given > an U-Boot version that is supposed to enable this PCIe interface, but I > haven't tested yet. > > Anyway, from a Marvell EHCI controller perspective, only two ports are > used, as Nobuhiro said. I am not sure which ports, but it seems like > the first two ones were used. One of the two physical ports is a > combined USB / eSATA port, but I don't think this makes any difference > at the software level. > > I don't have the OpenBlocks AX3-4 with me right now, but I could > probably make a test on Friday. > > Best regards, > > Thomas > -- > Thomas Petazzoni, Free Electrons > Kernel, drivers, real-time and embedded Linux > development, consulting, training and support. > http://free-electrons.com -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <CABMQnVLtXfs+bUsSm0xN6KRO8hCeaqy6xKbRaHS-qX0OdiZfbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board [not found] ` <CABMQnVLtXfs+bUsSm0xN6KRO8hCeaqy6xKbRaHS-qX0OdiZfbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-01-19 0:11 ` Gregory CLEMENT [not found] ` <50F9E4CA.6050006-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Gregory CLEMENT @ 2013-01-19 0:11 UTC (permalink / raw) To: Nobuhiro Iwamatsu Cc: Thomas Petazzoni, Ezequiel Garcia, Ezequiel Garcia, Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-usb-u79uwXL29TY76Z2rM5mHXA, Florian Fainelli, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On 01/19/2013 01:07 AM, Nobuhiro Iwamatsu wrote: > Hi, > > Thomas, Thank you for the detailed explanation. > > Ezequiel, I checked your patch on OpenBlocks AX3, work fine. > > But I have a question. your patch "arm: mvebu: Add support for USB > host controllers in Armada 370/XP" > was set USB controller of 0xd0050000 to IRQ 45. I think this is 47, > and 0xd0052000 is 45. > Because manual has been written irq 45 is USB2. > I'm sorry if if my lack of understanding or typo in the manual. It was a typo in the manual, and we have spent some time to figure it out! -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <50F9E4CA.6050006-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board [not found] ` <50F9E4CA.6050006-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2013-01-19 0:21 ` Nobuhiro Iwamatsu 0 siblings, 0 replies; 16+ messages in thread From: Nobuhiro Iwamatsu @ 2013-01-19 0:21 UTC (permalink / raw) To: Gregory CLEMENT Cc: Thomas Petazzoni, Ezequiel Garcia, Ezequiel Garcia, Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-usb-u79uwXL29TY76Z2rM5mHXA, Florian Fainelli, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi, On Sat, Jan 19, 2013 at 9:11 AM, Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > On 01/19/2013 01:07 AM, Nobuhiro Iwamatsu wrote: >> Hi, >> >> Thomas, Thank you for the detailed explanation. >> >> Ezequiel, I checked your patch on OpenBlocks AX3, work fine. >> >> But I have a question. your patch "arm: mvebu: Add support for USB >> host controllers in Armada 370/XP" >> was set USB controller of 0xd0050000 to IRQ 45. I think this is 47, >> and 0xd0052000 is 45. >> Because manual has been written irq 45 is USB2. >> I'm sorry if if my lack of understanding or typo in the manual. > > It was a typo in the manual, and we have spent some time to figure > it out! > I see, thanks for your comment. Tested-by: Nobuhiro Iwamatsu <iwamatsu-+mkmVskJBflAfugRpC6u6w@public.gmane.org> Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP [not found] ` <1358243670-11935-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2013-01-15 9:54 ` [PATCH 2/6] arm: mvebu: Enable USB controllers on Armada 370 evaluation board Ezequiel Garcia 2013-01-15 9:54 ` [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board Ezequiel Garcia @ 2013-01-15 10:23 ` Florian Fainelli [not found] ` <50F52E1F.8010702-p3rKhJxN3npAfugRpC6u6w@public.gmane.org> 2 siblings, 1 reply; 16+ messages in thread From: Florian Fainelli @ 2013-01-15 10:23 UTC (permalink / raw) To: Ezequiel Garcia Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-usb-u79uwXL29TY76Z2rM5mHXA, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, Thomas Petazzoni, Gregory CLEMENT Hello Ezequiel, Le 01/15/13 10:54, Ezequiel Garcia a écrit : > diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig > index 440b13e..5e4fcde 100644 > --- a/arch/arm/mach-mvebu/Kconfig > +++ b/arch/arm/mach-mvebu/Kconfig > @@ -24,6 +24,7 @@ config MACH_ARMADA_370_XP > select HAVE_SMP > select CACHE_L2X0 > select CPU_PJ4B > + select USB_ARCH_HAS_EHCI if USB_SUPPORT I do not think this is actually required because ARCH_MVEBU selects PLAT_ORION and in drivers/usb/host/Kconfig, USB_ARCH_HAS_EHCI is default y if PLAT_ORION. Having USB_ARCH_HAS_EHCI without USB_SUPPORT enabled is pretty harmless. -- Florian -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <50F52E1F.8010702-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>]
* Re: [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP [not found] ` <50F52E1F.8010702-p3rKhJxN3npAfugRpC6u6w@public.gmane.org> @ 2013-01-15 10:49 ` Ezequiel Garcia 0 siblings, 0 replies; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-15 10:49 UTC (permalink / raw) To: Florian Fainelli Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-usb-u79uwXL29TY76Z2rM5mHXA, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, Thomas Petazzoni, Gregory CLEMENT Hi Florian, On 01/15/2013 07:23 AM, Florian Fainelli wrote: > Le 01/15/13 10:54, Ezequiel Garcia a écrit : >> diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig >> index 440b13e..5e4fcde 100644 >> --- a/arch/arm/mach-mvebu/Kconfig >> +++ b/arch/arm/mach-mvebu/Kconfig >> @@ -24,6 +24,7 @@ config MACH_ARMADA_370_XP >> select HAVE_SMP >> select CACHE_L2X0 >> select CPU_PJ4B >> + select USB_ARCH_HAS_EHCI if USB_SUPPORT > > I do not think this is actually required because ARCH_MVEBU selects PLAT_ORION and in drivers/usb/host/Kconfig, USB_ARCH_HAS_EHCI is default y if PLAT_ORION. Having USB_ARCH_HAS_EHCI without USB_SUPPORT enabled is pretty harmless. Yes, you're right, this is not needed. Nice catch and thanks for the review, -- Ezequiel García, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 3/6] arm: mvebu: Enable USB controllers on Armada 370 Mirabox board 2013-01-15 9:54 [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP Ezequiel Garcia [not found] ` <1358243670-11935-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2013-01-15 9:54 ` Ezequiel Garcia 2013-01-15 9:54 ` [PATCH 4/6] arm: mvebu: Enable USB controllers on Armada XP evaluation board Ezequiel Garcia 2013-01-15 9:54 ` [PATCH 6/6] arm: mvebu: Update defconfig to select USB support Ezequiel Garcia 3 siblings, 0 replies; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-15 9:54 UTC (permalink / raw) To: linux-arm-kernel, linux-usb, devicetree-discuss Cc: Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, Thomas Petazzoni, Ezequiel Garcia, Gregory CLEMENT, Florian Fainelli Cc: Lior Amsalem <alior@marvell.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> --- arch/arm/boot/dts/armada-370-mirabox.dts | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/armada-370-mirabox.dts b/arch/arm/boot/dts/armada-370-mirabox.dts index 1864820..dd0c57d 100644 --- a/arch/arm/boot/dts/armada-370-mirabox.dts +++ b/arch/arm/boot/dts/armada-370-mirabox.dts @@ -62,5 +62,13 @@ * Wifi/Bluetooth chip */ }; + + usb@d0050000 { + status = "okay"; + }; + + usb@d0051000 { + status = "okay"; + }; }; }; -- 1.7.8.6 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 4/6] arm: mvebu: Enable USB controllers on Armada XP evaluation board 2013-01-15 9:54 [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP Ezequiel Garcia [not found] ` <1358243670-11935-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2013-01-15 9:54 ` [PATCH 3/6] arm: mvebu: Enable USB controllers on Armada 370 Mirabox board Ezequiel Garcia @ 2013-01-15 9:54 ` Ezequiel Garcia 2013-01-15 9:54 ` [PATCH 6/6] arm: mvebu: Update defconfig to select USB support Ezequiel Garcia 3 siblings, 0 replies; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-15 9:54 UTC (permalink / raw) To: linux-arm-kernel, linux-usb, devicetree-discuss Cc: Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, Thomas Petazzoni, Ezequiel Garcia, Gregory CLEMENT, Florian Fainelli Cc: Lior Amsalem <alior@marvell.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> --- arch/arm/boot/dts/armada-xp-db.dts | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/armada-xp-db.dts b/arch/arm/boot/dts/armada-xp-db.dts index c7035c5..c84e1fe 100644 --- a/arch/arm/boot/dts/armada-xp-db.dts +++ b/arch/arm/boot/dts/armada-xp-db.dts @@ -97,5 +97,17 @@ status = "okay"; /* No CD or WP GPIOs */ }; + + usb@d0050000 { + status = "okay"; + }; + + usb@d0051000 { + status = "okay"; + }; + + usb@d0052000 { + status = "okay"; + }; }; }; -- 1.7.8.6 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 6/6] arm: mvebu: Update defconfig to select USB support 2013-01-15 9:54 [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP Ezequiel Garcia ` (2 preceding siblings ...) 2013-01-15 9:54 ` [PATCH 4/6] arm: mvebu: Enable USB controllers on Armada XP evaluation board Ezequiel Garcia @ 2013-01-15 9:54 ` Ezequiel Garcia 3 siblings, 0 replies; 16+ messages in thread From: Ezequiel Garcia @ 2013-01-15 9:54 UTC (permalink / raw) To: linux-arm-kernel, linux-usb, devicetree-discuss Cc: Lior Amsalem, Andrew Lunn, Yehuda Yitschak, Jason Cooper, Arnd Bergmann, Michael Opdenacker, Thomas Petazzoni, Ezequiel Garcia, Gregory CLEMENT, Florian Fainelli Cc: Lior Amsalem <alior@marvell.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> --- arch/arm/configs/mvebu_defconfig | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig index c3c6326..f8d0183 100644 --- a/arch/arm/configs/mvebu_defconfig +++ b/arch/arm/configs/mvebu_defconfig @@ -42,7 +42,10 @@ CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_DW=y CONFIG_GPIOLIB=y CONFIG_GPIO_SYSFS=y -# CONFIG_USB_SUPPORT is not set +CONFIG_USB_SUPPORT=y +CONFIG_USB=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_ROOT_HUB_TT=y CONFIG_MMC=y CONFIG_MMC_MVSDIO=y CONFIG_RTC_CLASS=y -- 1.7.8.6 ^ permalink raw reply related [flat|nested] 16+ messages in thread
end of thread, other threads:[~2013-01-19 0:21 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-01-15 9:54 [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP Ezequiel Garcia [not found] ` <1358243670-11935-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2013-01-15 9:54 ` [PATCH 2/6] arm: mvebu: Enable USB controllers on Armada 370 evaluation board Ezequiel Garcia [not found] ` <1358243670-11935-2-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2013-01-15 13:07 ` Arnd Bergmann [not found] ` <201301151307.26665.arnd-r2nGTMty4D4@public.gmane.org> 2013-01-15 13:58 ` Ezequiel Garcia 2013-01-15 9:54 ` [PATCH 5/6] arm: mvebu: Enable USB controllers on Armada XP OpenBlocks AX3-4 board Ezequiel Garcia 2013-01-16 0:01 ` Nobuhiro Iwamatsu [not found] ` <CABMQnVLD+VKj53dfQC24AwCboed3EGt+gqTKt-B9q8nhEx3Ytg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-01-16 19:16 ` Ezequiel Garcia [not found] ` <CALF0-+XKGk+ru3VZ6815KTu_Aj_daYafr+Y5WJ9dXUoFqbTHOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-01-16 19:37 ` Thomas Petazzoni 2013-01-19 0:07 ` Nobuhiro Iwamatsu [not found] ` <CABMQnVLtXfs+bUsSm0xN6KRO8hCeaqy6xKbRaHS-qX0OdiZfbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-01-19 0:11 ` Gregory CLEMENT [not found] ` <50F9E4CA.6050006-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2013-01-19 0:21 ` Nobuhiro Iwamatsu 2013-01-15 10:23 ` [PATCH 1/6] arm: mvebu: Add support for USB host controllers in Armada 370/XP Florian Fainelli [not found] ` <50F52E1F.8010702-p3rKhJxN3npAfugRpC6u6w@public.gmane.org> 2013-01-15 10:49 ` Ezequiel Garcia 2013-01-15 9:54 ` [PATCH 3/6] arm: mvebu: Enable USB controllers on Armada 370 Mirabox board Ezequiel Garcia 2013-01-15 9:54 ` [PATCH 4/6] arm: mvebu: Enable USB controllers on Armada XP evaluation board Ezequiel Garcia 2013-01-15 9:54 ` [PATCH 6/6] arm: mvebu: Update defconfig to select USB support Ezequiel Garcia
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).