2013-06-24 10:35:22

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH 0/3] ARM: at91/DT: enable SPI for more SoCs

This little series is for enabling the support of SPI on at91sam9n12 and
sama5d3 families.

Nicolas Ferre (3):
ARM: at91/DT: fix SPI compatibility string
ARM: at91/DT: sama5d3: add SPI DMA client infos
ARM: at91/DT: at91sam9n12: add SPI DMA client infos

arch/arm/boot/dts/at91sam9n12.dtsi | 6 ++++++
arch/arm/boot/dts/sama5d3.dtsi | 10 ++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)

--
1.8.2.2


2013-06-24 10:35:50

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH 1/3] ARM: at91/DT: fix SPI compatibility string

In previous version of SPI driver we where using different compatibility stings
for finding SPI features. We are now using the IP revision information.
So we stay with the unique compatibility string for this driver:
"atmel,at91rm9200-spi".

Signed-off-by: Nicolas Ferre <[email protected]>
---
arch/arm/boot/dts/sama5d3.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi
index bbf88d7..178fd09 100644
--- a/arch/arm/boot/dts/sama5d3.dtsi
+++ b/arch/arm/boot/dts/sama5d3.dtsi
@@ -80,7 +80,7 @@
spi0: spi@f0004000 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "atmel,at91sam9x5-spi";
+ compatible = "atmel,at91rm9200-spi";
reg = <0xf0004000 0x100>;
interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>;
pinctrl-names = "default";
@@ -203,7 +203,7 @@
spi1: spi@f8008000 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "atmel,at91sam9x5-spi";
+ compatible = "atmel,at91rm9200-spi";
reg = <0xf8008000 0x100>;
interrupts = <25 IRQ_TYPE_LEVEL_HIGH 3>;
pinctrl-names = "default";
--
1.8.2.2

2013-06-24 10:36:13

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH 2/3] ARM: at91/DT: sama5d3: add SPI DMA client infos

Signed-off-by: Nicolas Ferre <[email protected]>
---
arch/arm/boot/dts/sama5d3.dtsi | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi
index 178fd09..a1d5e25 100644
--- a/arch/arm/boot/dts/sama5d3.dtsi
+++ b/arch/arm/boot/dts/sama5d3.dtsi
@@ -83,6 +83,9 @@
compatible = "atmel,at91rm9200-spi";
reg = <0xf0004000 0x100>;
interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>;
+ dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(1)>,
+ <&dma0 2 AT91_DMA_CFG_PER_ID(2)>;
+ dma-names = "tx", "rx";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi0>;
status = "disabled";
@@ -206,6 +209,9 @@
compatible = "atmel,at91rm9200-spi";
reg = <0xf8008000 0x100>;
interrupts = <25 IRQ_TYPE_LEVEL_HIGH 3>;
+ dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(15)>,
+ <&dma1 2 AT91_DMA_CFG_PER_ID(16)>;
+ dma-names = "tx", "rx";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi1>;
status = "disabled";
--
1.8.2.2

2013-06-24 10:36:35

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH 3/3] ARM: at91/DT: at91sam9n12: add SPI DMA client infos

Signed-off-by: Nicolas Ferre <[email protected]>
---
arch/arm/boot/dts/at91sam9n12.dtsi | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi b/arch/arm/boot/dts/at91sam9n12.dtsi
index 973bf5f..bb7f564 100644
--- a/arch/arm/boot/dts/at91sam9n12.dtsi
+++ b/arch/arm/boot/dts/at91sam9n12.dtsi
@@ -492,6 +492,9 @@
compatible = "atmel,at91rm9200-spi";
reg = <0xf0000000 0x100>;
interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>;
+ dmas = <&dma 1 AT91_DMA_CFG_PER_ID(1)>,
+ <&dma 1 AT91_DMA_CFG_PER_ID(2)>;
+ dma-names = "tx", "rx";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi0>;
status = "disabled";
@@ -503,6 +506,9 @@
compatible = "atmel,at91rm9200-spi";
reg = <0xf0004000 0x100>;
interrupts = <14 IRQ_TYPE_LEVEL_HIGH 3>;
+ dmas = <&dma 1 AT91_DMA_CFG_PER_ID(3)>,
+ <&dma 1 AT91_DMA_CFG_PER_ID(4)>;
+ dma-names = "tx", "rx";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi1>;
status = "disabled";
--
1.8.2.2

