From patchwork Mon Nov 12 08:52:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenyou Yang X-Patchwork-Id: 1727111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 823BEDFE80 for ; Mon, 12 Nov 2012 09:06:27 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TXpvW-0007iD-ID; Mon, 12 Nov 2012 09:03:32 +0000 Received: from newsmtp5.atmel.com ([204.2.163.5] helo=sjogate2.atmel.com) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TXppI-0003sW-DS for linux-arm-kernel@lists.infradead.org; Mon, 12 Nov 2012 08:57:09 +0000 Received: from penbh01.corp.atmel.com ([10.168.5.31]) by sjogate2.atmel.com (8.13.6/8.13.6) with ESMTP id qAC8pRWt029566; Mon, 12 Nov 2012 00:51:41 -0800 (PST) Received: from penmb01.corp.atmel.com ([10.168.5.33]) by penbh01.corp.atmel.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Nov 2012 16:56:43 +0800 Received: from shaarm01.corp.atmel.com ([10.217.6.34]) by penmb01.corp.atmel.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Nov 2012 16:56:42 +0800 From: Wenyou Yang To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 15/17] ARM: dts: add spi nodes for atmel SoC Date: Mon, 12 Nov 2012 16:52:35 +0800 Message-Id: <1352710357-3265-16-git-send-email-wenyou.yang@atmel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352710357-3265-1-git-send-email-wenyou.yang@atmel.com> References: <1352710357-3265-1-git-send-email-wenyou.yang@atmel.com> X-OriginalArrivalTime: 12 Nov 2012 08:56:43.0394 (UTC) FILETIME=[A33C7620:01CDC0B3] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121112_035706_138216_EC592E2F X-CRM114-Status: GOOD ( 10.26 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Richard Genoud , linux@arm.linux.org.uk, JM.Lin@atmel.com, nicolas.ferre@atmel.com, wenyou.yang@atmel.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Richard Genoud Signed-off-by: Richard Genoud [wenyou.yang@atmel.com: add spi nodes for other atmel SOC] Signed-off-by: Wenyou Yang Cc: linux@arm.linux.org.uk --- Hi, Richard, This patches is based on the original patch from Richard Genoud [PATCH] spi-atmel: add sam9x5 SPI in device tree and referring to this patch, Wenyou Yang add spi nodes for other atmel SoC. Is it OK for you? Best Regards, Wenyou Yang arch/arm/boot/dts/at91sam9260.dtsi | 34 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/at91sam9263.dtsi | 34 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/at91sam9g45.dtsi | 34 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/at91sam9n12.dtsi | 34 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/at91sam9x5.dtsi | 34 ++++++++++++++++++++++++++++++++++ 5 files changed, 170 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9260.dtsi b/arch/arm/boot/dts/at91sam9260.dtsi index d410581..51e4cd2 100644 --- a/arch/arm/boot/dts/at91sam9260.dtsi +++ b/arch/arm/boot/dts/at91sam9260.dtsi @@ -246,6 +246,40 @@ trigger-external; }; }; + + spi0: spi@fffc8000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xfffc8000 0x200>; + interrupts = <12 4 3>; + cs-gpios = <&pioA 3 0 + &pioC 11 0 + &pioC 16 0 + &pioC 17 0 + >; + dma-mask = <0xffffffff>; + dma_type = <1>; + version = <2>; + status = "disabled"; + }; + + spi1: spi@fffcc000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xfffcc000 0x200>; + interrupts = <13 4 3>; + cs-gpios = <&pioB 3 0 + &pioC 5 0 + &pioC 4 0 + &pioC 3 0 + >; + dma-mask = <0xffffffff>; + dma_type = <1>; + version = <2>; + status = "disabled"; + }; }; nand0: nand@40000000 { diff --git a/arch/arm/boot/dts/at91sam9263.dtsi b/arch/arm/boot/dts/at91sam9263.dtsi index 3e6e5c1..228cbe8 100644 --- a/arch/arm/boot/dts/at91sam9263.dtsi +++ b/arch/arm/boot/dts/at91sam9263.dtsi @@ -195,6 +195,40 @@ #size-cells = <0>; status = "disabled"; }; + + spi0: spi@fffa4000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xfffa4000 0x200>; + interrupts = <14 4 3>; + cs-gpios = <&pioA 5 0 + &pioA 3 0 + &pioA 4 0 + &pioB 11 0 + >; + dma-mask = <0xffffffff>; + dma_type = <1>; + version = <2>; + status = "disabled"; + }; + + spi1: spi@fffa8000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xfffa8000 0x200>; + interrupts = <15 4 3>; + cs-gpios = <&pioB 15 0 + &pioB 16 0 + &pioB 17 0 + &pioB 18 0 + >; + dma-mask = <0xffffffff>; + dma_type = <1>; + version = <2>; + status = "disabled"; + }; }; nand0: nand@40000000 { diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi index 3add030..f34f327 100644 --- a/arch/arm/boot/dts/at91sam9g45.dtsi +++ b/arch/arm/boot/dts/at91sam9g45.dtsi @@ -262,6 +262,40 @@ trigger-value = <0x6>; }; }; + + spi0: spi@fffa4000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xfffa4000 0x200>; + interrupts = <14 4 3>; + cs-gpios = <&pioB 3 0 + &pioB 18 0 + &pioB 19 0 + &pioD 27 0 + >; + dma-mask = <0xffffffff>; + dma_type = <1>; + version = <2>; + status = "disabled"; + }; + + spi1: spi@fffa8000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xfffa8000 0x200>; + interrupts = <15 4 3>; + cs-gpios = <&pioB 17 0 + &pioD 28 0 + &pioD 18 0 + &pioD 19 0 + >; + dma-mask = <0xffffffff>; + dma_type = <1>; + version = <2>; + status = "disabled"; + }; }; nand0: nand@40000000 { diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi b/arch/arm/boot/dts/at91sam9n12.dtsi index 82508d6..a923003 100644 --- a/arch/arm/boot/dts/at91sam9n12.dtsi +++ b/arch/arm/boot/dts/at91sam9n12.dtsi @@ -202,6 +202,40 @@ #size-cells = <0>; status = "disabled"; }; + + spi0: spi@f0000000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xf0000000 0x100>; + interrupts = <13 4 3>; + cs-gpios = <&pioA 14 0 + &pioA 7 0 + &pioA 1 0 + &pioB 3 0 + >; + dma-mask = <0xffffffff>; + dma_type = <2>; + version = <2>; + status = "disabled"; + }; + + spi1: spi@f0004000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xf0004000 0x100>; + interrupts = <14 4 3>; + cs-gpios = <&pioA 8 0 + &pioA 0 0 + &pioA 31 0 + &pioA 30 0 + >; + dma-mask = <0xffffffff>; + dma_type = <2>; + version = <2>; + status = "disabled"; + }; }; nand0: nand@40000000 { diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 03fc136..25909e0 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts/at91sam9x5.dtsi @@ -263,6 +263,40 @@ trigger-value = <0x6>; }; }; + + spi0: spi@f0000000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xf0000000 0x100>; + interrupts = <13 4 3>; + cs-gpios = <&pioA 14 0 + &pioA 7 0 /* conflicts with TXD2 */ + &pioA 1 0 /* conflicts with RXD0 */ + &pioB 3 0 /* conflicts with ERXDV */ + >; + dma-mask = <0xffffffff>; + dma_type = <2>; + version = <2>; + status = "disabled"; + }; + + spi1: spi@f0004000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91rm9200-spi"; + reg = <0xf0004000 0x100>; + interrupts = <14 4 3>; + cs-gpios = <&pioA 8 0 /* conflitcs with RXD2 */ + &pioA 0 0 /* conflitcs with TXD0 */ + &pioA 31 0 /* conflitcs with TWCK0 */ + &pioA 30 0 /* conflitcs with TWD0 */ + >; + dma-mask = <0xffffffff>; + dma_type = <2>; + version = <2>; + status = "disabled"; + }; }; nand0: nand@40000000 {