* [PATCH 1/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP @ 2013-02-04 16:38 Ezequiel Garcia 2013-02-04 16:38 ` [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support Ezequiel Garcia ` (2 more replies) 0 siblings, 3 replies; 11+ messages in thread From: Ezequiel Garcia @ 2013-02-04 16:38 UTC (permalink / raw) To: linux-arm-kernel The Armada 370 and Armada XP SoC has an SPI controller. This patch adds support for this controller in Armada 370 and Armada XP SoC common device tree files. Cc: Gregory Clement <gregory.clement@free-electrons.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Lior Amsalem <alior@marvell.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> --- arch/arm/boot/dts/armada-370-xp.dtsi | 22 ++++++++++++++++++++++ 1 files changed, 22 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..22340d5 100644 --- a/arch/arm/boot/dts/armada-370-xp.dtsi +++ b/arch/arm/boot/dts/armada-370-xp.dtsi @@ -145,6 +145,28 @@ clocks = <&gateclk 17>; status = "disabled"; }; + + spi0: spi at d0010600 { + compatible = "marvell,orion-spi"; + reg = <0xd0010600 0x50>; + #address-cells = <1>; + #size-cells = <0>; + cell-index = <0>; + interrupts = <30>; + clocks = <&coreclk 0>; + status = "disabled"; + }; + + spi1: spi at d0010680 { + compatible = "marvell,orion-spi"; + reg = <0xd0010680 0x50>; + #address-cells = <1>; + #size-cells = <0>; + cell-index = <1>; + interrupts = <92>; + clocks = <&coreclk 0>; + status = "disabled"; + }; }; }; -- 1.7.8.6 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support 2013-02-04 16:38 [PATCH 1/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia @ 2013-02-04 16:38 ` Ezequiel Garcia 2013-02-05 15:40 ` Gregory CLEMENT 2013-02-04 16:51 ` [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia 2013-02-05 13:57 ` [PATCH 1/2] " Gregory CLEMENT 2 siblings, 1 reply; 11+ messages in thread From: Ezequiel Garcia @ 2013-02-04 16:38 UTC (permalink / raw) To: linux-arm-kernel Cc: Gregory Clement <gregory.clement@free-electrons.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Lior Amsalem <alior@marvell.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> --- arch/arm/configs/mvebu_defconfig | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig index 4e6f0ce..e243451 100644 --- a/arch/arm/configs/mvebu_defconfig +++ b/arch/arm/configs/mvebu_defconfig @@ -40,6 +40,8 @@ CONFIG_MWIFIEX_SDIO=y CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_I2C=y +CONFIG_SPI=y +CONFIG_SPI_ORION=y CONFIG_I2C_MV64XXX=y CONFIG_SERIAL_8250_DW=y CONFIG_GPIOLIB=y -- 1.7.8.6 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support 2013-02-04 16:38 ` [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support Ezequiel Garcia @ 2013-02-05 15:40 ` Gregory CLEMENT 0 siblings, 0 replies; 11+ messages in thread From: Gregory CLEMENT @ 2013-02-05 15:40 UTC (permalink / raw) To: linux-arm-kernel Hi Ezequiel, On 02/04/2013 05:38 PM, Ezequiel Garcia wrote: > Cc: Gregory Clement <gregory.clement@free-electrons.com> > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> > Cc: Lior Amsalem <alior@marvell.com> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> > --- > arch/arm/configs/mvebu_defconfig | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig > index 4e6f0ce..e243451 100644 > --- a/arch/arm/configs/mvebu_defconfig > +++ b/arch/arm/configs/mvebu_defconfig > @@ -40,6 +40,8 @@ CONFIG_MWIFIEX_SDIO=y > CONFIG_SERIAL_8250=y > CONFIG_SERIAL_8250_CONSOLE=y > CONFIG_I2C=y > +CONFIG_SPI=y > +CONFIG_SPI_ORION=y > CONFIG_I2C_MV64XXX=y > CONFIG_SERIAL_8250_DW=y > CONFIG_GPIOLIB=y > For this patch you can add my Acked-by: Gregory Clement <gregory.clement@free-electrons.com> Regards, -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP 2013-02-04 16:38 [PATCH 1/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia 2013-02-04 16:38 ` [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support Ezequiel Garcia @ 2013-02-04 16:51 ` Ezequiel Garcia 2013-02-04 18:37 ` Jason Cooper 2013-02-04 19:03 ` Andrew Lunn 2013-02-05 13:57 ` [PATCH 1/2] " Gregory CLEMENT 2 siblings, 2 replies; 11+ messages in thread From: Ezequiel Garcia @ 2013-02-04 16:51 UTC (permalink / raw) To: linux-arm-kernel Hi, This patchset adds support for the SPI controller available in Armada 370 and Armada XP SoC. The patches are based in Jason Cooper's mvebu/dt branch. Feel free to test and/or provide feedback. Ezequiel Garcia (2): ARM: mvebu: Update defconfig to select SPI support ARM: mvebu: Add support for SPI controller in Armada 370/XP arch/arm/boot/dts/armada-370-xp.dtsi | 22 ++++++++++++++++++++++ arch/arm/configs/mvebu_defconfig | 2 ++ 2 files changed, 24 insertions(+), 0 deletions(-) Thanks, -- Ezequiel Garc?a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP 2013-02-04 16:51 ` [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia @ 2013-02-04 18:37 ` Jason Cooper 2013-02-04 19:29 ` Ezequiel Garcia 2013-02-04 19:03 ` Andrew Lunn 1 sibling, 1 reply; 11+ messages in thread From: Jason Cooper @ 2013-02-04 18:37 UTC (permalink / raw) To: linux-arm-kernel Ezequiel, This series looks good. just a few comments: On Mon, Feb 04, 2013 at 01:51:20PM -0300, Ezequiel Garcia wrote: > Hi, > > This patchset adds support for the SPI controller > available in Armada 370 and Armada XP SoC. > > The patches are based in Jason Cooper's mvebu/dt branch. It probably doesn't matter for this series (I haven't tried to apply it yet), but please base future work off of a mainline tag (eg v3.8-rc6). It makes merge conflicts easier to resolve. Feel free to test-merge against the mvebu/ branches and let me know of any conflicts. Also, your patch series appears to be out of order, did you use git send-email once per file? thx, Jason. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP 2013-02-04 18:37 ` Jason Cooper @ 2013-02-04 19:29 ` Ezequiel Garcia 2013-02-04 19:47 ` Jason Cooper 0 siblings, 1 reply; 11+ messages in thread From: Ezequiel Garcia @ 2013-02-04 19:29 UTC (permalink / raw) To: linux-arm-kernel Jason, On Mon, Feb 04, 2013 at 01:37:33PM -0500, Jason Cooper wrote: > This series looks good. just a few comments: > > On Mon, Feb 04, 2013 at 01:51:20PM -0300, Ezequiel Garcia wrote: > > Hi, > > > > This patchset adds support for the SPI controller > > available in Armada 370 and Armada XP SoC. > > > > The patches are based in Jason Cooper's mvebu/dt branch. > > It probably doesn't matter for this series (I haven't tried to apply it > yet), but please base future work off of a mainline tag (eg v3.8-rc6). > It makes merge conflicts easier to resolve. > > Feel free to test-merge against the mvebu/ branches and let me know of > any conflicts. > Ah, I see. I was mistakenly assuming you wanted against that branch; I'll base the patches on mainline in the future. Thanks for the advice. > Also, your patch series appears to be out of order, did you use git > send-email once per file? > I always send the cover letter manually. This time I did it after the patches. I'm in the process of automating this in my workflow, but feel free to make a suggestion. Thanks, -- Ezequiel Garc?a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP 2013-02-04 19:29 ` Ezequiel Garcia @ 2013-02-04 19:47 ` Jason Cooper 2013-02-04 20:01 ` Ezequiel Garcia 0 siblings, 1 reply; 11+ messages in thread From: Jason Cooper @ 2013-02-04 19:47 UTC (permalink / raw) To: linux-arm-kernel Ezequiel, On Mon, Feb 04, 2013 at 04:29:15PM -0300, Ezequiel Garcia wrote: > On Mon, Feb 04, 2013 at 01:37:33PM -0500, Jason Cooper wrote: > > On Mon, Feb 04, 2013 at 01:51:20PM -0300, Ezequiel Garcia wrote: > > > The patches are based in Jason Cooper's mvebu/dt branch. > > > > It probably doesn't matter for this series (I haven't tried to apply it > > yet), but please base future work off of a mainline tag (eg v3.8-rc6). > > It makes merge conflicts easier to resolve. > > > > Feel free to test-merge against the mvebu/ branches and let me know of > > any conflicts. > > > > Ah, I see. > > I was mistakenly assuming you wanted against that branch; > I'll base the patches on mainline in the future. Nope, the branches are organized that way to sanely merge in with all the other arm-soc code. While I make every effort to keep them stable (ie, not rebased), they may change at anytime if I need to fix things. tags are stable, and if all patches are based on tags, then merge conflicts follow a predictable pattern. Anything else devolves into chaos. > > Also, your patch series appears to be out of order, did you use git > > send-email once per file? > > I always send the cover letter manually. This time I did it after the patches. > I'm in the process of automating this in my workflow, > but feel free to make a suggestion. if format-patch is called properly (I know from experience how to call it improperly ;-) ), you can just do $ git send-email ... /path/to/patches/*.patch and it'll get the order correct. It will also ask for confirmation before sending each email. Dry-run sending a series just to yourself lets you see how it will appear once it goes out to the list. hth, Jason. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP 2013-02-04 19:47 ` Jason Cooper @ 2013-02-04 20:01 ` Ezequiel Garcia 0 siblings, 0 replies; 11+ messages in thread From: Ezequiel Garcia @ 2013-02-04 20:01 UTC (permalink / raw) To: linux-arm-kernel Jason, On Mon, Feb 4, 2013 at 4:47 PM, Jason Cooper <jason@lakedaemon.net> wrote: > Ezequiel, > > On Mon, Feb 04, 2013 at 04:29:15PM -0300, Ezequiel Garcia wrote: >> On Mon, Feb 04, 2013 at 01:37:33PM -0500, Jason Cooper wrote: >> > On Mon, Feb 04, 2013 at 01:51:20PM -0300, Ezequiel Garcia wrote: >> > > The patches are based in Jason Cooper's mvebu/dt branch. >> > >> > It probably doesn't matter for this series (I haven't tried to apply it >> > yet), but please base future work off of a mainline tag (eg v3.8-rc6). >> > It makes merge conflicts easier to resolve. >> > >> > Feel free to test-merge against the mvebu/ branches and let me know of >> > any conflicts. >> > >> >> Ah, I see. >> >> I was mistakenly assuming you wanted against that branch; >> I'll base the patches on mainline in the future. > > Nope, the branches are organized that way to sanely merge in with all > the other arm-soc code. While I make every effort to keep them stable > (ie, not rebased), they may change at anytime if I need to fix things. > > tags are stable, and if all patches are based on tags, then merge > conflicts follow a predictable pattern. Anything else devolves into > chaos. > Ah?... this explains why I was seeing your branches rebased! ;-) >> > Also, your patch series appears to be out of order, did you use git >> > send-email once per file? >> >> I always send the cover letter manually. This time I did it after the patches. >> I'm in the process of automating this in my workflow, >> but feel free to make a suggestion. > > if format-patch is called properly (I know from experience how to call > it improperly ;-) ), you can just do > > $ git send-email ... /path/to/patches/*.patch > > and it'll get the order correct. It will also ask for confirmation > before sending each email. > > Dry-run sending a series just to yourself lets you see how it will > appear once it goes out to the list. > Okey, great. Thanks for the advices! -- Ezequiel ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP 2013-02-04 16:51 ` [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia 2013-02-04 18:37 ` Jason Cooper @ 2013-02-04 19:03 ` Andrew Lunn 2013-02-04 19:33 ` Ezequiel Garcia 1 sibling, 1 reply; 11+ messages in thread From: Andrew Lunn @ 2013-02-04 19:03 UTC (permalink / raw) To: linux-arm-kernel On Mon, Feb 04, 2013 at 01:51:20PM -0300, Ezequiel Garcia wrote: > Hi, > > This patchset adds support for the SPI controller > available in Armada 370 and Armada XP SoC. Hi Ezequiel Do any of the boards we have with mainline support have any devices on the SPI busses? Its hard to test otherwise. Thanks Andrew ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP 2013-02-04 19:03 ` Andrew Lunn @ 2013-02-04 19:33 ` Ezequiel Garcia 0 siblings, 0 replies; 11+ messages in thread From: Ezequiel Garcia @ 2013-02-04 19:33 UTC (permalink / raw) To: linux-arm-kernel Andrew, On Mon, Feb 04, 2013 at 08:03:26PM +0100, Andrew Lunn wrote: > On Mon, Feb 04, 2013 at 01:51:20PM -0300, Ezequiel Garcia wrote: > > Hi, > > > > This patchset adds support for the SPI controller > > available in Armada 370 and Armada XP SoC. > > Hi Ezequiel > > Do any of the boards we have with mainline support have any devices on > the SPI busses? Its hard to test otherwise. > Mmm... very true. Recently added Armada XP GP board as an SPI flash. Probably other evaluation boards also has similar SPI flashes, but I should check that. I'll prepare a patch for GP board tomorrow, based on Gregory's patches for that board, so you can test that. Also, I hope to prepare patches for the other evaluation boards soon. Regards, -- Ezequiel Garc?a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP 2013-02-04 16:38 [PATCH 1/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia 2013-02-04 16:38 ` [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support Ezequiel Garcia 2013-02-04 16:51 ` [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia @ 2013-02-05 13:57 ` Gregory CLEMENT 2 siblings, 0 replies; 11+ messages in thread From: Gregory CLEMENT @ 2013-02-05 13:57 UTC (permalink / raw) To: linux-arm-kernel Hi Ezequiel, On 02/04/2013 05:38 PM, Ezequiel Garcia wrote: > The Armada 370 and Armada XP SoC has an SPI controller. > This patch adds support for this controller in Armada 370 > and Armada XP SoC common device tree files. > > Cc: Gregory Clement <gregory.clement@free-electrons.com> > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> > Cc: Lior Amsalem <alior@marvell.com> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> > --- > arch/arm/boot/dts/armada-370-xp.dtsi | 22 ++++++++++++++++++++++ > 1 files changed, 22 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..22340d5 100644 > --- a/arch/arm/boot/dts/armada-370-xp.dtsi > +++ b/arch/arm/boot/dts/armada-370-xp.dtsi > @@ -145,6 +145,28 @@ > clocks = <&gateclk 17>; > status = "disabled"; > }; > + > + spi0: spi at d0010600 { > + compatible = "marvell,orion-spi"; > + reg = <0xd0010600 0x50>; Currently the driver only use the 5th first register. All of the other mvebu platform declare the last register at offset 0x28. The Armada 370 SoC have also the last register at offset 0x28. Only for the Armada XP SoC there are more registers and we have a the last register at offset 0x50. Obviously the driver won't use these extra register. So I think that the best for now is to declare: reg = <0xd0010600 0x28>; > + #address-cells = <1>; > + #size-cells = <0>; > + cell-index = <0>; > + interrupts = <30>; > + clocks = <&coreclk 0>; > + status = "disabled"; > + }; > + > + spi1: spi at d0010680 { > + compatible = "marvell,orion-spi"; > + reg = <0xd0010680 0x50>; and here: reg = <0xd0010680 0x28>; > + #address-cells = <1>; > + #size-cells = <0>; > + cell-index = <1>; > + interrupts = <92>; > + clocks = <&coreclk 0>; > + status = "disabled"; > + }; > }; > }; > > Once it will be fixed, for this patch you can add my Acked-by: Gregory Clement <gregory.clement@free-electrons.com> Regards, -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-02-05 15:40 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-02-04 16:38 [PATCH 1/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia 2013-02-04 16:38 ` [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support Ezequiel Garcia 2013-02-05 15:40 ` Gregory CLEMENT 2013-02-04 16:51 ` [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP Ezequiel Garcia 2013-02-04 18:37 ` Jason Cooper 2013-02-04 19:29 ` Ezequiel Garcia 2013-02-04 19:47 ` Jason Cooper 2013-02-04 20:01 ` Ezequiel Garcia 2013-02-04 19:03 ` Andrew Lunn 2013-02-04 19:33 ` Ezequiel Garcia 2013-02-05 13:57 ` [PATCH 1/2] " Gregory CLEMENT
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).