From patchwork Thu Nov 3 06:39:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9410483 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 61AE6601C2 for ; Thu, 3 Nov 2016 06:41:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5093429F11 for ; Thu, 3 Nov 2016 06:41:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4539B2A5E7; Thu, 3 Nov 2016 06:41:12 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4224929F11 for ; Thu, 3 Nov 2016 06:41:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c2Bgk-0000cQ-RI; Thu, 03 Nov 2016 06:39:50 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c2BgW-0000TY-FF for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2016 06:39:37 +0000 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OG101D3YZTCBYE0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2016 15:39:13 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-5a-581adb91855f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 92.4C.16530.19BDA185; Thu, 3 Nov 2016 15:39:13 +0900 (KST) Received: from localhost.localdomain ([10.113.62.212]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OG1004HEZTAOK30@mmp1.samsung.com>; Thu, 03 Nov 2016 15:39:13 +0900 (KST) From: Chanwoo Choi To: krzk@kernel.org, kgene@kernel.org, javier@osg.samsung.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/5] pinctrl: samsung: Add GPF support for Exynos5433 Date: Thu, 03 Nov 2016 15:39:06 +0900 Message-id: <1478155149-28527-3-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1478155149-28527-1-git-send-email-cw00.choi@samsung.com> References: <1478155149-28527-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAIsWRmVeSWpSXmKPExsVy+t9jAd2Jt6UiDG5+Nra4te4cq8X2I89Y LU5/2sZu8X5ZD6PFxBtXWCyuf3nOajH/CFB26Yw+Votdf+8zWuy4+YXNYtL9CSwWOxqOsFq8 ebuGyeLGrzZWi86zT5gtXty7yGLR//g1s8X58xvYLab8Wc5ksenxNVaLzfP/MFpc3jWHzWLG +X1MFmuP3GW3WHr9IpNF694j7BaH37SzWsyY/JLNYtUuoLqXH0+wOMh5rJm3htFj56y77B6b VnWyedy5tofNY/OSeo8t/UChvi2rGD0+b5IL4Ihys8lITUxJLVJIzUvOT8nMS7dVCg1x07VQ UshLzE21VYrQ9Q0JUlIoS8wpBfKMDNCAg3OAe7CSvl2CW8bWXffYCz7yVax91cLUwPicp4uR k0NCwETi8dpTjBC2mMSFe+vZuhi5OIQEljJKXNyzGMr5wSjx/NIBJpAqNgEtif0vboAlRAQW MElsXdHGAuIwC3xjlpjS2wZWJSzgIdG/sJ8FxGYRUJW4/usmmM0r4Cqx8tojFoh9chIf9jxi B7E5BdwkdtzqBosLAdVMeribZQIj7wJGhlWMEqkFyQXFSem5Rnmp5XrFibnFpXnpesn5uZsY wbH9THoH4+Fd7ocYBTgYlXh4HyRKRQixJpYVV+YeYpTgYFYS4S28CRTiTUmsrEotyo8vKs1J LT7EaAp02ERmKdHkfGDaySuJNzQxNzE3NrAwt7Q0MVIS522c/SxcSCA9sSQ1OzW1ILUIpo+J g1OqgXHj5wmfr3MWvF65ONwnyrtL1ymHYWd87YuLdbGyjcwcMQoO54XPfnbbOqmw8arAbfeT n168CX/FNPNx8a05yvwc1w+ccTodG1lo6mrjrHROutZf0PEV+yN5jY+H6raL5uU+VD8mLT+f xzk+4CaHUOKXxb/EX9lGfo/csjdSJznm8xr2y/f95imxFGckGmoxFxUnAgCK1ZGbAwMAAA== X-MTR: 20000000000000000@CPGS X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161102_233936_727428_342F2CA6 X-CRM114-Status: GOOD ( 12.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: inki.dae@samsung.com, jonghwa3.lee@samsung.com, s.nawrocki@samsung.com, jy0922.shim@samsung.com, a.hajda@samsung.com, jaewon02.kim@samsung.com, Linus Walleij , sw0312.kim@samsung.com, Tomasz Figa , andi.shyti@samsung.com, jh80.chung@samsung.com, cw00.choi@samsung.com, human.hwang@samsung.com, linux-gpio@vger.kernel.org, chanwoo@kernel.org, ingi2.kim@samsung.com, m.szyprowski@samsung.com, beomho.seo@samsung.com, ideal.song@samsung.com 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 This patch add the support of GPF[1-5] pin of Exynos5433 SoC. The GPFx need to support the multiple memory map because the registers of GPFx are located in the different domain. Cc: Tomasz Figa Cc: Krzysztof Kozlowski Cc: Sylwester Nawrocki Cc: Kukjin Kim Cc: Linus Walleij Cc: Rob Herring Cc: Mark Rutland Cc: linux-gpio@vger.kernel.org Signed-off-by: Joonyoung Shim Signed-off-by: Chanwoo Choi --- drivers/pinctrl/samsung/pinctrl-exynos.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.c b/drivers/pinctrl/samsung/pinctrl-exynos.c index d657b52dfdb5..12f7d1eb65bc 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos.c +++ b/drivers/pinctrl/samsung/pinctrl-exynos.c @@ -1339,6 +1339,11 @@ static void exynos_pinctrl_resume(struct samsung_pinctrl_drv_data *drvdata) EXYNOS_PIN_BANK_EINTW(8, 0x020, "gpa1", 0x04), EXYNOS_PIN_BANK_EINTW(8, 0x040, "gpa2", 0x08), EXYNOS_PIN_BANK_EINTW(8, 0x060, "gpa3", 0x0c), + EXYNOS_PIN_BANK_EINTW_EXT(8, 0x020, "gpf1", 0x1004, 1), + EXYNOS_PIN_BANK_EINTW_EXT(4, 0x040, "gpf2", 0x1008, 1), + EXYNOS_PIN_BANK_EINTW_EXT(4, 0x060, "gpf3", 0x100c, 1), + EXYNOS_PIN_BANK_EINTW_EXT(8, 0x080, "gpf4", 0x1010, 1), + EXYNOS_PIN_BANK_EINTW_EXT(8, 0x0a0, "gpf5", 0x1014, 1), }; /* pin banks of exynos5433 pin-controller - AUD */ @@ -1420,6 +1425,7 @@ static void exynos_pinctrl_resume(struct samsung_pinctrl_drv_data *drvdata) .eint_wkup_init = exynos_eint_wkup_init, .suspend = exynos_pinctrl_suspend, .resume = exynos_pinctrl_resume, + .nr_ext_resources = 1, }, { /* pin-controller instance 1 data */ .pin_banks = exynos5433_pin_banks1,