From patchwork Tue Nov 18 23:02:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 5333641 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 C1558C11AC for ; Tue, 18 Nov 2014 23:04:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E7012201CE for ; Tue, 18 Nov 2014 23:04:17 +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 17F9D2018E for ; Tue, 18 Nov 2014 23:04:17 +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 1Xqrmw-000570-WC; Tue, 18 Nov 2014 23:02:23 +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 1Xqrmd-0004fA-3b for linux-arm-kernel@lists.infradead.org; Tue, 18 Nov 2014 23:02:03 +0000 Received: by smtp.natisbad.org (Postfix, from userid 109) id 2B99A1700D44; Wed, 19 Nov 2014 00:01:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1416351681; bh=mwqCkMA+AS3tp+mpm6Mi5znJoZUnGSXGORDxdXkFYcM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ipD1628B5jrQWZvuGgF5HVjdQRF3z/ILxpstQqswhEcNQWXRzJeT9iLLaxFhquR9h KlykcOLPu8C8COSRIC7f+eRWVIhxYqvWAsJOoW1g4bKQJsecMtIqnpJ6XiUn+zAEwJ cDBDMQUlttFrOCg1V6PaiV1DnfcRCVSR1MKrRzPs= 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 AB2D5170053E; Tue, 18 Nov 2014 23:59:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1416351553; bh=mwqCkMA+AS3tp+mpm6Mi5znJoZUnGSXGORDxdXkFYcM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ert9mnMg/ERdYfo+Pb52+28VncYI6Avs/NkNUEtBVXW4IyOGC5e9k1iGMcfqveTiX iLRUVdjwu5oLB4CPZ9aOm5FUOkWBUv/RdwHkqv4Y2/50eplNk7DASRalkaYvdGzLBF w1xRZd6J0THhXYy5WvixB4yR6NZ7+t/O9QiZ1AaU= X-Hashcash: 1:20:141118:jason@lakedaemon.net::9SoTfPz4rb/sZ7x4:000000000000000000000000000000000000000000R0S X-Hashcash: 1:20:141118:andrew@lunn.ch::bB4JBJ6ylAXEoh6s:000EPL2 X-Hashcash: 1:20:141118:gregory.clement@free-electrons.com::Mc7dslaIYMSGdIwA:0000000000000000000000000001ubX X-Hashcash: 1:20:141118:sebastian.hesselbarth@gmail.com::zTjGYv6uIxZh8zr9:00000000000000000000000000000033NO X-Hashcash: 1:20:141118:klightspeed@killerwolves.net::3xVQN5rDkvk2Tbq4:0000000000000000000000000000000007+EH X-Hashcash: 1:20:141118:linux@arm.linux.org.uk::p1A7E2UHyZupok7+:00000000000000000000000000000000000000039ir X-Hashcash: 1:20:141118:linux-arm-kernel@lists.infradead.org::QySYoxOgbh2H90P2:000000000000000000000000084bV X-Hashcash: 1:20:141118:rob.herring@calxeda.com::4X6uyJ3XKDppDekM:000000000000000000000000000000000000000LUC X-Hashcash: 1:20:141118:pawel.moll@arm.com::D/ME+9E/U3QWjPTj:00000000000000000000000000000000000000000006qa0 X-Hashcash: 1:20:141118:mark.rutland@arm.com::Qpx3ve791yXsJvJs:000000000000000000000000000000000000000002Vtu X-Hashcash: 1:20:141118:swarren@wwwdotorg.org::LKGIavWyTaUELkh8:00000000000000000000000000000000000000001t32 X-Hashcash: 1:20:141118:ijc+devicetree@hellion.org.uk::BJkYQSdbmLQ+i1iK:000000000000000000000000000000003FHF X-Hashcash: 1:20:141118:devicetree@vger.kernel.org::PQmWVe+9UAfDBGax:000000000000000000000000000000000006W+n From: Arnaud Ebalard To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Ben Peddell Subject: [PATCHv4 07/10] arm: mvebu: define and use common Armada XP UART2/3 pinctrl settings In-Reply-To: References: Message-Id: <48fff9def399198ff282ac4a0618059dfc3a1228.1416351426.git.arno@natisbad.org> Date: Wed, 19 Nov 2014 00:02:35 +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-20141118_150203_481734_C2DF7EE7 X-CRM114-Status: UNSURE ( 9.65 ) 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(+) \ No newline at end of file diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi index dcfef0311a88..acb236909649 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"; + }; };