From patchwork Mon Sep 28 21:56:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Alonso X-Patchwork-Id: 7281211 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 BF5D69F36A for ; Mon, 28 Sep 2015 22:02:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D9F492070F for ; Mon, 28 Sep 2015 22:02:41 +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 F135F2070D for ; Mon, 28 Sep 2015 22:02:40 +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 1ZggU0-0006Kf-8x; Mon, 28 Sep 2015 22:01:16 +0000 Received: from mail-bn1bn0106.outbound.protection.outlook.com ([157.56.110.106] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZggRp-0004Kw-0i for linux-arm-kernel@lists.infradead.org; Mon, 28 Sep 2015 21:59:01 +0000 Received: from CH1PR03CA010.namprd03.prod.outlook.com (10.255.156.155) by CY1PR0301MB0780.namprd03.prod.outlook.com (10.160.160.140) with Microsoft SMTP Server (TLS) id 15.1.268.17; Mon, 28 Sep 2015 21:58:49 +0000 Received: from BN1AFFO11OLC004.protection.gbl (10.255.156.132) by CH1PR03CA010.outlook.office365.com (10.255.156.155) with Microsoft SMTP Server (TLS) id 15.1.268.17 via Frontend Transport; Mon, 28 Sep 2015 21:58:48 +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 BN1AFFO11OLC004.mail.protection.outlook.com (10.58.53.75) with Microsoft SMTP Server (TLS) id 15.1.274.4 via Frontend Transport; Mon, 28 Sep 2015 21:58:48 +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 t8SLwUQ0032549; Mon, 28 Sep 2015 14:58:47 -0700 From: Adrian Alonso To: , , , , Subject: [PATCH v7 6/7] pinctrl: freescale: imx7d: support iomux lpsr controller Date: Mon, 28 Sep 2015 16:56:40 -0500 Message-ID: <1443477401-17238-6-git-send-email-aalonso@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443477401-17238-1-git-send-email-aalonso@freescale.com> References: <1443477401-17238-1-git-send-email-aalonso@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC004; 1:LWIxKXg8cn+4FaytYfeU59WdiHXvIIF2k19qs5QOKT4DEETLULRYkoOmSHeN91uwhbVtS9l6IPaWK5ZneMegN894n2rkodECRcMh5QGeDHZK/qtcvcpeRUJNRVowMnoWWMXQwblw1PQZ28bHVviWD9L8IqWX7tNJxrdyHyNqlaFyJYNQA50nluI1kI+apYkSV8vBGGLdrYteVbAmtiVzZ3NYuHxAm2HYxCdC6RTnxFWCtpSk6xEwg0AmQgybQHzlBkzJo4PyAgOmIlNBc7v9R4phr/jeE3J4w7ONfB5zdVmCoMTe5G/Q1AzlQl/WwQVaIJ+wk0Nd9IySAQb3Gy/CkTU9qSXw01HuZfbYKWL7dLWIOWkhtEbpggsjuQ+90tWX0mB0SrBU1jNIi+A2WDoODg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(50986999)(107886002)(5001960100002)(50226001)(97736004)(2950100001)(189998001)(36756003)(47776003)(77156002)(6806005)(2201001)(5001770100001)(4001540100001)(81156007)(5001830100001)(104016004)(33646002)(77096005)(19580395003)(64706001)(5001860100001)(11100500001)(5007970100001)(229853001)(19580405001)(92566002)(76176999)(68736005)(86362001)(48376002)(85426001)(50466002)(46102003)(87936001)(106466001)(5003940100001)(105606002)(62966003)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB0780; 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; CY1PR0301MB0780; 2:/7BbOVWE+ZlLsRacUlTqLGyXE4d6ggtPUv7p58tn5AewVAnF2ttcNVjIO+7ANohi/mOA3IrCqxeDZP4SiooHjTmn2VJ7TTdQHv8q9t8JomAGz5ZCxn7yhcBw1Jnni2yKmKe3W5mPu3h1P9OiXRUS33ZLAzRCrebzNFG1xeJkPBs=; 3:D4wbOKnH7IlffmWL07IxA6xOSI6NA0rDIFgfVVlAYbx6BOQpMV5i8w3ttazCEZ7bhFRQ32LelOm6t5G9QuxiK2kezW+YF7gJWG8ueBIAzkJ9x8VPYpVGpgAIEFisRoTHCmFRKwWczwjRSzknlJnDGR9j6i3OKL3uOQXvl2qlAr/eftk1bp6yBhyIrncRb3SBnTzVkeTgqvjkSGymfel09r15aHcL5h/uIaZToTiwt6g=; 25:jc8BxM/ICvBsm7A1qnMT0VwMdl2A//SDeJZwetucqR3y6bgjxTuc1qukgLDiwJRPa0uiAn7AXRHOg50qshSlAWHhhdo3iDGjftxtqr4bnRzN9ELgDaFw9ybyWk0ilal6nsB87s3ffQVwxepsQ9Cr3Z8BWqSQlMriRSDeAS2UR+b2JpngwMnSgcKXd74gqyXbzkUkHgxyiS8OXdn/KT+PlhQ90ujlsuV1KVKMLvC2N8tggrZZksekrZLBHugi9tRiggoXaZAON5d67o7VhBimFQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0780; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0780; 20:uwZf46NGBBCpsQdrcweJcBZRxpjgp6hfKGNbS68bUf2QWWlKrmOAzh/xWGJtZsrZihF/Qgucgq6sSod+ZXtMkhDzVTo/rh4U3WVUc0CnsWnSqKbDS4+fIaqRMH+CQQ+YB5gSFrcWs4FklP38th9x867fK5DLzCxROGHx/NjWB2Uy8YSqNbbZYC8J19vL7z6bXLxBHXhuEDHjZaBkaG8TonUr2xmg8gWTo/nyqtWT7EdpDllWWNg/vsx+bmucACNsVHmojWhE8jgj6YtrTwz5rT2Z0GLfkLqxBBhIdhxaCanKRY9x2w9sPmbBULzoJbdB/0UpFx0vBnpWCkvA+I8JOYipvFTZ1J+/d02f/j9Z7V8=; 4:dQ86abXyv3nSOGKRcjF1hVcjcUu86bPoQEBbN3TG/+f8PSojJIIZxLDpzh9ezfyf8C9zHqWemdPp/XjXwca2GM1N+vXqLrd+P2/m8TzMUBRDQn+EnX8cJmmvL7doy5JwHZcJ/hi5hhjauuAfwPDMbbleFV9fO9VdQhymcwZ/yIE3voO86btHPh8iQU3zpzvPCcglEeLrxuRavFR8EtlhYGP2XfEMsQsZHdCZEEhFZjA0DGZ3dd266VbumJPUQ9Pa0rbSlf2KGJK1D2+3nvIfjFIS+WFt1UyOBON+FpVKdhPX1tmXhcvixizSBdA2r90JtgEh1U0lxH7C2kQyHsy2neC3G0sHNNvCkMuYL8NeB3w= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001); SRVR:CY1PR0301MB0780; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0780; X-Forefront-PRVS: 0713BC207F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0780; 23:tIlZzzJRg9iKuNBdXRrp/IzTSG3lvkGM31dGb4N?= =?us-ascii?Q?oCtxE7qASm57twM+zT2vL+Bec4e+++hAixyXmiAKyy3Rm/8zJT8HjjGlM8uU?= =?us-ascii?Q?vavC5qRs2KduxTF42vumHHQzoLj4uVm5BQw7hULW1VflAPjweOQP9bj4/jq3?= =?us-ascii?Q?6ejG9gUgLRlR3rpUJrZkLXcRav0KxPAON9gsMyoL6Wq/BvOAt/eQsQ3mo3lo?= =?us-ascii?Q?QATu8gG1VyUxpaCuTDyfjQ0Z0buyO3ArLQftYp+zjwg9LD0WoXm+HgXEHZ9N?= =?us-ascii?Q?1fsbWpRA5xudXbFQKIPqU/00Br5/pPTym/jvQ07Kt8qyEyIkEVhvwsDtI00H?= =?us-ascii?Q?PNqcDT8RiWVyv3jGe12uXcN9UXif02pT/WXVi7+g3MBmke0ECvEblBNuz208?= =?us-ascii?Q?EsEnlyfa5zlUDVlhKFUG6exc7iJw3Dagscbc5GhGdEysiRuzOdJ/q6CpNvgE?= =?us-ascii?Q?/kL18nQ1LhpJhYJo+YHH5CVt6V8Y7qZc78f4go/R6/AT6kPhZ+Xr2YJv31dA?= =?us-ascii?Q?7TAowBkhPOrXLafWQcB5oGvTELOmZP+0ZiVqadLZvKB7gRhwWJsKHDlOz/ZH?= =?us-ascii?Q?HelzVrQ29wj0Bu2NKeY42tamM8a5eOrEN3Ued/9OvX6AeUJi2ey+4Fw3HIlV?= =?us-ascii?Q?vVJ9jjDaASEp2dbbPuxOVFkSqGoFCoeQnrHDVifdMCTilSNNkTxEYX9PCGHw?= =?us-ascii?Q?wPC5/RjlPkUosNZZtWTaIpuNAIhJ/1AmaBtt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Jffnr40g3UjmwSDE7UGlyFh/XA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2015 21:58:48.3910 (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: CY1PR0301MB0780 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150928_145901_223283_3F5FFE82 X-CRM114-Status: GOOD ( 16.33 ) 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 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 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 */ } };