linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP
@ 2013-02-04 16:38 Ezequiel Garcia
       [not found] ` <1359995888-2385-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Ezequiel Garcia @ 2013-02-04 16:38 UTC (permalink / raw)
  To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
  Cc: Thomas Petazzoni, Andrew Lunn, Jason Cooper, Lior Amsalem,
	Ezequiel Garcia, Gregory Clement, Florian Fainelli

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-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
---
 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@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@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


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support
       [not found] ` <1359995888-2385-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
@ 2013-02-04 16:38   ` Ezequiel Garcia
       [not found]     ` <1359995888-2385-2-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
  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-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
  Cc: Thomas Petazzoni, Andrew Lunn, Jason Cooper, Lior Amsalem,
	Ezequiel Garcia, Gregory Clement, Florian Fainelli

Cc: Gregory Clement <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
---
 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


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP
       [not found] ` <1359995888-2385-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
  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-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
  Cc: Thomas Petazzoni, Andrew Lunn, Jason Cooper, Lior Amsalem,
	Gregory Clement, Florian Fainelli

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [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
       [not found]       ` <20130204183733.GM14746-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
  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: Ezequiel Garcia
  Cc: Thomas Petazzoni, Lior Amsalem, Andrew Lunn,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Gregory Clement,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Florian Fainelli,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

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.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [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
       [not found]       ` <20130204190326.GA20212-g2DYL2Zd6BY@public.gmane.org>
  1 sibling, 1 reply; 11+ messages in thread
From: Andrew Lunn @ 2013-02-04 19:03 UTC (permalink / raw)
  To: Ezequiel Garcia
  Cc: Andrew Lunn, Jason Cooper,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Lior Amsalem,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Florian Fainelli,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

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

* Re: [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP
       [not found]       ` <20130204183733.GM14746-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
@ 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: Jason Cooper
  Cc: Thomas Petazzoni, Lior Amsalem, Andrew Lunn,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Gregory Clement,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Florian Fainelli,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP
       [not found]       ` <20130204190326.GA20212-g2DYL2Zd6BY@public.gmane.org>
@ 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: Andrew Lunn
  Cc: Thomas Petazzoni, Lior Amsalem, Jason Cooper,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Gregory Clement,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Florian Fainelli,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [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
       [not found]             ` <20130204194714.GN14746-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Jason Cooper @ 2013-02-04 19:47 UTC (permalink / raw)
  To: Ezequiel Garcia
  Cc: Thomas Petazzoni, Lior Amsalem, Andrew Lunn,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Gregory Clement,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Florian Fainelli,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

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.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP
       [not found]             ` <20130204194714.GN14746-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
@ 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: Jason Cooper
  Cc: Lior Amsalem, Andrew Lunn,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Ezequiel Garcia,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Florian Fainelli,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

Jason,

On Mon, Feb 4, 2013 at 4:47 PM, Jason Cooper <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org> 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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP
       [not found] ` <1359995888-2385-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
  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: Ezequiel Garcia
  Cc: Thomas Petazzoni, Andrew Lunn, Jason Cooper,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Lior Amsalem,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Florian Fainelli,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

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-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> ---
>  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@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@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-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>


Regards,
-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support
       [not found]     ` <1359995888-2385-2-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
@ 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: Ezequiel Garcia
  Cc: Andrew Lunn, Jason Cooper,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Lior Amsalem,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	Florian Fainelli,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

Hi Ezequiel,
On 02/04/2013 05:38 PM, Ezequiel Garcia wrote:
> Cc: Gregory Clement <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> Cc: Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> ---
>  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-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>

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
     [not found] ` <1359995888-2385-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-02-04 16:38   ` [PATCH 2/2] ARM: mvebu: Update defconfig to select SPI support Ezequiel Garcia
     [not found]     ` <1359995888-2385-2-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
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
     [not found]       ` <20130204183733.GM14746-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-02-04 19:29         ` Ezequiel Garcia
2013-02-04 19:47           ` Jason Cooper
     [not found]             ` <20130204194714.GN14746-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-02-04 20:01               ` Ezequiel Garcia
2013-02-04 19:03     ` Andrew Lunn
     [not found]       ` <20130204190326.GA20212-g2DYL2Zd6BY@public.gmane.org>
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).