From patchwork Thu Sep 24 20:54:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Alonso X-Patchwork-Id: 7261051 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 1CEB49F380 for ; Thu, 24 Sep 2015 20:59:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3384D20AB4 for ; Thu, 24 Sep 2015 20:59: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 A5CD720AAA for ; Thu, 24 Sep 2015 20:58:58 +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 1ZfDa0-0001Rp-I8; Thu, 24 Sep 2015 20:57:24 +0000 Received: from mail-bn1bn0102.outbound.protection.outlook.com ([157.56.110.102] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZfDZU-0000sn-Ip for linux-arm-kernel@lists.infradead.org; Thu, 24 Sep 2015 20:56:54 +0000 Received: from DM2PR03CA0023.namprd03.prod.outlook.com (10.141.96.22) by BY2PR0301MB1637.namprd03.prod.outlook.com (10.163.28.139) with Microsoft SMTP Server (TLS) id 15.1.274.16; Thu, 24 Sep 2015 20:56:29 +0000 Received: from BN1AFFO11OLC002.protection.gbl (2a01:111:f400:7c10::160) by DM2PR03CA0023.outlook.office365.com (2a01:111:e400:2428::22) with Microsoft SMTP Server (TLS) id 15.1.280.20 via Frontend Transport; Thu, 24 Sep 2015 20:56: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 BN1AFFO11OLC002.mail.protection.outlook.com (10.58.53.73) with Microsoft SMTP Server (TLS) id 15.1.274.4 via Frontend Transport; Thu, 24 Sep 2015 20:56:29 +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 t8OKu0F5030281; Thu, 24 Sep 2015 13:56:28 -0700 From: Adrian Alonso To: , , , , Subject: [PATCH v5 6/7] pinctrl: freescale: imx7d: support iomux lpsr controller Date: Thu, 24 Sep 2015 15:54:02 -0500 Message-ID: <1443128043-21063-6-git-send-email-aalonso@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443128043-21063-1-git-send-email-aalonso@freescale.com> References: <1443128043-21063-1-git-send-email-aalonso@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC002; 1:U9/JmBhSWPBSxIPw9FrOdq6os5/hcsUJysGvzbixCdXZNYzP6LvSFGIBjPuHQtSqJBHQX5GVzGBMmSI+f6wQlXZu5+F9OfD2bmmtSOT6yNDR5CkRhu2LxddD8X1MUSewBd3wlhJY0Xfr9KsReRXgx+s+VaQKqirksNQvxKcHWb1ZI5A1XXnKQCYwuBl901s1CAAvalJbyrshtm1zRD2/hyjSeU0thUltgWUZ4rBX8L2HFzwp1J6RE3oiTGQVs1aeU8MhJ2r5Mkb24pPc6ITAdYZvQWV/FoGtd6JTlOJpyVzu0Ou52QfDuv6EMuctACyyn7R608aj3O98lS/0vOAn8S5r+g0HUao9MXk13qFhCaMIEkhMWgEjFlmWUhUIdGAsdSRszjb/fgQRPLoAnwaVNg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(85426001)(48376002)(50466002)(2201001)(86362001)(19580395003)(19580405001)(36756003)(33646002)(50226001)(46102003)(81156007)(104016004)(4001540100001)(5001830100001)(5001860100001)(6806005)(68736005)(2950100001)(62966003)(11100500001)(5007970100001)(77156002)(5001770100001)(92566002)(77096005)(64706001)(50986999)(105606002)(189998001)(229853001)(106466001)(5001960100002)(107886002)(47776003)(76176999)(5003940100001)(87936001)(97736004)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB1637; 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; BY2PR0301MB1637; 2:CdTklDUbChu+5LCmf8fR8v6M2UikQcFmt7SHNA26izfqRgeA1QDbU7AFM7o2pspDo0/T92tCcnrXmMUBfNbD/Vgc05A94527X7Cm1GFPx9Y1NayEqE9ZYTxaEkUA3KbovOTbsy7TvqcvapUUVv3yxLxRwOL66wx7wfmFsVGJKTU=; 3:MKI5J/F/VCsB8345hsjOMUmxJ60x/hB2qkRV/e9zSSYVTEuSenCWI9zBLXf48LE8PG8KLI95ltJG6KaVHobNqTso+ukfEU7PUjgUndc9EWxLZaeFQHY8xuk6RgDBMRJmM7fwRm88582wxcTss8JmO9ug8gox1tQJbtvCIB59NP71oqNVLB6Oa9WWDkMM5AmT8hZ8SQUtZ/MLxQoUNVGWTtBfLmPUeA78KburuiYowf8=; 25:0EDVTbakmR4hgwWhqgQPtLqa6P3SlgWN/p9gZzWi2Yj3puccC2Yue5s92/g5HP1UkfSh6LJpSSbp8ogag6HW8Lw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Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001); SRVR:BY2PR0301MB1637; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB1637; X-Forefront-PRVS: 070912876F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1637; 23:ocj2WV0aUsJ45zf0cOrOgyPYcMmuTJR6kZJtPTx?= =?us-ascii?Q?zha1o5s5bey++rMoXWbRPuThwpA520msMAvFMG7Ngiaxds+QQeF4zLDErfNk?= =?us-ascii?Q?H8tdciXHaA2l7JC9v+OZhHMP7plNQUOLdxdZnDOPoCewTjm1NeKE0pZQe0Z2?= =?us-ascii?Q?dazzMkW6xOShulSh12D8wIWJNJxaw9sV1pKpOfVabO037KQMnR55E7kXzoDT?= =?us-ascii?Q?k+WjFJHPSt2RgypAV7k0i8kGm4+TqDgGNASUAV+i/9Q9KYPsfShpzV0iXzyl?= =?us-ascii?Q?e4gutQDPbv4X7rjIja+AdT5drDcHGJw6ZsGJRl3MSWedctPwaWDL9O2EEOUC?= =?us-ascii?Q?hKN/AKT+4thmruY/4Yrwfic7uggs/ybtkhRJcwRBH909XWSH23FjS0w3XkTK?= =?us-ascii?Q?kUIKHGrsPXPBgHRwjIm/4DghP6mSd8ESQfqZJuuk2WJvW6+8NX+Ydc8LDP5q?= =?us-ascii?Q?qmqvTH45kbh2NB0xZH0qowzNdv5RYASWW+oqBro9y4MRiRIIeSC5Km3stY7C?= =?us-ascii?Q?2gSlf3mC6wEGlneILEh3jBVrCex/DZSNbWDZNnLesba5nxkrM8ats/kaPD9j?= =?us-ascii?Q?eOwy3N9TYHW0/QrfUQA8cRo/f+qKbxyiAA1hCSO8JoQF/3HTVe/XMzTYuJXN?= =?us-ascii?Q?ovN8uP4ftJUw2f9Q/RV4ByWs1YPG/YdKUeR93EXTm8j9b+Xahc2fTuF6IjMr?= =?us-ascii?Q?Hda39NnpW4otG8DDNW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XJB1Y7MG7Gv/mVUfx+RrXBG1QhS0QGqeM1lIYDTkQ5qqQ55qOyUjzhP1BvZn5bsA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2015 20:56:29.3381 (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: BY2PR0301MB1637 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150924_135653_059107_E395540E X-CRM114-Status: GOOD ( 16.26 ) 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. drivers/pinctrl/freescale/pinctrl-imx7d.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/pinctrl/freescale/pinctrl-imx7d.c b/drivers/pinctrl/freescale/pinctrl-imx7d.c index 1fa7530..e901907 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,31 @@ 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), +}; + 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 */ } };