From patchwork Wed Sep 30 16:11:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Alonso X-Patchwork-Id: 7300331 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 26D439F731 for ; Wed, 30 Sep 2015 16:22:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4593C20612 for ; Wed, 30 Sep 2015 16:22:12 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 5215720650 for ; Wed, 30 Sep 2015 16:22:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZhK7A-0006mT-Sl; Wed, 30 Sep 2015 16:20:20 +0000 Received: from mail-bl2on0115.outbound.protection.outlook.com ([65.55.169.115] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZhK0u-0004sN-9k for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2015 16:13:59 +0000 Received: from CO2PR03CA0030.namprd03.prod.outlook.com (10.141.194.157) by CY1PR03MB1375.namprd03.prod.outlook.com (10.163.16.29) with Microsoft SMTP Server (TLS) id 15.1.280.20; Wed, 30 Sep 2015 16:13:29 +0000 Received: from BY2FFO11OLC009.protection.gbl (2a01:111:f400:7c0c::184) by CO2PR03CA0030.outlook.office365.com (2a01:111:e400:1414::29) with Microsoft SMTP Server (TLS) id 15.1.286.15 via Frontend Transport; Wed, 30 Sep 2015 16:13:29 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC009.mail.protection.outlook.com (10.1.15.0) with Microsoft SMTP Server (TLS) id 15.1.274.4 via Frontend Transport; Wed, 30 Sep 2015 16:13:23 +0000 Received: from bluefly.am.freescale.net (bluefly.am.freescale.net [10.81.17.130]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t8UGD6CP005572; Wed, 30 Sep 2015 09:13:22 -0700 From: Adrian Alonso To: , , , , Subject: [PATCH v8 6/7] pinctrl: freescale: imx7d: support iomux lpsr controller Date: Wed, 30 Sep 2015 11:11:08 -0500 Message-ID: <1443629469-12294-6-git-send-email-aalonso@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443629469-12294-1-git-send-email-aalonso@freescale.com> References: <1443629469-12294-1-git-send-email-aalonso@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC009; 1:WrBREnxsXPT5FL+5iTcCyt43RmsK2joT539FHkQHINQbRz9gR/1uc84h63Nm7Cr+z/KOJKioibyd8G0XYJtk/us9Svn78N2/criHyGJscoFUposaWlT5Njpzc4/ASi6I/5Ht56P4MxEhIvuWnXfAdHI8O7dGM5Qu4ze+CCQfS7pBYMY7OLtxnsXW8zOn+UnGLGFFR+XEcbI8ludValC1uHl+dYEH7YbotIlGpPCzPyEKdbvv8NSHrCWYz6YJF5PsGkh1A9KzLcClk7YNmafdhX+2dgv2YaQAaanI2TdHfyA2Ve80AdCbc+RHY8ZRqI4koqQAKOZKvWuNrRot3MnQ3kM5VNkNjREkok1V5RQLtToGSeJZua0PEjM9k/AtP0HzGffMbd23qFfbwUeRe42rNw== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(77096005)(76176999)(46102003)(50226001)(92566002)(189998001)(64706001)(81156007)(36756003)(5001960100002)(5001860100001)(229853001)(50986999)(107886002)(47776003)(48376002)(87936001)(5007970100001)(68736005)(85426001)(5003940100001)(97736004)(2950100001)(4001540100001)(5001830100001)(2201001)(50466002)(106466001)(11100500001)(5001770100001)(77156002)(86362001)(19580395003)(19580405001)(33646002)(104016004)(62966003)(6806005)(5008740100001)(105606002)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB1375; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1375; 2:L+QnB2qHIXV23L+kZB6iR6CYaOhVBdRFR8U7lQ4B32LYCB4TRoOv14LubG5MNNKMt29S9RnNEsOeMDiK7eXCCIA3m0e6rI7SEFqVfN6gA9bFngxjwVmU0x4J/+l3Xzx33/QdPu/XdzNmO6gJW9yzAm83LUQX3OjhYgM6YCY/TBU=; 3:StkTlIEeKLHCei68z/3CS+DIqFFzgODfWip4g17PItWDpJLsVUcjkrtGuvqkazBcrr8KFEJAbkxs2y2ucZQkWop8XFt6aWXQ0i639yvKD2H+U1vf/Sb+W40aCsbcthMX2wjAmIPhqwGUOk19iI+D4gAdHQ+HG0c1e4d2SqmKfxPocC99d+vo92K9TTAQwxkClzHq3P11QaA6pIaItFA7NtYKUOTTVGel+Xw8noO8G4Y=; 25:EdHHyfXrcakAd8L+dfrw1yyraSkexhWrDlmOh0nr8HJijhdhIJ38RQa9HLUqhJRjiu/7W/bW4KUOh3FZc7S3Gial6A7W4Vjybpqfr1q9Y28x86maZlA/GTlnkKsU4eB/y+HCfYIgLkItl9BNbLv03wMRkjGu52uOlOs233PJWvX7P9YH9mPUuV0Eci72eprCcZBT/A/xc5y5M9zp1L2O2QIQt1Q8v8e23aBkeYdJSgx7VmHbsUQfymRzTp7AlN75vYprFVmtZUtCLdcttdJ87A== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1375; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1375; 20:w1VqV6FQQTNR5nmotxhtps2FjlTZV3USKmva5QYigSPWOIdiNoBh9jeqLkDCZuWcDmUrUti/mxve/MvlLJ1ajdHFKpZtSiBCKySJAHzRrf13np24L5ke8lUKJg1ZUD17AMRt0Zzuq0HraWQ/M3nZJs3zSTvXUqEuA5gDvhuR4us9wAoWA2k+0N8nVM3ZcDrTltUA3PSm08LzcOzAvG3YI8APHukjBCqX/xP18N+Ehl3B8S2Xafo7WqJuc9K75MQzQNpv14zHS0TQ02I05czEOnEMRXW9fKELijxBGQf6aRsbwlYZaqxABQUGxfvw8kR1cOK4+vPy6FDpQqg0x4WG4bNI6BB5uPZSbLlbQhc+g6o=; 4:zeBUNACb65YZ0aeE3MfbLvmBXOn+ET09QDyopoipk5b6vcjwDKqZiegm5BFWkaUflJyiKh/MJ0mkrc9SstH1K0H6qUHzDCoepmDkSbQnPKIufSyEPu6+9zIcn1gmXsDXBOyUwilLpDEH4Gu/Z2XhJl5l+m/BHlttWhfCTqXZyJzZJt6vu3lRfZ4AtDH7JNqFAPP/glhXkSikt8xObbn1vtO3sc3IemphRQHZA2xMfnuzu15pLmkeyaBFdlNCoYrv0oS2SARDniJzsMPiTyvNMGzdshypo75YOlkotYWpXsEI88fptdV/OHcKL2uban6/nbtGJQGkSAnIBzX+QA0ZhEuUr8tlJ4NIVINkit6dOyA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001); SRVR:CY1PR03MB1375; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1375; X-Forefront-PRVS: 071518EF63 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB1375; 23:5aOzIHaK2bPt6BdOGw/EKVVXkyyDsC5BL7OzFx3jl?= =?us-ascii?Q?prmx0kAPKMV8t4YlM5k6aI+xdL8jcYEmykV0ZScwWEIgJv5FaSqXSsaKRCjJ?= =?us-ascii?Q?j2Z8FfWwiJ+OrozsOziU0Th192JQEeQCaAcQNKjuf8JCpoJIJHzIz8izAhyJ?= =?us-ascii?Q?JpNlDSV/X7tKJEje3PnwoDkebrWffumg4AaSQEtA6WhIf2xS88ksMNCR8zPk?= =?us-ascii?Q?S6lI0GCIqAkchtytdvWRbJdpAvH7LJhUPGx3R/YXBoj3Y/l6RTeOHfgesYaV?= =?us-ascii?Q?HILxHGnae8eMB0zBOXr+U04hy569KQfcPS2lX7tNy2nNmBZAGdqt5SXrrUSR?= =?us-ascii?Q?WtdtyNdF8RjRdGAQgrT7JxIqDKMVJoNVqNwA5juhwoD12rXAc+3dovs001uD?= =?us-ascii?Q?xs2hyeWPHnKsh08u4fEewDaaM9k3c8q8EgcU/QYBixFF6XI/sOwjRbs+KrEV?= =?us-ascii?Q?oCmL3s2deb8z/KHqZ4xwxvu/jdFgU1/VR11fObsFC4AwufdgVVWtKoaOJNri?= =?us-ascii?Q?+P8Zb2F6ZwRnFCF/ThUqI5lQOE7+2YVWJBEsI/Vc6yWEYoDRbCgbW7JLTbHO?= =?us-ascii?Q?mqoz40Wwfp8OE6mS+c2iTzMhElqVPNAV2kdAFf32fWfax44aQCT72U6Q53Xb?= =?us-ascii?Q?QNfwuDavt0xJn0U9t/wAW0o+VoGQDsUWrO5au6jiLVahq5grHuXfcSAvE2xQ?= =?us-ascii?Q?T7N/I1E4okB7vr4xLl4QkKDOW1YQ17xzH01LgBBDifkdbhPRosL7UBi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5lZmlDuTR88lU8Bqr0dCX8AFEeajsgtOA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2015 16:13:23.8541 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1375 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150930_091353_145114_1C15AFEF X-CRM114-Status: GOOD ( 16.91 ) X-Spam-Score: -1.9 (-) 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: Aisheng.Dong@freescale.com, devicetree@vger.kernel.org, Frank.Li@freescale.com, nitin.garg@freescale.com, Anson.Huang@freescale.com, linux-gpio@vger.kernel.org, robh+dt@kernel.org, kernel@pengutronix.de, yibin.gong@freescale.com 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.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_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 iMX7D has two iomuxc controllers, iomuxc controller similar as previous iMX SoC generation and iomuxc-lpsr which provides low power state rentetion capabilities on gpios that are part of iomuxc-lpsr Add iomuxc-lpsr gpio group id's Signed-off-by: Adrian Alonso --- Changes for V2: Add imx7d_lpsr_pads enums Changes for V3: Resend Changes for V4: Resend Changes for V5: Remove flags SHARE_INPUT_SELECT_REG and ZERO_OFFSET_VALID. Changes for V6: Restore ZERO_OFFSET_VALID flag. Changes for V7: Resend Changes for V8: Resend drivers/pinctrl/freescale/pinctrl-imx7d.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/pinctrl/freescale/pinctrl-imx7d.c b/drivers/pinctrl/freescale/pinctrl-imx7d.c index 1fa7530..16dc925 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx7d.c +++ b/drivers/pinctrl/freescale/pinctrl-imx7d.c @@ -174,6 +174,17 @@ enum imx7d_pads { MX7D_PAD_ENET1_COL = 154, }; +enum imx7d_lpsr_pads { + MX7D_PAD_GPIO1_IO00 = 0, + MX7D_PAD_GPIO1_IO01 = 1, + MX7D_PAD_GPIO1_IO02 = 2, + MX7D_PAD_GPIO1_IO03 = 3, + MX7D_PAD_GPIO1_IO04 = 4, + MX7D_PAD_GPIO1_IO05 = 5, + MX7D_PAD_GPIO1_IO06 = 6, + MX7D_PAD_GPIO1_IO07 = 7, +}; + /* Pad names for the pinmux subsystem */ static const struct pinctrl_pin_desc imx7d_pinctrl_pads[] = { IMX_PINCTRL_PIN(MX7D_PAD_RESERVE0), @@ -333,13 +344,32 @@ static const struct pinctrl_pin_desc imx7d_pinctrl_pads[] = { IMX_PINCTRL_PIN(MX7D_PAD_ENET1_COL), }; +/* Pad names for the pinmux subsystem */ +static const struct pinctrl_pin_desc imx7d_lpsr_pinctrl_pads[] = { + IMX_PINCTRL_PIN(MX7D_PAD_GPIO1_IO00), + IMX_PINCTRL_PIN(MX7D_PAD_GPIO1_IO01), + IMX_PINCTRL_PIN(MX7D_PAD_GPIO1_IO02), + IMX_PINCTRL_PIN(MX7D_PAD_GPIO1_IO03), + IMX_PINCTRL_PIN(MX7D_PAD_GPIO1_IO04), + IMX_PINCTRL_PIN(MX7D_PAD_GPIO1_IO05), + IMX_PINCTRL_PIN(MX7D_PAD_GPIO1_IO06), + IMX_PINCTRL_PIN(MX7D_PAD_GPIO1_IO07), +}; + static struct imx_pinctrl_soc_info imx7d_pinctrl_info = { .pins = imx7d_pinctrl_pads, .npins = ARRAY_SIZE(imx7d_pinctrl_pads), }; +static struct imx_pinctrl_soc_info imx7d_lpsr_pinctrl_info = { + .pins = imx7d_lpsr_pinctrl_pads, + .npins = ARRAY_SIZE(imx7d_lpsr_pinctrl_pads), + .flags = ZERO_OFFSET_VALID, +}; + static struct of_device_id imx7d_pinctrl_of_match[] = { { .compatible = "fsl,imx7d-iomuxc", .data = &imx7d_pinctrl_info, }, + { .compatible = "fsl,imx7d-iomuxc-lpsr", .data = &imx7d_lpsr_pinctrl_info }, { /* sentinel */ } };