From patchwork Wed May 27 07:59:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tenart X-Patchwork-Id: 6487961 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DD4AB9F1C1 for ; Wed, 27 May 2015 08:02:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 15B47206E6 for ; Wed, 27 May 2015 08:02:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1AA3A206F1 for ; Wed, 27 May 2015 08:02:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxWFt-0002du-T9; Wed, 27 May 2015 08:00:01 +0000 Received: from down.free-electrons.com ([37.187.137.238] helo=mail.free-electrons.com) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxWFp-0002Mp-4k for linux-arm-kernel@lists.infradead.org; Wed, 27 May 2015 07:59:57 +0000 Received: by mail.free-electrons.com (Postfix, from userid 106) id 49AF6349; Wed, 27 May 2015 09:59:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from localhost (vpn.foo.tf [195.154.43.236]) by mail.free-electrons.com (Postfix) with ESMTPSA id 00256238; Wed, 27 May 2015 09:59:38 +0200 (CEST) From: Antoine Tenart To: sebastian.hesselbarth@gmail.com Subject: [PATCH v2] ARM: berlin: add SPI nodes for BG2Q Date: Wed, 27 May 2015 09:59:33 +0200 Message-Id: <1432713573-32147-1-git-send-email-antoine.tenart@free-electrons.com> X-Mailer: git-send-email 2.4.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150527_005957_434088_0930EA29 X-CRM114-Status: UNSURE ( 7.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: zmxu@marvell.com, jszhang@marvell.com, Antoine Tenart , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The BG2Q SoC has two SPI controllers. Add the corresponding nodes. Signed-off-by: Antoine Tenart --- Changes since v1: - reworked the pinmux - removed useless interrupt-parent properties - typo arch/arm/boot/dts/berlin2q.dtsi | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi index 187d056f7ad2..9f42ebfa50f2 100644 --- a/arch/arm/boot/dts/berlin2q.dtsi +++ b/arch/arm/boot/dts/berlin2q.dtsi @@ -286,6 +286,19 @@ status = "disabled"; }; + spi0: spi@1c00 { + compatible = "snps,dw-apb-ssi"; + reg = <0x1c00 0x100>; + interrupts = <7>; + clocks = <&chip_clk CLKID_CFG>; + pinctrl-0 = <&spi1_pmux>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + num-cs = <4>; + status = "disabled"; + }; + timer0: timer@2c00 { compatible = "snps,dw-apb-timer"; reg = <0x2c00 0x14>; @@ -383,6 +396,11 @@ groups = "G7"; function = "twsi1"; }; + + spi1_pmux: spi1-pmux { + groups = "G8"; + function = "spi1"; + }; }; chip_rst: reset { @@ -473,6 +491,19 @@ }; }; + spi1: spi@6000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x6000 0x100>; + interrupts = <5>; + clocks = <&refclk>; + pinctrl-0 = <&spi2_pmux>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + num-cs = <4>; + status = "disabled"; + }; + i2c2: i2c@7000 { compatible = "snps,designware-i2c"; #address-cells = <1>; @@ -564,6 +595,11 @@ groups = "GSM14"; function = "twsi3"; }; + + spi2_pmux: spi2-pmux { + groups = "GSM3"; + function = "spi2"; + }; }; };