Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753122AbbETMxT (ORCPT ); Wed, 20 May 2015 08:53:19 -0400 Received: from down.free-electrons.com ([37.187.137.238]:43184 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752324AbbETMxP (ORCPT ); Wed, 20 May 2015 08:53:15 -0400 From: Antoine Tenart To: sebastian.hesselbarth@gmail.com Cc: Antoine Tenart , zmxu@marvell.com, jszhang@marvell.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: berlin: add SPI nodes for BG2Q Date: Wed, 20 May 2015 14:53:05 +0200 Message-Id: <1432126385-27402-1-git-send-email-antoine.tenart@free-electrons.com> X-Mailer: git-send-email 2.4.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2127 Lines: 88 The BG2Q SoC has two SPI controllers. Add the corresponding nodes. Signed-off-by: Antoine Tenart --- Based on top of the Berlin clock rework series. arch/arm/boot/dts/berlin2q.dtsi | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi index 187d056f7ad2..c25ee86b2bfa 100644 --- a/arch/arm/boot/dts/berlin2q.dtsi +++ b/arch/arm/boot/dts/berlin2q.dtsi @@ -286,6 +286,20 @@ status = "disabled"; }; + spi0: spi@1c00 { + compatible = "snps,dw-apb-ssi"; + reg = <0x1c00 0x100>; + interrupt-parrent = <&aic>; + interrupts = <7>; + clocks = <&chip_clk CLKID_CFG>; + pinctrl-0 = <&spi0_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 +397,11 @@ groups = "G7"; function = "twsi1"; }; + + spi0_pmux: spi0-pmux { + groups = "G8", "G9", "G10", "G11"; + function = "spi1"; + }; }; chip_rst: reset { @@ -473,6 +492,20 @@ }; }; + spi1: spi@5000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x6000 0x100>; + interrupt-parent = <&sic>; + interrupts = <5>; + clocks = <&refclk>; + pinctrl-0 = <&spi1_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 +597,11 @@ groups = "GSM14"; function = "twsi3"; }; + + spi1_pmux: spi1-pmux { + groups = "GSM0", "GSM1", "GSM2", "GSM3"; + function = "spi2"; + }; }; }; -- 2.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/