From patchwork Thu Sep 10 19:21:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Alonso X-Patchwork-Id: 7155691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 407EFBEEC1 for ; Thu, 10 Sep 2015 19:27:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 53EE6206F4 for ; Thu, 10 Sep 2015 19:27:00 +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 79F53206D7 for ; Thu, 10 Sep 2015 19:26:59 +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 1Za7Sx-0002eS-9V; Thu, 10 Sep 2015 19:25:03 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Za7SQ-00025h-55 for linux-arm-kernel@bombadil.infradead.org; Thu, 10 Sep 2015 19:24:30 +0000 Received: from mail-bl2on0141.outbound.protection.outlook.com ([65.55.169.141] helo=na01-bl2-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1Za7SO-0002fn-Np for linux-arm-kernel@lists.infradead.org; Thu, 10 Sep 2015 19:24:29 +0000 Received: from CY1PR0301MB1641.namprd03.prod.outlook.com (10.162.166.139) by CY1PR0301MB1595.namprd03.prod.outlook.com (10.162.166.21) with Microsoft SMTP Server (TLS) id 15.1.274.3; Thu, 10 Sep 2015 19:24:05 +0000 Received: from BLUPR0301CA0015.namprd03.prod.outlook.com (10.162.113.153) by CY1PR0301MB1641.namprd03.prod.outlook.com (10.162.166.139) with Microsoft SMTP Server (TLS) id 15.1.262.15; Thu, 10 Sep 2015 19:24:04 +0000 Received: from BY2FFO11FD003.protection.gbl (2a01:111:f400:7c0c::108) by BLUPR0301CA0015.outlook.office365.com (2a01:111:e400:5259::25) with Microsoft SMTP Server (TLS) id 15.1.268.17 via Frontend Transport; Thu, 10 Sep 2015 19:24:04 +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 BY2FFO11FD003.mail.protection.outlook.com (10.1.14.125) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Thu, 10 Sep 2015 19:24:03 +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 t8AJNfTW019448; Thu, 10 Sep 2015 12:24:03 -0700 From: Adrian Alonso To: , , , , Subject: [PATCH v3 7/8] pinctrl: freescale: imx7d: support iomux lpsr controller Date: Thu, 10 Sep 2015 14:21:47 -0500 Message-ID: <1441912908-21946-7-git-send-email-aalonso@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441912908-21946-1-git-send-email-aalonso@freescale.com> References: <1441912908-21946-1-git-send-email-aalonso@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD003; 1:9S+Zz1mKGnjA6o0Z64bagam9nIXvOK7BgNaHFe3KVk9uj08TprV/z7CTcfhk76BCRbe5JhgElawogSr168Kv5eyeXK6SYS4VeTUMeABCoeJpfg38iYcb/vmLwfHD+MGjos6X1Bg76PCx5GDC7JtiR4SlY++qnwBnkhHqyCtNTiFcF1E9Djt6WYczd8dyrXp6xGj/K/ed5HGIZZxNrqNnmaL72Ty1oBgHusoYLv1NKardHBtNlRzqyWT22c3KLxyHbobJdAs4DVfNwdSeezaYZ+lBTJhdV+mziNMVneOybFy9MGRewONjZ/MiBT6Wgal94gCLYA6w+c3nBN/dKf9L/s5ZSubowBtRY/k5+DgiSlJ8Ov54DuxLvdrVEVSde4Sb8imsWFbZrUuATYc5gjfdFg== 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)(33646002)(50226001)(36756003)(46102003)(104016003)(5001960100002)(64706001)(5007970100001)(5001770100001)(5001860100001)(97736004)(229853001)(189998001)(81156007)(4001540100001)(77096005)(48376002)(47776003)(50466002)(5001830100001)(68736005)(107886002)(62966003)(6806004)(86362001)(76176999)(87936001)(77156002)(85426001)(92566002)(11100500001)(19580395003)(5003940100001)(105606002)(2201001)(106466001)(2950100001)(50986999)(19580405001)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1641; 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; CY1PR0301MB1641; 2:x4WbL67R+ZCUtiwLwS9hLPiZTjQ+h2Tkzq0x71SQqHmICv6dP+HaT83VlwWrFe/klYTdA0AwKQQvyhUy8jnmh1mSnZUBq4EqGm1PPu70B1ptgPVUuO2yK4MbRhj+EgQrqGQGGVo7ISDnD1EQn34c2Dg9PBILSlWYseS7rmgfMcQ=; 3:mrO1mO86cDFSpt3k0tWiVPZNGPXGW9cK1JSulN3qmPJpMP7idC0iCGATJbuUdexdMpB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brypHQuGs7A+wKEkzOPWoNTVtvSjghxt+PzBNJxHKfB7gLzz4YjJ2JNlCQeR8EWpV6Aq256ZSq9IhmA3VR4Of85PZPWKgOuOOG6B8ZHHTFSdfo3NSNxUiMpLRxbdB7oKMkPFFJC4S68gVRwUt7csY9AxjXsT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:CY1PR0301MB1641; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1641; X-Forefront-PRVS: 06952FC175 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1641; 23:C19GMKJawSxVqDwEPomRwrv6Y8z4ISHUciEgCn6?= =?us-ascii?Q?szJ3vdDYC5cCUA9HI1RKXqF+PzTojYGuuVZzbDZ8im+nCvIQqCY1hTPxxHyR?= =?us-ascii?Q?kgU1/PYrf2p4gE2x0fkrSEqLwAvJLmt17y7IPcFIRDa+gyYBdnFVLHhe07NS?= =?us-ascii?Q?PA2TW6ou64gk396cQ7n36i97ZOU16G6Wy+axIpOXd4l9wxF1BbMirWZl1qfR?= =?us-ascii?Q?sPuoUAs47FjvLreHMUfEECodGNvxls0cAIAnG6qRZr6TcFpC9moISFxsgmzs?= =?us-ascii?Q?uRlWSiaxqF9iRSDdZqUE635bHjFrfHnvlFQKwHLGMzsayZHPupfc8rCr4Gww?= =?us-ascii?Q?CwTSDi0+j6CfSUIhQLZ/mYIeSisvcSbH7JJSJw1MbjeLpPIfqYXgftM1TwoN?= =?us-ascii?Q?Ig9G+HG5fSrQacZHDNbR7RE0hjl/OyPvg10PAnOlLcaV8Q+RwprydxpHxFAd?= =?us-ascii?Q?/+M23Adog916vPlfMstjk8Btu/yo/wOxJLjS4M2ZD9UT8isf3p0XKwNZk7sr?= =?us-ascii?Q?OeLj7V7sct1XdBqHYpBR8zr5kHuN+8Xzs2l/4XSgfiQhpoh1iCXAO35WkE33?= =?us-ascii?Q?6J5UvgOcc4+61Cnq1pQEeqv7FiX/np4vaUU60veUlyUeIdh/tFd2Ac63153H?= =?us-ascii?Q?tBU/odY6QIiV+WcUkyBCnKrhMD9Bw2L8l2IbANHGXSL31TP1JgHD/o6+GLWh?= =?us-ascii?Q?1olXQFiNeqKmOpGG92+HJPEAAUy3nT0+dlWvYvUvuM4lrup45zfwNoOwdnR+?= =?us-ascii?Q?dbRqFS5jRA+tkHRgrqoppMTHzRJkgjqj7lbPrjAsQc770gUERGZ6PaN5INnM?= =?us-ascii?Q?nCm6O7swgOsfCKvL/br3rC9OqPsLmCbpC2WNuvGjQ0X7PVMOOSIjCNavolJw?= =?us-ascii?Q?WLBQkH05AWicmFJwF+9aG5QcSCS//fxwvTnUJFJvc2xkETX965y1KtVYgzc+?= =?us-ascii?Q?OUhlpl8cpBh7DMkfui6YiWixVLiBm9eZ7KcEuXavucu+CP0lq4KALHP9eZ1s?= =?us-ascii?Q?6edg9SXdhck0/2IGTNwc61ZsmI0avgb/c2sewXvb3RZ3EzfQDxvyqoaS2/G7?= =?us-ascii?Q?BY5+s7kdVu9OdBI/2ShzK05lsvXCQknt/W9gX01OboENQDXot+fsIIGwBnF1?= =?us-ascii?Q?tr/qSnJfzJcz2+f90Gc/fFE8WBt+QnB70mF+0EcuWtHk3+nUiwLae5KOauoJ?= =?us-ascii?Q?v4b8cGeC6RQ+W4HPQcnDQcZA0g3CsoNwSstwQBaGew9vEnmQLfmbqI2bFTOx?= =?us-ascii?Q?TGRC2tecIYDr4aYXfm07yvEpHfk8ae/LTV7SGERRy4y/DiS4mFWV5A3PBCA3?= =?us-ascii?Q?+sQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1641; 5:zn0mxD+oIg5x1VvurS/S+jp6sPgMpxmGeXNrTQy43yfrEYrxXtyce/O4TRmj3Vou2Lfd7DE411hCRU3dwgZ9/IA89rbXC7xkQhl1ypPh0hyyTfP+pzMKUNnJu5js/hLmKr2af2wfR1QTI60CHZHLTA==; 24:O7dQwm0EOE4w5FY+tGLR8gorNyHNVrzWiROq+OBX8RQa9OAE/c5xmz7y5m72hPzdo1KOaw9Rb5r43Ak23v6s2YyeycD0ffZCSg6A1p+aKIY=; 20:w7XhtPKI0AYHV0+gvIaGQbMAff34jgjTfgX1exb2hAu9yi4nEaFTrfQManXn+q7km5MmsWto9MPKEHXG3sRUtg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2015 19:24:03.7228 (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: CY1PR0301MB1641 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1595; 2:UtRvlCoPV2QgClZCzKbpDRhIKmUt/I5F/hsAu97x/AZlU6bGWumo9JPgK791tKrPvneHnH7aWWIR2BDRyMoZ/bVZix9z8XBj5GlVsXWoMkMHMvWvLsjgA5NLDsKzWo8saOGhpvFkr+MxxdI0650wbQ3L0ykApg0kItOIVY915V8=; 23:nbV3A1jL0oXGSv53AwZaL+cvDYEMsSM1JJSmaCH6yo+crUf9v1RDK7zJIDD1wW4bH5iQXmLNa7aMK8IG0blMVMOQCRfOBQ0iQ/tehLPWxp840JgaMq8eViy+2emFnCxz2xmjv5rxnu37wJtXJGsP59K5vbGLwsMkJ+TP5VZ1H2vfgMdgdHlT1Fj4nMyd4alm X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150910_152428_911024_6DE73111 X-CRM114-Status: GOOD ( 19.80 ) 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, 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 - 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 Changes for V3: 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..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 */ } };