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: 9410475 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 D5897601C2 for ; Thu, 3 Nov 2016 06:40:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C705529F11 for ; Thu, 3 Nov 2016 06:40:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBA5C2A5E3; Thu, 3 Nov 2016 06:40:28 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 597CC2A5E7 for ; Thu, 3 Nov 2016 06:40:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754550AbcKCGkR (ORCPT ); Thu, 3 Nov 2016 02:40:17 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:43874 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752354AbcKCGjS (ORCPT ); Thu, 3 Nov 2016 02:39:18 -0400 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>; 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 Cc: cw00.choi@samsung.com, jh80.chung@samsung.com, sw0312.kim@samsung.com, jy0922.shim@samsung.com, inki.dae@samsung.com, jonghwa3.lee@samsung.com, beomho.seo@samsung.com, jaewon02.kim@samsung.com, human.hwang@samsung.com, ideal.song@samsung.com, ingi2.kim@samsung.com, m.szyprowski@samsung.com, a.hajda@samsung.com, s.nawrocki@samsung.com, andi.shyti@samsung.com, chanwoo@kernel.org, Tomasz Figa , Linus Walleij , linux-gpio@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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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,