From patchwork Wed Oct 8 19:27:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 5055141 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 32F77C11AB for ; Wed, 8 Oct 2014 19:27:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4365420131 for ; Wed, 8 Oct 2014 19:27:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4195920122 for ; Wed, 8 Oct 2014 19:27:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754624AbaJHT07 (ORCPT ); Wed, 8 Oct 2014 15:26:59 -0400 Received: from mail-bl2on0060.outbound.protection.outlook.com ([65.55.169.60]:56982 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754612AbaJHT06 (ORCPT ); Wed, 8 Oct 2014 15:26:58 -0400 X-Greylist: delayed 85540 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Oct 2014 15:26:58 EDT Received: from dinh-ubuntu.altera.com (64.129.157.38) by BL2PR03MB116.namprd03.prod.outlook.com (10.255.230.28) with Microsoft SMTP Server (TLS) id 15.0.1044.10; Wed, 8 Oct 2014 19:26:54 +0000 From: To: , , , , , CC: , , , , , , , , Subject: [PATCHv2] arm: dts: socfpga: Add SPI nodes to SOCFPGA DT. Date: Wed, 8 Oct 2014 14:27:08 -0500 Message-ID: <1412796428-3255-1-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR08CA0043.namprd08.prod.outlook.com (10.141.200.23) To BL2PR03MB116.namprd03.prod.outlook.com (10.255.230.28) X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB116; X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(19580395003)(19580405001)(92726001)(85852003)(86362001)(42186005)(102836001)(105586002)(97736003)(99396003)(77156001)(89996001)(92566001)(104166001)(69596002)(86152002)(50226001)(95666004)(50986999)(4396001)(77096002)(85306004)(33646002)(107046002)(62966002)(80022003)(106356001)(46102003)(53416004)(87286001)(21056001)(20776003)(47776003)(48376002)(81156004)(122386002)(64706001)(40100002)(229853001)(87976001)(88136002)(93916002)(76482002)(101416001)(66066001)(50466002)(31966008)(120916001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB116; H:dinh-ubuntu.altera.com; FPR:; MLV:sfv; PTR:InfoNoRecords; A:0; MX:1; LANG:en; X-OriginatorOrg: opensource.altera.com Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer Add 2 SPI nodes to SOCFPGA device tree. Signed-off-by: Thor Thayer --- v2: Remove extra files. Move SPIDEV into board specific file. --- arch/arm/boot/dts/socfpga.dtsi | 24 ++++++++++++++++++++++++ arch/arm/boot/dts/socfpga_cyclone5.dtsi | 10 ++++++++++ 2 files changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi index 4d77ad6..d81bc2d3 100644 --- a/arch/arm/boot/dts/socfpga.dtsi +++ b/arch/arm/boot/dts/socfpga.dtsi @@ -628,6 +628,30 @@ clock-names = "biu", "ciu"; }; + spi0: spi@fff00000 { + compatible = "snps,dw-apb-ssi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfff00000 0x1000>; + interrupts = <0 154 4>; + num-cs = <4>; + bus-num = <0>; + clocks = <&spi_m_clk>; + status = "disabled"; + }; + + spi1: spi@fff01000 { + compatible = "snps,dw-apb-ssi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfff01000 0x1000>; + interrupts = <0 156 4>; + num-cs = <4>; + bus-num = <1>; + clocks = <&spi_m_clk>; + status = "disabled"; + }; + /* Local timer */ timer@fffec600 { compatible = "arm,cortex-a9-twd-timer"; diff --git a/arch/arm/boot/dts/socfpga_cyclone5.dtsi b/arch/arm/boot/dts/socfpga_cyclone5.dtsi index bf51182..85c6b5c 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5.dtsi +++ b/arch/arm/boot/dts/socfpga_cyclone5.dtsi @@ -48,5 +48,15 @@ sysmgr@ffd08000 { cpu1-start-addr = <0xffd080c4>; }; + + spi0: spi@fff00000 { + status = "okay"; + + spidev@0 { + compatible = "spidev"; + reg = <0>; /* chip select */ + spi-max-frequency = <100000000>; + }; + }; }; };