From patchwork Mon May 21 22:00:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 10416827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 07D9E6032B for ; Mon, 21 May 2018 22:01:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E61A128A54 for ; Mon, 21 May 2018 22:01:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB11028AC7; Mon, 21 May 2018 22:01:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6448928AC5 for ; Mon, 21 May 2018 22:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=d4oZ6tD2gGcQ8rST5fV+AdPZFcJXNC379yLUjFWrBRQ=; b=cRj7Ok6u8F/Ph3gb+kgGPvPAof vbLrsgxzYyL2HKa8i+1XwhKegZYDo6aVtgwzqPUgW6vzxH5uqH4atf3L/F4o/ijkrfHI+vBt84S5H evXlws0hywsbCeQfLapIXUtgF8LC2vYOu+3JhDxwsGOOFYpVo8zOUp6VrZs7BWMhPBNSZuq/fQRTX v3GMwylCVcesAtcynDhr+EZoXpFo/qfjUbJRx3x0hsmxPHEn2gZTb56T9Ooq3mRdfxofzgGOfhf8H RDPnV4V8zYzK3N7mEXT1E855DpPLAIrN8F1uAmZDbPjRauu43W/06NwJ0AYcrKf3f0RfoqRjTGHEz tmHBvVYQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fKsrg-0003MN-Ef; Mon, 21 May 2018 22:01:12 +0000 Received: from mail.bugwerft.de ([46.23.86.59]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fKsrc-0003Kb-Kp for linux-arm-kernel@lists.infradead.org; Mon, 21 May 2018 22:01:10 +0000 Received: from localhost.localdomain (pD95EF5FE.dip0.t-ipconnect.de [217.94.245.254]) by mail.bugwerft.de (Postfix) with ESMTPSA id B70D52845C3; Mon, 21 May 2018 21:58:20 +0000 (UTC) From: Daniel Mack To: robert.jarzmik@free.fr, haojian.zhuang@gmail.com Subject: [PATCH 2/2] ARM: pxa: dts: add pin definitions for extended GPIOs Date: Tue, 22 May 2018 00:00:44 +0200 Message-Id: <20180521220044.821-2-daniel@zonque.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180521220044.821-1-daniel@zonque.org> References: <20180521220044.821-1-daniel@zonque.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180521_150108_827892_EACAE452 X-CRM114-Status: UNSURE ( 7.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, Daniel Mack , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 The PXA3xx series features some extended GPIO banks which are named GPIO0_2, GPIO1_2 etc. The PXA300, PXA310 and PXA320 have different numbers of such pins, and they also have variant-specific register offsets. Signed-off-by: Daniel Mack --- arch/arm/boot/dts/pxa3xx.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/pxa3xx.dtsi b/arch/arm/boot/dts/pxa3xx.dtsi index a13ac52e4fd2..446e612688c0 100644 --- a/arch/arm/boot/dts/pxa3xx.dtsi +++ b/arch/arm/boot/dts/pxa3xx.dtsi @@ -8,6 +8,13 @@ (gpio <= 98) ? (0x0400 + 4 * (gpio - 27)) : \ (gpio <= 127) ? (0x0600 + 4 * (gpio - 99)) : \ 0) +#define MFP_PIN_PXA300_0_2 0x674 +#define MFP_PIN_PXA300_1_2 0x678 +#define MFP_PIN_PXA300_2_2 0x2dc +#define MFP_PIN_PXA300_3_2 0x2e0 +#define MFP_PIN_PXA300_4_2 0x2e4 +#define MFP_PIN_PXA300_5_2 0x2e8 +#define MFP_PIN_PXA300_6_2 0x2ec #define MFP_PIN_PXA310(gpio) \ ((gpio <= 2) ? (0x00b4 + 4 * gpio) : \ @@ -18,6 +25,17 @@ (gpio <= 262) ? 0 : \ (gpio <= 268) ? (0x052c + 4 * (gpio - 263)) : \ 0) +#define MFP_PIN_PXA310_0_2 0x674 +#define MFP_PIN_PXA310_1_2 0x678 +#define MFP_PIN_PXA310_2_2 0x2dc +#define MFP_PIN_PXA310_3_2 0x2e0 +#define MFP_PIN_PXA310_4_2 0x2e4 +#define MFP_PIN_PXA310_5_2 0x2e8 +#define MFP_PIN_PXA310_6_2 0x2ec +#define MFP_PIN_PXA310_7_2 0x52c +#define MFP_PIN_PXA310_8_2 0x530 +#define MFP_PIN_PXA310_9_2 0x534 +#define MFP_PIN_PXA310_10_2 0x538 #define MFP_PIN_PXA320(gpio) \ ((gpio <= 4) ? (0x0124 + 4 * gpio) : \ @@ -30,6 +48,12 @@ (gpio <= 98) ? (0x04f0 + 4 * (gpio - 74)) : \ (gpio <= 127) ? (0x0600 + 4 * (gpio - 99)) : \ 0) +#define MFP_PIN_PXA320_0_2 0x674 +#define MFP_PIN_PXA320_1_2 0x678 +#define MFP_PIN_PXA320_2_2 0x67c +#define MFP_PIN_PXA320_3_2 0x680 +#define MFP_PIN_PXA320_4_2 0x284 +#define MFP_PIN_PXA320_5_2 0x28c /* * MFP Alternate functions for pins having a gpio.