2013-06-26 02:02:34

by Wenyou Yang

[permalink] [raw]
Subject: RE: [PATCH 0/3] ARM: at91/DT: enable SPI for more SoCs



> -----Original Message-----
> From: Nicolas Ferre [mailto:[email protected]]
> Sent: 2013??6??24?? 18:35
> To: Jean-Christophe PLAGNIOL-VILLARD; Desroches, Ludovic; Yang, Wenyou;
> Shen, Voice; Wu, Josh
> Cc: [email protected]; [email protected]; Ferre,
> Nicolas
> Subject: [PATCH 0/3] ARM: at91/DT: enable SPI for more SoCs
>
> This little series is for enabling the support of SPI on at91sam9n12 and
> sama5d3 families.
>
> Nicolas Ferre (3):
> ARM: at91/DT: fix SPI compatibility string
> ARM: at91/DT: sama5d3: add SPI DMA client infos
> ARM: at91/DT: at91sam9n12: add SPI DMA client infos
>
> arch/arm/boot/dts/at91sam9n12.dtsi | 6 ++++++
> arch/arm/boot/dts/sama5d3.dtsi | 10 ++++++++--
> 2 files changed, 14 insertions(+), 2 deletions(-)
>
> --
> 1.8.2.2

Tested on sama5d34ek, Linux-next: next-20130624

Tested by Wenyou Yang <[email protected]>
????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?

2013-06-26 09:05:42

by Nicolas Ferre

[permalink] [raw]
Subject: Re: [PATCH 0/3] ARM: at91/DT: enable SPI for more SoCs

On 26/06/2013 03:59, Yang, Wenyou :
>
>
>> -----Original Message-----
>> From: Nicolas Ferre [mailto:[email protected]]
>> Sent: 2013??6??24?? 18:35
>> To: Jean-Christophe PLAGNIOL-VILLARD; Desroches, Ludovic; Yang, Wenyou;
>> Shen, Voice; Wu, Josh
>> Cc: [email protected]; [email protected]; Ferre,
>> Nicolas
>> Subject: [PATCH 0/3] ARM: at91/DT: enable SPI for more SoCs
>>
>> This little series is for enabling the support of SPI on at91sam9n12 and
>> sama5d3 families.
>>
>> Nicolas Ferre (3):
>> ARM: at91/DT: fix SPI compatibility string
>> ARM: at91/DT: sama5d3: add SPI DMA client infos
>> ARM: at91/DT: at91sam9n12: add SPI DMA client infos
>>
>> arch/arm/boot/dts/at91sam9n12.dtsi | 6 ++++++
>> arch/arm/boot/dts/sama5d3.dtsi | 10 ++++++++--
>> 2 files changed, 14 insertions(+), 2 deletions(-)
>>
>> --
>> 1.8.2.2
>
> Tested on sama5d34ek, Linux-next: next-20130624
>
> Tested by Wenyou Yang <[email protected]>

Thanks for having testing: series is stacked on at91-3.11-dt now.

Bye,
--
Nicolas Ferre

Subject: Re: [PATCH 0/3] ARM: at91/DT: enable SPI for more SoCs

On 12:35 Mon 24 Jun , Nicolas Ferre wrote:
> This little series is for enabling the support of SPI on at91sam9n12 and
> sama5d3 families.

on all
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>

Best Regards,
J.
>
> Nicolas Ferre (3):
> ARM: at91/DT: fix SPI compatibility string
> ARM: at91/DT: sama5d3: add SPI DMA client infos
> ARM: at91/DT: at91sam9n12: add SPI DMA client infos
>
> arch/arm/boot/dts/at91sam9n12.dtsi | 6 ++++++
> arch/arm/boot/dts/sama5d3.dtsi | 10 ++++++++--
> 2 files changed, 14 insertions(+), 2 deletions(-)
>
> --
> 1.8.2.2
>