From patchwork Tue Sep 1 22:49:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Alonso X-Patchwork-Id: 7107531 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 D0FC19F36E for ; Tue, 1 Sep 2015 22:54:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F0085205B1 for ; Tue, 1 Sep 2015 22:54:07 +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 09E7D2026D for ; Tue, 1 Sep 2015 22:54:07 +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 1ZWuPS-0003cT-1l; Tue, 01 Sep 2015 22:52:10 +0000 Received: from mail-bn1on0148.outbound.protection.outlook.com ([157.56.110.148] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZWuP0-00037l-1t for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2015 22:51:43 +0000 Received: from CO2PR03CA0044.namprd03.prod.outlook.com (10.141.194.171) by BN1PR0301MB0770.namprd03.prod.outlook.com (10.160.78.152) with Microsoft SMTP Server (TLS) id 15.1.262.15; Tue, 1 Sep 2015 22:51:19 +0000 Received: from BY2FFO11FD040.protection.gbl (2a01:111:f400:7c0c::128) by CO2PR03CA0044.outlook.office365.com (2a01:111:e400:1414::43) with Microsoft SMTP Server (TLS) id 15.1.262.13 via Frontend Transport; Tue, 1 Sep 2015 22:51:18 +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 BY2FFO11FD040.mail.protection.outlook.com (10.1.14.225) with Microsoft SMTP Server (TLS) id 15.1.256.10 via Frontend Transport; Tue, 1 Sep 2015 22:51:17 +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 t81MolNK028361; Tue, 1 Sep 2015 15:51:17 -0700 From: Adrian Alonso To: , , , , Subject: [PATCH v2 8/8] pinctrl: freescale: imx: imx7d iomuxc-lpsr devicetree bindings Date: Tue, 1 Sep 2015 17:49:13 -0500 Message-ID: <1441147753-13239-8-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; BY2FFO11FD040; 1:sxVxrfsWMatMCgharcPWzmIubqRi9r8z9W1pyp+MG2a0l1hERxzI4SaH1yRBKg6D+OiMK9mRonbFQbgWINrHuIustmLru9KyeeXL4N9veDbwDBjaf3/Sen/eW0cwnyXy8SRelSds+dMo7txDVRUsiaeyFUNriSmfd7Oa6Il8/BbNqvY6ERSbvxGiQu9kDOBqCctTPLe7sryxsKka5pzjJIh051PfaIQakUH15V3eJDLYm1y0QlZVthIZp4U9IsWcZlcJdz4HaG0ba2xOzn57g25zxX/LwIflQb6neTWNAmO7r9iUvbSpw8JLLh2Tc6BHohY5Yad+zWUnhlorUQ7H9z5fs4rW6COFhAUYqodHJLMRMwa+JPF5hUY1nqMlKLtqozGXrQDJPib9anImqX50mg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(3050300001)(339900001)(199003)(189002)(105606002)(48376002)(229853001)(5001830100001)(6806004)(33646002)(19580395003)(19580405001)(5001920100001)(5001860100001)(104016003)(46102003)(107886002)(5001960100002)(189998001)(106466001)(47776003)(92566002)(64706001)(5007970100001)(5003940100001)(50466002)(87936001)(36756003)(86362001)(77156002)(62966003)(2201001)(85426001)(5001770100001)(68736005)(97736004)(77096005)(81156007)(4001540100001)(2950100001)(50226001)(50986999)(76176999)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR0301MB0770; 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; BN1PR0301MB0770; 2:btmVTbLcDiPb2uGrk0nnT2o1Ij2uk0Psva/Abm8dHhwzOmAvJcAItSOTlYSV8l+SF9YJOmR+u0qf+KmE6qUlDk4GBqs/zcpHMVzj+QxuNzHdoutOUFa9LggvENCihg0P0EQXuhZ+GQ3pE5Ahls2h6MbCT4RpKyS92l9gq/xpGeg=; 3:eZki8GQNSK9RsdD172geMAKD30ayBPChC4zBUnhJjIs8keWkKdm5RRmrvUC73dQuGdlhJmE4+kNf1TqaM/FKCZNHzqpizWkHNNQk86ju6uBFnuVzK0G/IT86vlGaKHlVTMWnsy9ZSPK69dMStUtKgX3jIpDO+mbM8zIpPoDztfvdS74lYY/yAviQNElOzjMptn7iz8RwV1eolcAdLqVSCsJGmuq+Fu9QbYVYpBoVEYU=; 25:5TrFbNggYg7F6/LiW2Y3VU1i7NbkPjK57ibgL5Z7Kvyx/95yf1oujFYdHgkXLLzzTZN0mQTQFYVYsVdy4sG/xBX0q4sBFNX2KlP1xyJ4l5dKkh8t05arZALE7wZixt6eESj+WdxArldHA1mEvNIlLYbsPpa+0BSuL4Z572itarFq2a1bJtwS/kvFkCoycJBESMynAYA17QOELfS2Il/kmOCSPezyD5FHcD1QJKPvlQB2KOn+ooc12XKpx2IJwR9y+uUKf8FmqqZTe2bCmpcu6w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0770; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0770; 20:pjw+IbLQl/LKBSCQCh5g+TTJUjy07EgQtI8BAqisCiD8yQSz+ecycq8fMJtkX1rAoqWaV5xyNZNpeqHbrKVukwuVoPfug6Uvv9fM6lDNpNEun8O7FfrDKtROfFNpwzozY5VOgv3sVNYwgqTnZnSdFRwzkgP/LnmTvq9vwzs8Cn29Z967vukkH2lJrI/NTBJvRP5JVn0lYo+cEr1W4TnqyO+7cMvsGnbCDpuKkbj3wtJGW6ET3OFp4RYdXc+bH7Tu0fG+CMayflqU3ZQ/2Eoc+MC0mXD/HkA6ztj4g8kmgU8JdiHCVMaKh1KmcmZj5RLYavHlRWa7p5OlEziMPSUVrZpzGTT+TL5l7ZDiF2WTDks=; 4:uls2na91i4mC/eiafwdOZePIANILgPZz1jzqvj/8vVZo6a3pajuUY/+BZBtNmPsY+tlkK7Ybb4WZZXaROP1rn/jPgV1rH7q2mbd1EqG2njolefdpjfx0nP4qcFYc3aHTlfSArqioVpWffVP3fWmwQh+zk9FcW5rI8ay43gMMSHLbQsZzzv6tXox5h0IKzAVU9jZRfT+T8SA5O6Kolt6bK5kBrvGKR+sleqkc6+yx+pRjaR8AGIXec6LteEq9cqo91SOOJ9+cLohEQGpoAadOdoc/WiZkYOh9ZJoJih2IUKhCqzh7jJf8M7cv6W+CYqXIFkw3ctRjixR/yQru1al/Sg== 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:BN1PR0301MB0770; BCL:0; PCL:0; RULEID:; SRVR:BN1PR0301MB0770; X-Forefront-PRVS: 06860EDC7B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0770; 23:ldRA69mChV5HQrEvavv2/FEHSsT/d5kq/ljdYKH?= =?us-ascii?Q?kUYkPpVMq6FaCgk03mh6uQnPWw8NVQsAm496eP9YSeR2elJ8d0x7P88WUHK2?= =?us-ascii?Q?qZtfRiEnRxYddlGLL2pn53OP3Kdrhn1oVPa4J+OWpSOeodBdQULxxy4YrsHk?= =?us-ascii?Q?RFq1HolwenX7ntrk5x6b7cPCqmYOl7odXVtMCbvTR1sg6hkdUL6IveLrjjpT?= =?us-ascii?Q?9mxNvVrwf1QOKlmD7RFjy7TJLL9nyC5QBsXSr6ydYl6imbMEFfpzzQ3D1eKW?= =?us-ascii?Q?mJJIM7nnpaV+GVif3Hve73ns/ggjXgnb9jTC6zEgaAT1sdwolI8NfX5TFfEl?= =?us-ascii?Q?uzIAVxScOxsjyWhoGJ+z6Bw7bqf8mMwFwYm5NycubxSL6FE3tAUmaqRaqOy9?= =?us-ascii?Q?/oXFfRTHemb3yW/w8o/0m3xIEnm6FdMmjFF3vkfzcJQJrtgncm6bA3y2dAtC?= =?us-ascii?Q?slKI7vYkIyqJRzvzqq3wFbv9jyYpd4GgfAlKPQY8AgdPvZIFUN0lmZzoTpWh?= =?us-ascii?Q?4lI5RekHK+/4FuXg8YaK9TtZ25vYq8Nu/8HL0di245ckxRRTt8DOQT3pqK/v?= =?us-ascii?Q?AUmu4rRwzFgYjEUoJhWHyucoppuyrIWGxowWYjqyZh3TzNrEiQpE1kDat5VY?= =?us-ascii?Q?BRF44kDFiHvpGFDtLJFjE3kHpZxsuSOKai1vUTiAa0YdBY1tqpop9K1+YyRL?= =?us-ascii?Q?Ow5jPCeYrmzfTTLTEVPlNMqo27JM/Vc1Colhyak7hN/if/88p2T/z9WUFU5C?= =?us-ascii?Q?D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X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2015 22:51:17.7943 (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: BN1PR0301MB0770 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150901_155142_426293_88DF1F21 X-CRM114-Status: GOOD ( 17.73 ) 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 Add iomuxc-lpsr devicetree bindings documentation Provide documentation context as well an example on pheriperals that could use pad from either iomuxc controller supported by iMX7D SoC Signed-off-by: Adrian Alonso --- Changes for V2: New patch on imx7d iomuxc-lpsr patch series .../bindings/pinctrl/fsl,imx7d-pinctrl.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt index 8bbf25d..c7310fc 100644 --- a/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt @@ -1,10 +1,19 @@ * Freescale i.MX7 Dual IOMUX Controller +iMX7D supports two iomuxc controllers, fsl,imx7d-iomuxc controller is similar +as previous iMX SoC generation and fsl,imx7d-iomuxc-lpsr which provides low +power state rentetion capabilities on gpios that are part of iomuxc-lpsr +(GPIO1_IO7..GPIO1_IO0). + +Pheriparials using pads from iomuxc-lpsr support low state retention power +state, under LPSR mode GPIO's state of pads are retain. + Please refer to fsl,imx-pinctrl.txt in this directory for common binding part and usage. Required properties: - compatible: "fsl,imx7d-iomuxc" +- compatible: "fsl-imx7d-iomuxc-lpsr" - fsl,pins: each entry consists of 6 integers and represents the mux and config setting for one pin. The first 5 integers are specified using a PIN_FUNC_ID macro, which can be found in @@ -25,3 +34,37 @@ PAD_CTL_DSE_X1 (0 << 0) PAD_CTL_DSE_X2 (1 << 0) PAD_CTL_DSE_X3 (2 << 0) PAD_CTL_DSE_X4 (3 << 0) + +Examples: +While iomuxc-lpsr is intended to be used by dedicated peripherals to take +advantages of LPSR power mode, is also possible that an IP to use pads from +any of the iomux controllers. For example the I2C1 IP can use SCL pad from +iomuxc-lpsr controller and SDA pad from iomuxc controller as: + +i2c1: i2c@30a20000 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1_1 &pinctrl_i2c1_2>; + status = "okay"; +}; + +iomuxc-lpsr@302c0000 { + compatible = "fsl,imx7d-iomuxc-lpsr"; + reg = <0x302c0000 0x10000>; + + pinctrl_i2c1_1: i2c1grp-1 { + fsl,pins = < + MX7D_PAD_GPIO1_IO04__I2C1_SCL 0x4000007f + >; + }; +}; + +iomuxc@30330000 { + compatible = "fsl,imx7d-iomuxc"; + reg = <0x30330000 0x10000>; + + pinctrl_i2c1_2: i2c1grp-2 { + fsl,pins = < + MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f + >; + }; +};