From patchwork Fri Nov 21 19:46:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 5357711 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 60BEA9F2F1 for ; Fri, 21 Nov 2014 19:49:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8F944200E6 for ; Fri, 21 Nov 2014 19:48:59 +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 7D04F20107 for ; Fri, 21 Nov 2014 19:48:58 +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 1Xru9w-0000Gb-1U; Fri, 21 Nov 2014 19:46:24 +0000 Received: from 36.223.133.77.rev.sfr.net ([77.133.223.36] helo=smtp.natisbad.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xru8w-0006mG-Ch for linux-arm-kernel@lists.infradead.org; Fri, 21 Nov 2014 19:45:23 +0000 Received: by smtp.natisbad.org (Postfix, from userid 109) id D45591700769; Fri, 21 Nov 2014 20:45:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1416599100; bh=V5oIVVgsq+Y7d2dI8YqA9NFn3PpeC3je4BuNxIGrunk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Xotv1KORxv8RFUhC4+8GCD+heChsPrdEELHUJbcvCybW5EZj/36TcSlC3+ot5lQNQ Zu2IqvEuEf7w6oZrff+zsqKmqwmASjeHQuoqlZb1asJ4Y/FouQyjjNq3V9aZqaUkky ZHK9WFHzHJRHrncMV0JF7NWJP0qwF1ADoO6+01h8= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from small (localhost [IPv6:::1]) by smtp.natisbad.org (Postfix) with ESMTP id A952C1700D64; Fri, 21 Nov 2014 20:42:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1416598955; bh=V5oIVVgsq+Y7d2dI8YqA9NFn3PpeC3je4BuNxIGrunk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=dkLkEGDKNM2qMkm90O8faKLOgFciK8lbvgX+nPqxZMMO7NAdGnjB1iQ5M9tavVb68 fk7QqDty0aHGiBD/jsBHyDi5qQkc8myiJyrn2JWQclo6HPnsdRKmDTekuX1Zf9QnHH GVAUgydbyIn0pcNmA1ZpiNMVYEhS+nRY46aZUZOw= X-Hashcash: 1:20:141121:jason@lakedaemon.net::X2roqzJEaOkWCPML:000000000000000000000000000000000000000009BZO X-Hashcash: 1:20:141121:andrew@lunn.ch::tPo9N/idf1/wnkjR:00019Wu X-Hashcash: 1:20:141121:gregory.clement@free-electrons.com::OwS1Rr7pEZJ4qNpr:0000000000000000000000000007BqZ X-Hashcash: 1:20:141121:sebastian.hesselbarth@gmail.com::TuhPl9OKHZuRhGyh:00000000000000000000000000000009Bo X-Hashcash: 1:20:141121:klightspeed@killerwolves.net::kKpnDi6PJdB3rdf5:0000000000000000000000000000000001AdQ X-Hashcash: 1:20:141121:linux@arm.linux.org.uk::OKk3CUKcnAKPa4UT:0000000000000000000000000000000000000004ljY X-Hashcash: 1:20:141121:linux-arm-kernel@lists.infradead.org::1/alRKjDPf/Yb7tN:00000000000000000000000001jf4 X-Hashcash: 1:20:141121:rob.herring@calxeda.com::Xw9iB6Uzb3xkTXSg:000000000000000000000000000000000000001Gjl X-Hashcash: 1:20:141121:pawel.moll@arm.com::wYZyV0pCtam8fQQl:00000000000000000000000000000000000000000002rsP X-Hashcash: 1:20:141121:mark.rutland@arm.com::LpLXgvUvFop88ZYo:00000000000000000000000000000000000000000066N X-Hashcash: 1:20:141121:swarren@wwwdotorg.org::zUZj8u4pMIsBX0W8:00000000000000000000000000000000000000006AIw X-Hashcash: 1:20:141121:ijc+devicetree@hellion.org.uk::7hcWBqLzk0Mwh8hY:000000000000000000000000000000001UJa X-Hashcash: 1:20:141121:devicetree@vger.kernel.org::ATEDK9ovEk6+WX5h:000000000000000000000000000000000002VQx From: Arnaud Ebalard To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Ben Peddell Subject: [PATCHv5 08/10] arm: mvebu: define and use common Armada XP SPI pinctrl setting In-Reply-To: References: Message-Id: <45747a6875f158a8783206953949834e31822cb7.1416598537.git.arno@natisbad.org> Date: Fri, 21 Nov 2014 20:46:06 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141121_114522_650047_25DAD2BF X-CRM114-Status: GOOD ( 11.57 ) X-Spam-Score: 0.3 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Stephen Warren , Ian Campbell , Rob Herring , 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: , 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 This patch defines common Armada XP pinctrl settings in armada-xp.dtsi for the supported SPI interface (MPP36-39) and use it as default for Armada XP spi interface. That being done, it removes the now redundant definitions in armada-xp-axpwifiap.dts. Note: this patch has the potential to break out-of-tree users w/o specific pinctrl settings for their spi interfaces if the default above does not match their config (i.e. if they do not use CS0). Signed-off-by: Arnaud Ebalard --- arch/arm/boot/dts/armada-xp-axpwifiap.dts | 7 ------- arch/arm/boot/dts/armada-xp.dtsi | 11 +++++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/armada-xp-axpwifiap.dts b/arch/arm/boot/dts/armada-xp-axpwifiap.dts index 0e53fad111de..c9d25bdbe795 100644 --- a/arch/arm/boot/dts/armada-xp-axpwifiap.dts +++ b/arch/arm/boot/dts/armada-xp-axpwifiap.dts @@ -100,8 +100,6 @@ spi0: spi@10600 { status = "okay"; - pinctrl-0 = <&pmx_spi>; - pinctrl-names = "default"; spi-flash@0 { #address-cells = <1>; @@ -138,11 +136,6 @@ marvell,function = "gpio"; }; - pmx_spi: pmx-spi { - marvell,pins = "mpp36", "mpp37", "mpp38", "mpp39"; - marvell,function = "spi"; - }; - pmx_phy_int: pmx-phy-int { marvell,pins = "mpp32"; marvell,function = "gpio"; diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi index 7cefb9b6d27c..586085a172a7 100644 --- a/arch/arm/boot/dts/armada-xp.dtsi +++ b/arch/arm/boot/dts/armada-xp.dtsi @@ -53,6 +53,11 @@ reg = <0x11100 0x100>; }; + spi0: spi@10600 { + pinctrl-0 = <&spi0_pins>; + pinctrl-names = "default"; + }; + uart2: serial@12200 { compatible = "snps,dw-apb-uart"; pinctrl-0 = <&uart2_pins>; @@ -240,6 +245,12 @@ marvell,function = "sd0"; }; + spi0_pins: spi0-pins { + marvell,pins = "mpp36", "mpp37", + "mpp38", "mpp39"; + marvell,function = "spi"; + }; + uart2_pins: uart2-pins { marvell,pins = "mpp42", "mpp43"; marvell,function = "uart2";