Skip to contentSkip to conversation

ARM: at91/DT: enable SPI for more SoCs

PATCH In review Nicolas Ferre 3 participants 7 messages Jun 24, 2013 – Aug 21, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover 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(-)
Signature · 1 line
1.8.2.2
#1 lore raw

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".

---
 arch/arm/boot/dts/sama5d3.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sama5d3.dtsi +2 -2
index bbf88d7..178fd09 100644
@@ -80,7 +80,7 @@
 			spi0: spi at 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 at 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";
Signature · 1 line
1.8.2.2
#2 lore raw

PATCH 2/3 ARM: at91/DT: sama5d3: add SPI DMA client infos

In reply to Nicolas Ferre
---
 arch/arm/boot/dts/sama5d3.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/sama5d3.dtsi +6 -0
index 178fd09..a1d5e25 100644
@@ -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";
Signature · 1 line
1.8.2.2
#3 lore raw

PATCH 3/3 ARM: at91/DT: at91sam9n12: add SPI DMA client infos

In reply to Nicolas Ferre
---
 arch/arm/boot/dts/at91sam9n12.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/at91sam9n12.dtsi +6 -0
index 973bf5f..bb7f564 100644
@@ -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";
Signature · 1 line
1.8.2.2
#4 lore raw
In reply to Nicolas Ferre
Quoted 19 lines

-----Original Message-----
From: Nicolas Ferre [mailto:nicolas.ferre at atmel.com]
Sent: 2013?6?24? 18:35
To: Jean-Christophe PLAGNIOL-VILLARD; Desroches, Ludovic; Yang, Wenyou; Shen, Voice; Wu, Josh
Cc: linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org; 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

Quoted 6 lines
 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]>

#5 lore raw

On 26/06/2013 03:59, Yang, Wenyou :

Quoted 23 lines
Quoted 23 lines

-----Original Message-----
From: Nicolas Ferre [mailto:nicolas.ferre at atmel.com]
Sent: 2013?6?24? 18:35
To: Jean-Christophe PLAGNIOL-VILLARD; Desroches, Ludovic; Yang, Wenyou; Shen, Voice; Wu, Josh
Cc: linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org; 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(-)
Quoted 6 lines
Quoted 2 lines

--
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,

Signature · 1 line
Nicolas Ferre
Acked-by on the v1 series
#6 lore raw
In reply to Nicolas Ferre
Quoted 2 lines · Nicolas Ferre

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

on all

Best Regards,
J.

Quoted 13 lines

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(-)
Signature · 1 line
1.8.2.2