From patchwork Fri Sep 25 21:06:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Alonso X-Patchwork-Id: 7268041 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 75F7EBEEC1 for ; Fri, 25 Sep 2015 21:10:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8BAE62095F for ; Fri, 25 Sep 2015 21:10:31 +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 ADAC62087A for ; Fri, 25 Sep 2015 21:10:30 +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 1ZfaEn-0001OR-PV; Fri, 25 Sep 2015 21:09:01 +0000 Received: from mail-bl2on0135.outbound.protection.outlook.com ([65.55.169.135] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZfaEI-00016Y-6L for linux-arm-kernel@lists.infradead.org; Fri, 25 Sep 2015 21:08:31 +0000 Received: from BY2PR0301MB0774.namprd03.prod.outlook.com (10.160.63.28) by BY2PR0301MB0694.namprd03.prod.outlook.com (10.160.63.149) with Microsoft SMTP Server (TLS) id 15.1.280.20; Fri, 25 Sep 2015 21:08:01 +0000 Received: from BY2PR03CA061.namprd03.prod.outlook.com (10.141.249.34) by BY2PR0301MB0774.namprd03.prod.outlook.com (10.160.63.28) with Microsoft SMTP Server (TLS) id 15.1.268.17; Fri, 25 Sep 2015 21:08:01 +0000 Received: from BY2FFO11FD010.protection.gbl (2a01:111:f400:7c0c::187) by BY2PR03CA061.outlook.office365.com (2a01:111:e400:2c5d::34) with Microsoft SMTP Server (TLS) id 15.1.280.20 via Frontend Transport; Fri, 25 Sep 2015 21:08:00 +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 BY2FFO11FD010.mail.protection.outlook.com (10.1.14.74) with Microsoft SMTP Server (TLS) id 15.1.274.4 via Frontend Transport; Fri, 25 Sep 2015 21:08:00 +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 t8PL7njg028753; Fri, 25 Sep 2015 14:07:59 -0700 From: Adrian Alonso To: , , , , Subject: [PATCH v6 5/6] pinctrl: freescale: imx7d: support iomux lpsr controller Date: Fri, 25 Sep 2015 16:06:01 -0500 Message-ID: <1443215162-13716-5-git-send-email-aalonso@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443215162-13716-1-git-send-email-aalonso@freescale.com> References: <1443215162-13716-1-git-send-email-aalonso@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD010; 1:cqEloNh4B1ahI6w/ubgb7HlCNPi0Skf18P3yZGyeZkpgAMCOcLAwpaXIW9OcTCZ/bMOqfAzjC09rllh+DnpVK7rY8QOy1xcz7mClH2kPQ4UJ9bseeAPR7I6BO7/T2xfA9JV+cDyGTM6XToI+JMEfu+D17nc6LZe/c2lf7Ib+GwyxwtEbDl1p6b75U0fyz8mcta1Lm04lA+9CnSgTL0FrtKqzhsw57BVhBzLflBPwD7rVBG/d1ByjXCe4Xmcvk1+NJBNYT61ZH+rXF1yaZGxP1K+sN2oWUMQBICIu/ET3R+fz5L7C4v/U8q/huv45d8tC4eIbh4wFgtt0Abm6DIWhexOimTY8kyHblmb8jXp3KDYJ2dOS/SXnmY1wK8DzoFmPdBYBbCRxrY5IThdKKDHobg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(979002)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(81156007)(189998001)(97736004)(48376002)(5001830100001)(107886002)(46102003)(33646002)(6806005)(4001540100001)(5001860100001)(11100500001)(77096005)(50466002)(62966003)(36756003)(104016004)(229853001)(5001770100001)(5003940100001)(92566002)(77156002)(106466001)(87936001)(68736005)(5007970100001)(85426001)(2950100001)(86362001)(5001960100002)(19580405001)(50986999)(47776003)(50226001)(2201001)(64706001)(76176999)(19580395003)(105606002)(4001430100001)(2101003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0774; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0774; 2:4jmZqA0crAmVSmqVb0KZ/QwRjJEQKMiQ8H847LT3rPX5+M4kH0vLAg5BhMfZbrU5vtJklX7w1ct6oEk7Xeo9Pe5dsD3H1oMD5Z8nhnIV7LXNFpSWjAJo+XJBirSMEl5FCKs07UuNVJ0ZjDRnYCOo8GjYZIVvtpUX4YmgFnOdUx4=; 3:evp+MRp6qSjxR7/UBapWZxgTlv51b0AbYwgqLhI5FGj5iXjv6ORMF0H1ZPfXWg5Kco4PX81ZMTogHbvMoYimVjFSjRc228xIPUSJTeGAbWPOpj7Kzy1t8+lh05nhF/AK+2fsvricNu0pUtxz+QiGGaomJ1LLeT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TFt6qBtvc2++dQD1QQwix7wmdDRBga/EcrxaFYcxpX0LuRmH58HVwrvzeK/ymnWKh1ik51D9yuIK6hvHdrSFcqPKmuKlj9nCXJByV6cS+vgc0enyqNMP6BU8= 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:BY2PR0301MB0774; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0774; X-Forefront-PRVS: 07106EF9B9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0774; 23:tBp9LXzTDRLRItX7K8X5H19hvqCkgnli7AxEJpV?= =?us-ascii?Q?R99yz2YJgCGfUqNd7jirEC22Pv5TZBuJI8BC3yQSVDGMPh7nf6XQ7dr+iADl?= =?us-ascii?Q?ahmaIyDpYY9dg9NIvQYbADrvT9BGFx7PtY6+ln/JAg0BtHk5Lz1EdiEO2rw4?= =?us-ascii?Q?PGQi7g0o6tgCV75IdJydYMYXm9JHv1Z5v5XvXZ7PLv4o7V67aR1jZUQKltT4?= =?us-ascii?Q?rJxOgaMukQ1s9b7U0UPM9W7rzEHyNzfE5asChcxxmFpDECjT2Txwpn/I3SjE?= =?us-ascii?Q?utS0PWBR/h7/38GZmZDC5r+J7g5ZJo56Q280GgMKhH8itocVdbZMOx3cHU+C?= =?us-ascii?Q?D+LI4HMohVox8suWQ2ui9bEigf0jQLuL3TP7iJF91n07mgGNLVohPNJgDBef?= =?us-ascii?Q?5CcIJk3NMvJbewJlMVNu8ZXCElhlDq4eNrrQBW7JAgseF35Jv5QuxCoftwes?= =?us-ascii?Q?wWx7LaA8uaNDHGRIbyHthlYub3rluOuWH+dMv2lq2HBu7kBsWXIhxGWDgcjC?= =?us-ascii?Q?Xo+yVC+6NjPIeJgh6z1EKRk9D6/sjMUf2Xq1GGDxx7VWD7kdAiB+IPmDXuZR?= =?us-ascii?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14c5XMLDxdSHwrrm1ZeIQOOTINc73oEz3ZmGTzuvweX42V+2HPxqIk02JNCqZTCVctjTJHZmUbqJm3njaOib97AxSIzfjS3j5vXDZvwhK2A==; 24:Q7hshSeiWXv+9xrpUuUWzXxykcxYzkNiWIvm34h/QktRvIU86RLg6U4ZkC58u1gpx21X7PVNrVqiO3fUYUkv6VG4TivUbI+FrO5GlYlrW1U=; 20:KL9pv7rFOfDaVwFcERNsy2ifbgp7MnYWzkhp1rrEIs1URln+XaGgnKjVE+Sf+ALPGrV5W2P7LrRLibmqGB9vaA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2015 21:08:00.2139 (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: BY2PR0301MB0774 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0694; 2:thRC89kGbS2qATJLj5iTejEZkQ1QaqZfVeRq2IishUMSS7yq4evGjw8chgQHotEHl9h/t2fNhKMBM9hxKike1PbM1ZOvwX2bVfDlowz6rwUAIWuctF8YMEnhVf6MosriQpOlzoRTH4/iZ4jlQ1QDQwwWhsEAxDDJaLPO0kRb9WM=; 23:tI6AZ62PqV0zj5ZGRo+P5G31rkidg6YSzSMFN4cWYM9/3NETZ3cajf8sNqi2pjcdWuS3dAbsOaYZPqEuqrQFHY9eN4+OsNYd6thq5mwsyNSQ6l8D4lOpXqZhQDHT49eF4RAPF/LkUSpIvAm6ikKhPRD79ijunX/LlGfZy1r3ipmyd8y3t5vxN5U4wz4p/zMT X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150925_140830_524369_1C86ABD4 X-CRM114-Status: GOOD ( 16.31 ) 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, 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. 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 */ } };