From patchwork Fri Jan 4 16:45:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 1933921 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 8D1563FF0F for ; Fri, 4 Jan 2013 16:48:26 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TrAP1-0004Q7-3o; Fri, 04 Jan 2013 16:45:51 +0000 Received: from mail.free-electrons.com ([94.23.32.191]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TrAOo-0004O8-HZ for linux-arm-kernel@lists.infradead.org; Fri, 04 Jan 2013 16:45:39 +0000 Received: by mail.free-electrons.com (Postfix, from userid 106) id 19F81276; Fri, 4 Jan 2013 17:45:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.2 Received: from localhost (gar31-2-82-226-185-134.fbx.proxad.net [82.226.185.134]) by mail.free-electrons.com (Postfix) with ESMTPSA id 7326A225; Fri, 4 Jan 2013 17:45:28 +0100 (CET) From: Maxime Ripard To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ARM: sunxi: Add the GPIOs node to the device tree Date: Fri, 4 Jan 2013 17:45:09 +0100 Message-Id: <1357317909-12458-3-git-send-email-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1357317909-12458-1-git-send-email-maxime.ripard@free-electrons.com> References: <1357317909-12458-1-git-send-email-maxime.ripard@free-electrons.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130104_114538_983498_13440604 X-CRM114-Status: GOOD ( 10.56 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Olof Johansson , Russell King , Arnd Bergmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a13.dtsi | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi index e112189..dc650a6 100644 --- a/arch/arm/boot/dts/sun5i-a13.dtsi +++ b/arch/arm/boot/dts/sun5i-a13.dtsi @@ -14,6 +14,15 @@ /include/ "sunxi.dtsi" / { + aliases { + gpio1 = &pb; + gpio2 = &pc; + gpio3 = &pd; + gpio4 = &pe; + gpio5 = &pf; + gpio6 = &pg; + }; + memory { reg = <0x40000000 0x20000000>; }; @@ -39,5 +48,47 @@ allwinner,pull = <0>; }; }; + + pb: gpio@01c20824 { + compatible = "allwinner,sunxi-gpio"; + reg = <0x01c20824 0x24>; + gpio-controller; + #gpio-cells = <1>; + }; + + pc: gpio@01c20848 { + compatible = "allwinner,sunxi-gpio"; + reg = <0x01c20848 0x24>; + gpio-controller; + #gpio-cells = <1>; + }; + + pd: gpio@01c2086c { + compatible = "allwinner,sunxi-gpio"; + reg = <0x01c2086c 0x24>; + gpio-controller; + #gpio-cells = <1>; + }; + + pe: gpio@01c20890 { + compatible = "allwinner,sunxi-gpio"; + reg = <0x01c20890 0x24>; + gpio-controller; + #gpio-cells = <1>; + }; + + pf: gpio@01c208b4 { + compatible = "allwinner,sunxi-gpio"; + reg = <0x01c208b4 0x24>; + gpio-controller; + #gpio-cells = <1>; + }; + + pg: gpio@01c208d8 { + compatible = "allwinner,sunxi-gpio"; + reg = <0x01c208d8 0x24>; + gpio-controller; + #gpio-cells = <1>; + }; }; };