From patchwork Sun Dec 15 13:13:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 3350331 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 7A7FE9F32E for ; Sun, 15 Dec 2013 13:15:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A7713206DB for ; Sun, 15 Dec 2013 13:15:46 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 9709D206CB for ; Sun, 15 Dec 2013 13:15:45 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsBXm-0000oj-PI; Sun, 15 Dec 2013 13:15:38 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsBXk-0005ot-DD; Sun, 15 Dec 2013 13:15:36 +0000 Received: from bear.ext.ti.com ([192.94.94.41]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsBXh-0005oT-CQ for linux-arm-kernel@lists.infradead.org; Sun, 15 Dec 2013 13:15:34 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id rBFDExvG026536; Sun, 15 Dec 2013 07:14:59 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id rBFDEwNE010375; Sun, 15 Dec 2013 07:14:58 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Sun, 15 Dec 2013 07:14:58 -0600 Received: from [172.24.190.156] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id rBFDEnC3022903; Sun, 15 Dec 2013 07:14:50 -0600 Message-ID: <52ADAB0E.4020800@ti.com> Date: Sun, 15 Dec 2013 18:43:50 +0530 From: Sekhar Nori User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Prabhakar Lad , Linus Walleij , Grygorii Strashko Subject: Re: [PATCH v6 6/6] ARM: davinci: da850 evm: add GPIO pinumux entries DT node References: <1385057731-4348-1-git-send-email-prabhakar.csengg@gmail.com> <1385057731-4348-7-git-send-email-prabhakar.csengg@gmail.com> In-Reply-To: <1385057731-4348-7-git-send-email-prabhakar.csengg@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131215_081533_515318_E1B8D01F X-CRM114-Status: GOOD ( 15.51 ) X-Spam-Score: -7.4 (-------) Cc: Mark Rutland , devicetree@vger.kernel.org, DLOS , Pawel Moll , linux-doc@vger.kernel.org, Stephen Warren , LKML , Rob Herring , linux-gpio@vger.kernel.org, Rob Landley , Grant Likely , Ian Campbell , LAK X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Thursday 21 November 2013 11:45 PM, Prabhakar Lad wrote: > From: KV Sujith > > Add GPIO DT node and pinmux entries for DA850 EVM. GPIO is > configurable differently on different boards. So add GPIO > pinmuxing in dts file. > > Signed-off-by: KV Sujith > Signed-off-by: Philip Avinash > Signed-off-by: Lad, Prabhakar > --- > arch/arm/boot/dts/da850-evm.dts | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts > index 588ce58..f82c129 100644 > --- a/arch/arm/boot/dts/da850-evm.dts > +++ b/arch/arm/boot/dts/da850-evm.dts > @@ -17,6 +17,21 @@ > soc { > pmx_core: pinmux@1c14120 { > status = "okay"; > + > + gpio_pins: pinmux_gpio_pins { > + pinctrl-single,bits = < > + /* GPIO2_4 GPIO2_6 */ > + 0x18 0x00008080 0x0000f0f0 > + /* GPIO2_8 GPIO2_15 */ > + 0x14 0x80000008 0xf000000f > + /* GPIO3_12 GPIO3_13 */ > + 0x1C 0x00008800 0x0000ff00 > + /* GPIO4_0 GPIO4_1 */ > + 0x28 0x88000000 0xff000000 > + /* GPIO6_9 GPIO6_10 GPIO6_13 */ > + 0x34 0x08800800 0x0ff00f00 > + >; > + }; > }; Shouldn't these pinmux entries be part of actual device node which needs them to be muxed this way? For now, I have committed the attached reduced patch. Thanks, Sekhar ---8<--- From 3a9574f2aa4ffd9b867321a1f298893410bd3718 Mon Sep 17 00:00:00 2001 From: KV Sujith Date: Thu, 21 Nov 2013 23:45:31 +0530 Subject: [PATCH 1/1] ARM: davinci: da850 evm: add GPIO pinumux entries DT node Add GPIO DT node and pinmux entries for DA850 EVM. GPIO is configurable differently on different boards. So add GPIO pinmuxing in dts file. Signed-off-by: KV Sujith Signed-off-by: Philip Avinash Signed-off-by: Lad, Prabhakar Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/da850-evm.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 588ce58..1e11e5a 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -101,6 +101,9 @@ pinctrl-names = "default"; pinctrl-0 = <&mii_pins>; }; + gpio: gpio@1e26000 { + status = "okay"; + }; }; nand_cs3@62000000 { status = "okay";