From patchwork Tue Sep 1 22:49:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Alonso X-Patchwork-Id: 7107501 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 A5AFC9F36E for ; Tue, 1 Sep 2015 22:53:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC49C205BB for ; Tue, 1 Sep 2015 22:53:53 +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 D98E72026D for ; Tue, 1 Sep 2015 22:53:52 +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 1ZWuPK-0003V1-3z; Tue, 01 Sep 2015 22:52:02 +0000 Received: from mail-bn1on0117.outbound.protection.outlook.com ([157.56.110.117] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZWuOy-00037H-D8 for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2015 22:51:41 +0000 Received: from BY2PR03CA079.namprd03.prod.outlook.com (10.141.249.52) by BY2PR0301MB0773.namprd03.prod.outlook.com (10.160.63.25) with Microsoft SMTP Server (TLS) id 15.1.256.15; Tue, 1 Sep 2015 22:51:17 +0000 Received: from BN1AFFO11FD022.protection.gbl (2a01:111:f400:7c10::174) by BY2PR03CA079.outlook.office365.com (2a01:111:e400:2c5d::52) with Microsoft SMTP Server (TLS) id 15.1.256.15 via Frontend Transport; Tue, 1 Sep 2015 22:51:17 +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 BN1AFFO11FD022.mail.protection.outlook.com (10.58.52.82) with Microsoft SMTP Server (TLS) id 15.1.256.10 via Frontend Transport; Tue, 1 Sep 2015 22:51:16 +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 t81MolNJ028361; Tue, 1 Sep 2015 15:51:13 -0700 From: Adrian Alonso To: , , , , Subject: [PATCH v2 7/8] pinctrl: freescale: imx7d: support iomux lpsr controller Date: Tue, 1 Sep 2015 17:49:12 -0500 Message-ID: <1441147753-13239-7-git-send-email-aalonso@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441147753-13239-1-git-send-email-aalonso@freescale.com> References: <1441147753-13239-1-git-send-email-aalonso@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD022; 1:beuxAFs3I+szJYyEQsibeFXfCMUZgratZgNweygNYB6nseOcrXaot4OzID7srgheNgytRfYsRf0G5MqTqgxUe3btsFlwqUN4mkQ7P0Rj/Ij6fSwb3LoxBaWTkLi1UN0t57NLgd+dEQtc69zMCP3qooLIK0delXNnyvfMJpdmR7KSqY2TiZ81R2lmxWMmULf4rN6NBfaHrzPx1EzKEAtPd8nBYgm4dvQdiwuJ/6Y8mNm3x4CI1m5D3p4hbmduXekM9PrDqyDk1sJsUJmt5ajO1niO05ZtpMu4iLVlXUD1SVPN6sJ2WlsRUh63ZT+UOcavgWHdAVfgZgasb1sNvlOFnwfFfdGWRu4Y5PM1cysvmewvTjQVL/JmmIscgSKaif92nCsIdb77j3vcOHllTe/kBg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(3050300001)(189002)(199003)(2201001)(2950100001)(86362001)(104016003)(19580395003)(6806004)(50226001)(19580405001)(85426001)(5001830100001)(189998001)(5001960100002)(5007970100001)(107886002)(5001860100001)(105606002)(92566002)(46102003)(106466001)(77156002)(48376002)(36756003)(87936001)(77096005)(229853001)(97736004)(47776003)(76176999)(50466002)(5001770100001)(62966003)(5003940100001)(64706001)(33646002)(81156007)(4001540100001)(50986999)(68736005)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0773; 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; BY2PR0301MB0773; 2:lzFkOgcrnrkoNsRcAnZntCIinr8qITlezyfUWBUO6lMtWJnM2iz+WFRTIZbR5tTNfDq67QIy9r7BNom0EPX7+3NIFWgmFrJ8J2kn+v+ZIGsWBli0pKPcuuEhJD1WdT/vFEgLzKEQuQS4R6WOegbTvKc0z+IMdZb4fDtNR/Uy3uU=; 3:A2mAW29cu0w9J4Mao1tP3k/FDMg5vHeXIw7YTCY4XkckTsL3Svit5nhvsBvSeCJKchyQrGgjiuOhnMPEwJKt7JOYEjdIAMTnsRbXEo2aFuL8PpEZczQpdUBy/YEAfoKnwJkPJSA96zisyIA+Jh5Hie3VkcSAw7oIwtO8rWdo8a7RtXmedx0HE/pDPkeKqeWB3nDPm9nNMjTHfW1No14uzOKJu7bPiLSER0XhymW6Pu0=; 25:O9ACFpRPM/5Wcb4LQs3r663TwsuoS8hxb65AHMyupUUyns38EFYgXzU15slMa52/djz5sRUffHAgociSDPxGSmjysbxLRlfxBbvGFoTztSe4NaX8URXAsbJkMuHOxYgLFR7qolMBLeSWLnWbnhiaFymcDLksI45JNQ0/RG0eQuBTjMFBQxufI5zk8jIaJKmIQq80Mbrs3VWfC55MXrqSrdnm5IL+dRbPKD67C1y0hxhmm9lyEgertRhUUKHxcJcU+IcH9LjjXYg3r6asyTfl+Q== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0773; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0773; 20:wDq7Pfxn2oD+aXBj964nLpylkfM9JjPU0YkKM+HUmvC4+HCN+0fvk9bv6L6tm2Gc5RQlECVOtjvQEytDI92miBfez//iD3Tv1J5QDrNeOU5o4V03KC+sHeTZKIbcpCCpz8aeV/WwUTypfVvtw4rZNmnjn7UWhLUpsJY8haH3SvZ9w7YzOojKM6JZhhOJBPJ1tvlK3LuAv3Ish0k5B4i0dyAeXQfKLeKsVJ/ejtVi4ZfKuesWezElBO2raHrqDA6UPkEdh5xiZFVKXYZtfh07of4kfBnjOajctpdrUZOQR6DB54ZdERqM3QHTb7lQLtvq11YGeVNbOTblP1t2xNUkndCZV9ZnS8xdmNonNVPwMYo=; 4:q+fkIQCGkC7Q9nKPYTy1V+26cjGfwZDyF5CwNILkGmCI/P30vloLfoiQLEg4C5vRhfeNE85z4ClA56gjbTryxzovG/T11KoJVjF0wvYv/FFHGC4zJaIbkhOmFsvDKcCrfveYP4/ROCL3l0tpLEtow8bsv2g+KlpXygcb790aCJ8DT/nNTp0aVfbSbxoqgHFyRKXXFIT37MzcUTVCYhnxwLd49F27P8lNZbYFGHPvHFEk1pL5LZUie6dQrcod6MsGJMDwP+wW0XLIogT9Vc6IS0roLd2nFbQrbRXfeJ+XsjbicYgpEP7MHPrulA2ugfwmKT3EvLnEwEPEZqnxo5Spkg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(8121501046)(5005006)(3002001); SRVR:BY2PR0301MB0773; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0773; X-Forefront-PRVS: 06860EDC7B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0773; 23:v2BSvieCGBKUANVCJ98EQntrkZXfnnN57uKgzY8?= =?us-ascii?Q?F0Gyesd8GQqPaXfiy40Ekgf+yBSZ+CmMMUnpQeShGltzefEyezotVWmO9Mm7?= =?us-ascii?Q?Hy2Xx6LB9j21RfJ6Bq3TtP3kW0VXW//B5n3pMbkqw75jwUp2eY8lxNTlG8gU?= =?us-ascii?Q?d6l4DT80TKrsCaTZ5acBkJTr1wg16gFVNVpvinjZpGv4km/Um5tGbvMaP5U9?= =?us-ascii?Q?/TprPmPNJEKKKfxOH0GMp3IKodqN3zSotyx7UPesQ55x0JAl5Wp+U9EiMj8A?= =?us-ascii?Q?lLOMPbP9IRTOKNeBs9tIIvCtZEQhZbygqa2evW9MmNKp2yyaFyUWsQv9jsWO?= =?us-ascii?Q?1O8whT3QnfyBdJkRYRioJpmae9O/niDYEP25ylufTFhBM5Qw3gmKo0TMunc4?= =?us-ascii?Q?v/Sy8CBVFL5fNcf/g1k6/7budge+kpw5yAfyoON3y5A1iQvPpysnnuATroDq?= =?us-ascii?Q?aQSgWBBEOkRbVmzl3jToDNizWWkN+ZZmYcEYgfPpEx7mQY9eD8EinIKuYkM1?= =?us-ascii?Q?MhAIkHQ2dMZF1Xkz1JBgMUl6mMbyTak/jhSQ0t5WkTNPgWd+GS5XrR1okdFF?= =?us-ascii?Q?YR6ky09AIGXHi+kRkq0kJLngiTkc7xa1QLS+IXobD9KPBZfMhS5Xdll/ej6a?= =?us-ascii?Q?AOHKoGiQ16ZnpA4/2ZMtOo29fwOvU6zzCq3s+HEo7kZfgPfwhlYtsAM/yS1O?= =?us-ascii?Q?I5OvSbjJP4sDIOGbiUsluost/5O7fs4CzF7kYRcdGfaU3xV9g4/ij01O7Xqx?= =?us-ascii?Q?KR0wJ2vfPWi+aHAOTezbgjQ0YH5dD5J92umQJFdcTOFw8gz6/XnH9HUTUCr2?= =?us-ascii?Q?kQhzqJia4VplXKoLyzZU/z3L+pXFb2tUN0w49PFWmOdekPPUuZzXXdhh3nVH?= =?us-ascii?Q?ljHMeIBV9891yl5MhF1x02AJAH7IMcBTrkePggBTnvRxTBtQEt85k5wJKQxY?= =?us-ascii?Q?ZMO0aEsFL7kvyzPiSDCfbT2afT49d8HYh6m8C15pxI4riJgMSfXAULQhD5zJ?= =?us-ascii?Q?5Ustr2RcfgdQr6NtJM6rN5JHneL1Wo+pXcgHUwHB4tiaUf3uAIVaFQW4Udoz?= =?us-ascii?Q?CFTXUZZjgwGnQnRjKJaUgqP8vvXnSQt0+jsX2itXPeLP+81Bqq4xlz7unYR0?= =?us-ascii?Q?FleCsoh+fMbgrfwbmnzi9BPaW/J7mvXbhUSlTlytlP3AN6LNL1teq2RRuLNF?= =?us-ascii?Q?OD3t15xPyg8/UArWMnwcgLkJYrhDDIOxWYT7CPiV/oakVcBO23HdrAtYeoPa?= =?us-ascii?Q?4DEPuElcQGXGrC0D0dYY=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0773; 5:ZWTaY4PUBsrzvA9pCQdjV+mHw4kzgYiNhk7sEXSjZd0LhGLSET6hAam3HRFU7yebLMCbDEfGs9inDXLjZAqSBkIWiEooAAPzTqMVKp7rgcLs1v+dxxfnO7PKiNG+vmZMaLj8LO7R+TJJ26Y+3Nmcng==; 24:y2Jg+hqBYBHiJXaIPg2by7uxeTbsLV1L/50oQ/TBLViIh7Frj6RIRHWGqVIIeyycGRZ7fHtubuOsDwdgvMeaw/V50YrFdgKY9HBe8X2AJfA=; 20:BASePxjmJWHbM7Sa9zaWY3693QhMVWF9mD4bAUXVgdYBLdgP1+g5meXte8jtgiAkIxnu7SORB0NHx12gHTjl4g== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2015 22:51:16.4401 (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: BY2PR0301MB0773 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150901_155140_735561_3D759FD0 X-CRM114-Status: GOOD ( 16.38 ) 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: 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, 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 - Use flag ZERO_OFFSET_VALID and SHARE_INPUT_SELECT_REG to properly set pads from iomuxc-lpsr domain Signed-off-by: Adrian Alonso --- Changes for V2: Add imx7d_lpsr_pads enums 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..b4d77e4 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 = SHARE_INPUT_SELECT_REG | 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 */ } };