From patchwork Fri Nov 21 19:45:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 5357681 Return-Path: X-Original-To: patchwork-linux-arm@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 5766AC11AC for ; Fri, 21 Nov 2014 19:48:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 83386200E6 for ; Fri, 21 Nov 2014 19:48:15 +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 AE474200D9 for ; Fri, 21 Nov 2014 19:48:14 +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 1Xru97-0007uv-Tl; Fri, 21 Nov 2014 19:45:33 +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 1Xru8h-0006U6-H8 for linux-arm-kernel@lists.infradead.org; Fri, 21 Nov 2014 19:45:08 +0000 Received: by smtp.natisbad.org (Postfix, from userid 109) id 6EA6F1700516; Fri, 21 Nov 2014 20:44:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1416599083; bh=rv8HjccYQ0c9u4Mmd0EcQLkmOaO986+Bxlw2GrDr4aQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MwYNYcr9ZI7VtS+R77DXY5wjb+MzI5NnYvurP3awWitFYpOZIrWrZD2bMecVNi1m0 vu32LrDkpFsXdbtHN4228m/T5SNf+JjcTUYP6vC8iGujeyQAFwffhTXFRA5OK/3rL3 69QbnNUWxDrVRiRkVamClf1ADMSB4bmy7x9Cfwbg= 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=ham version=3.3.1 Received: from small (localhost [IPv6:::1]) by smtp.natisbad.org (Postfix) with ESMTP id 495221700D4F; Fri, 21 Nov 2014 20:42:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1416598949; bh=rv8HjccYQ0c9u4Mmd0EcQLkmOaO986+Bxlw2GrDr4aQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VtxHdh4m8dotkXTNM6J7My6lnNHGDov5OMQ1Sbhw7kqLTkjMUT3tOt4ysUR8HiPnV IboiTLl37mGGEFalNCm+74Z+hnsNLD/jj9Fsj67L+PepozagLX3cgaFUowSpYKGs8W DqDpqrh2SApTPo7ge2u7LwfRFmnzK0OlJ3OPwrao= X-Hashcash: 1:20:141121:jason@lakedaemon.net::MRxkGnSamuWc1XCK:000000000000000000000000000000000000000003U6H X-Hashcash: 1:20:141121:andrew@lunn.ch::zrJUT0kDcpEnWkri:0000Ai7 X-Hashcash: 1:20:141121:gregory.clement@free-electrons.com::48qZfafaTc2LEaaB:0000000000000000000000000001NkD X-Hashcash: 1:20:141121:sebastian.hesselbarth@gmail.com::2lJxXpeA4jcDHs4b:0000000000000000000000000000003HpW X-Hashcash: 1:20:141121:klightspeed@killerwolves.net::j2s5DRJCzKSdGtjo:0000000000000000000000000000000000onE X-Hashcash: 1:20:141121:linux@arm.linux.org.uk::6Zttl2mVBURCKp0B:0000000000000000000000000000000000000000hYi X-Hashcash: 1:20:141121:linux-arm-kernel@lists.infradead.org::BiyPOuf6/5sylDMb:00000000000000000000000000wVC X-Hashcash: 1:20:141121:rob.herring@calxeda.com::PljkN1ePCElFHVJK:000000000000000000000000000000000000009p4w X-Hashcash: 1:20:141121:pawel.moll@arm.com::ChFRTuWZRzY6vKKD:00000000000000000000000000000000000000000004Rbk X-Hashcash: 1:20:141121:mark.rutland@arm.com::aW3F0xp0cSPsQlGd:000000000000000000000000000000000000000003WEp X-Hashcash: 1:20:141121:swarren@wwwdotorg.org::APtMHyDxxyt5WWMl:000000000000000000000000000000000000000062sJ X-Hashcash: 1:20:141121:ijc+devicetree@hellion.org.uk::J/ltpsI7VRFTAZPx:00000000000000000000000000000000HN1X X-Hashcash: 1:20:141121:devicetree@vger.kernel.org::ZYATpcKQsyIKYQgL:000000000000000000000000000000000001FUL From: Arnaud Ebalard To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Ben Peddell Subject: [PATCHv5 07/10] arm: mvebu: define and use common Armada XP UART2/3 pinctrl settings In-Reply-To: References: Message-Id: <31e3c46bf4794c08aae4e92099c840c792f19c3b.1416598537.git.arno@natisbad.org> Date: Fri, 21 Nov 2014 20:45:59 +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_114507_929141_58F9EDD9 X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. 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 for uart2 and uart3 interfaces (uart0 and uart1 rx/tx do not rely on MPP): uart2: MPP42-43 as default uart3: MPP44-45 as default Suggested-by: Andrew Lunn Signed-off-by: Arnaud Ebalard --- arch/arm/boot/dts/armada-xp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi index b59a83cf2f26..7cefb9b6d27c 100644 --- a/arch/arm/boot/dts/armada-xp.dtsi +++ b/arch/arm/boot/dts/armada-xp.dtsi @@ -55,6 +55,8 @@ uart2: serial@12200 { compatible = "snps,dw-apb-uart"; + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; reg = <0x12200 0x100>; reg-shift = <2>; interrupts = <43>; @@ -65,6 +67,8 @@ uart3: serial@12300 { compatible = "snps,dw-apb-uart"; + pinctrl-0 = <&uart3_pins>; + pinctrl-names = "default"; reg = <0x12300 0x100>; reg-shift = <2>; interrupts = <44>; @@ -235,4 +239,14 @@ "mpp33", "mpp34", "mpp35"; marvell,function = "sd0"; }; + + uart2_pins: uart2-pins { + marvell,pins = "mpp42", "mpp43"; + marvell,function = "uart2"; + }; + + uart3_pins: uart3-pins { + marvell,pins = "mpp44", "mpp45"; + marvell,function = "uart3"; + }; };