ARM: at91/DT: enable SPI for more SoCs
Subsystems (2)
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
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
@@ -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
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
@@ -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
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
@@ -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
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 SoCsThis 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]>
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 SoCsThis 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 infosarch/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.2Tested 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
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 infosarch/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