From patchwork Fri Nov 21 23:46:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 5358611 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 0F835C11AC for ; Fri, 21 Nov 2014 23:48:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31BAA2015D for ; Fri, 21 Nov 2014 23:48:57 +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 5C5CF20154 for ; Fri, 21 Nov 2014 23:48:56 +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 1XrxuD-0007EM-9A; Fri, 21 Nov 2014 23:46:25 +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 1XrxtP-0006SJ-J3 for linux-arm-kernel@lists.infradead.org; Fri, 21 Nov 2014 23:45:36 +0000 Received: by smtp.natisbad.org (Postfix, from userid 109) id 128721700D7D; Sat, 22 Nov 2014 00:45:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1416613511; bh=6GOhgX2eHKlmJan+fxagNSM+hO5ZJurrp2He6EozWxU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WOJvIC+Oj7XC8lIhBf4sDNUfaZrXb3ij9dATLQE6s6T9vW20P2lyfoD6AmT26Tzld HLAhzKsB/vTqyNIHxPQmOAbaJOF10ucSC4cGIvRhp8KP4iMohQi/aoOccmd2tfH+LH Sq/1rNuOPbOoEcDci44hcNbbTo0DZdAZRP1hhOPo= 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 E2E141700D4F; Sat, 22 Nov 2014 00:43:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1416613385; bh=6GOhgX2eHKlmJan+fxagNSM+hO5ZJurrp2He6EozWxU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=g5/Ivow33vmn3WQxG489ffvytzFT5TDax2NbTzWP6S14XFvju0m07KdAAme3bQv0J tTREWbPQRhfJwgeqjuALT3wVEYz+LWvtw3Zcg2GOqZWuV7JuyJeHx8/vheQGj8lErx CaoD409aKv59Ekd7kc4PmG7Wqg+LES4oTZtKbnog= X-Hashcash: 1:20:141121:jason@lakedaemon.net::3w5rXoNN6YgKRI9C:000000000000000000000000000000000000000000do0 X-Hashcash: 1:20:141121:andrew@lunn.ch::CgRlgR+FHm46P9Dc:000IkG0 X-Hashcash: 1:20:141121:gregory.clement@free-electrons.com::tjxwtM36k7jgRMjB:0000000000000000000000000005eq2 X-Hashcash: 1:20:141121:sebastian.hesselbarth@gmail.com::59Bf2vwN4LozpOVP:00000000000000000000000000000070+Q X-Hashcash: 1:20:141121:klightspeed@killerwolves.net::F9IgVE2QtIfxH/s4:00000000000000000000000000000000053H0 X-Hashcash: 1:20:141121:linux@arm.linux.org.uk::+fGMdWRn9sJvtBUL:0000000000000000000000000000000000000001NrZ X-Hashcash: 1:20:141121:linux-arm-kernel@lists.infradead.org::efCgNtZSPGOXVtfp:00000000000000000000000002JB9 X-Hashcash: 1:20:141121:rob.herring@calxeda.com::9WsWideD1ok5hJup:000000000000000000000000000000000000000Kkl X-Hashcash: 1:20:141121:pawel.moll@arm.com::BWVzvRg7ezbqXW4q:00000000000000000000000000000000000000000001XxW X-Hashcash: 1:20:141121:mark.rutland@arm.com::+H+JIgcfBkjAOgC5:000000000000000000000000000000000000000000zX+ X-Hashcash: 1:20:141121:swarren@wwwdotorg.org::JVncNfbcEeGJtQ3K:00000000000000000000000000000000000000004GrF X-Hashcash: 1:20:141121:ijc+devicetree@hellion.org.uk::Ky5BgMlrlrus1S+P:000000000000000000000000000000000UmC X-Hashcash: 1:20:141121:devicetree@vger.kernel.org::WqN7Ou5Rs1m/XJEz:0000000000000000000000000000000000023Wh From: Arnaud Ebalard To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Ben Peddell Subject: [PATCHv6 07/10] arm: mvebu: define and use common Armada XP UART2/3 pinctrl settings In-Reply-To: References: Message-Id: Date: Sat, 22 Nov 2014 00:46:28 +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_154536_015285_B1BF278B X-CRM114-Status: UNSURE ( 8.83 ) 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 Acked-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"; + }; };