From patchwork Fri Sep 18 16:29:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Alonso X-Patchwork-Id: 7219171 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 E73C0BEEC1 for ; Fri, 18 Sep 2015 16:35:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 125F620886 for ; Fri, 18 Sep 2015 16:35:34 +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 D009420878 for ; Fri, 18 Sep 2015 16:35:32 +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 1ZcybZ-00027A-0Q; Fri, 18 Sep 2015 16:33:45 +0000 Received: from mail-bn1bon0110.outbound.protection.outlook.com ([157.56.111.110] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcyaU-0000PA-3P for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2015 16:32:40 +0000 Received: from SN1PR0301MB1648.namprd03.prod.outlook.com (10.162.130.142) by SN1PR0301MB1614.namprd03.prod.outlook.com (10.162.130.24) with Microsoft SMTP Server (TLS) id 15.1.274.16; Fri, 18 Sep 2015 16:32:13 +0000 Received: from BY2PR03CA047.namprd03.prod.outlook.com (10.141.249.20) by SN1PR0301MB1648.namprd03.prod.outlook.com (10.162.130.142) with Microsoft SMTP Server (TLS) id 15.1.274.16; Fri, 18 Sep 2015 16:32:13 +0000 Received: from BN1AFFO11FD030.protection.gbl (2a01:111:f400:7c10::181) by BY2PR03CA047.outlook.office365.com (2a01:111:e400:2c5d::20) with Microsoft SMTP Server (TLS) id 15.1.274.16 via Frontend Transport; Fri, 18 Sep 2015 16:32:12 +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 BN1AFFO11FD030.mail.protection.outlook.com (10.58.52.168) with Microsoft SMTP Server (TLS) id 15.1.274.4 via Frontend Transport; Fri, 18 Sep 2015 16:32:12 +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 t8IGVgDf032121; Fri, 18 Sep 2015 09:32:11 -0700 From: Adrian Alonso To: , , , , Subject: [PATCH v4 8/8] pinctrl: freescale: imx: imx7d iomuxc-lpsr devicetree bindings Date: Fri, 18 Sep 2015 11:29:58 -0500 Message-ID: <1442593798-11501-8-git-send-email-aalonso@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442593798-11501-1-git-send-email-aalonso@freescale.com> References: <1442593798-11501-1-git-send-email-aalonso@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD030; 1:ddtllYh4Ub58JVREApqWxT2fxdrPBGGM+dglbTKijxl/rqB2XcXfkjyTMBElk1M8RsuMr8hFzhizVkI7+6/T2V5A2kbxzIm97OI21gfa7lr2PNcPkM9C1iHEDOqfQA//UIrpf832Jlc3ArBfAFqpxCV0Bf7din3R9aTCYiuPdHqoUh01QIicuEhAfqsig339R+xzAeg/h2Vo49Yoj4tx+MjSzKV/Yb1jbrwDp+R9aoKFSqelv2sez6TEUZubDBA/FfuuI+xG9Gs/Hszc8XjazzgKAjVYfGWlDyeLSxX2H7vwj5Ae11S3ot2HKh6x3UcxFK/Bhm/B9TaQ3hTwTf/tPu6Lzqu+WnpeifU31gb6fdq83P+NwZBuqa1q7hLUOXs6RkH+B7msycl2S16lPjpZ/A== 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)(77156002)(5007970100001)(33646002)(189998001)(46102003)(64706001)(47776003)(62966003)(5001960100002)(68736005)(36756003)(77096005)(86362001)(107886002)(104016003)(106466001)(229853001)(105606002)(50986999)(76176999)(87936001)(85426001)(48376002)(50466002)(5001860100001)(81156007)(11100500001)(50226001)(2201001)(2950100001)(19580405001)(4001540100001)(5001770100001)(97736004)(5001830100001)(92566002)(19580395003)(5003940100001)(6806004)(4001430100001)(2101003); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR0301MB1648; 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; SN1PR0301MB1648; 2:fUarqLL2C/zq1xX+rlZ6/+LvfPBWknjRANgzXPX+PPZp+F/WErqfzY60RAaMuvSM1dxA9JHN52UkgM7MUYD1JYVRcWv8QnPuA5SPt6uYMP4j2xjR5rXd4lat20sP6uiQUoW1HbI6sX1kFFVKjLLaOKkfiYThIxhS4OQnzzDBOV0=; 3:vsmJXDSr9+yEIzNzUG/sQzhwVOWo7XnFtStUxAUsObova+GTn2ERUHyuaReZlSDuX+LMAyTmLrLWWkosJgAGbWIChqHV+ub4CT/RgbfSTs1u3xquSl+67aJKUXYE3LwAkvoDmM4CBdBmkprCyIsXYLo4KlfFONPgAuDm0daIX1xs9pMvqOib974HiaxUqfpNORnSrbF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BKP1yIXGgTzaaGdDXi3/AREbbQenATczog27IYwYYJAW+K+ofkHCXgbRSKCMlCog== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(520078)(3002001); SRVR:SN1PR0301MB1648; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1648; X-Forefront-PRVS: 0703B549E4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1648; 23:70lUXvaBdHUUDuujTkrqu4aOBQuSVuoSULFn5lm?= =?us-ascii?Q?tq+R4q+U9HXeTS3trTsEF5NrTc+RPJMwjeV1pteg4QGWvqiCdtS1XcSD5XSr?= =?us-ascii?Q?j66Ns9T+gmHQRdh2fnvmG8VqBqn9tKyVizoVvciDZxuYTmWwQbzeU0XmurEr?= =?us-ascii?Q?ubEIKYR8WEZI/uA1YW9gfEVcHM2km9ATv70nMzts+/ocy5aWo+wU8SyQuY0N?= =?us-ascii?Q?vgigI9Jldlv8vxv6ZAUgn9TPX5ORQ7CEC6szlKtmtzLM2YgzL6FijiIyBOQD?= =?us-ascii?Q?Soh4MJSmEsDLdRkR4taODoQqMD4cbZ1/6uiDJxcFA+1p3jEJVd2ZD7uidjpP?= =?us-ascii?Q?fHfOzkrt103QZ5P6lJ6TYa37nWfRy7PIq3YZzzK5OcTJx91COYZrDyyKGyet?= =?us-ascii?Q?mL4XEna+/Aru59MmXk0qCWzUy5H3wNlYO3QRKJetU5NH67ryNoNnvOvCXH2v?= =?us-ascii?Q?GZZBFkaSQKFx+QROCv9v+sy3PdEGDNX6xvSKFN+K9KV1uWxu20VKYPEVbAi7?= =?us-ascii?Q?fEmY6GL5qWWT7ZBKD/5lrlXJ0PyLKnzJrTZ4RcO32maUQjceaNgqN5aWm+lD?= =?us-ascii?Q?36ETJW0Pj9Ai60uTN4NfZJXF9ZLUUBy2LfQUB2Unx6jho48LaVzcVVQLihDb?= =?us-ascii?Q?PQH2K0safLVzD8a1g6mRS9/n9II3lcgZpvMgpdsYH82KGScozEPSzG0o4aaa?= =?us-ascii?Q?AFLf1GqjIi/GuTJHHrwD0xbKYA5eMlpdG9p1Z6dq8/fkLC+ZJR5enscV3Z1c?= =?us-ascii?Q?fG6VmECa+pdIM0M8/88/BvcuXW8FPd7b4hTy3/7WMHL0RueblmqPMlhbTVQQ?= =?us-ascii?Q?nUc6JxHGPOmybM07C+2m2ETCcyl91LPs+YgWgC11olPz5eIkMpugtgU9VjkC?= =?us-ascii?Q?mqRGe3t/821O0j8pTX8YPUf/dnene99xGymUBKthcFBqr8Ka40BD9pWvWKHC?= =?us-ascii?Q?U/25kHpg3+ERW2IltdTHv9zn6cAVF31Tv03cy/QpIFAeOaNDJq69swH4duGj?= =?us-ascii?Q?xyUewZYlX5uB33p99h163qItbsr8gW5f8nEfyOBAySMT/A6Nt6Xa7gfFhA5U?= =?us-ascii?Q?JXej7QIhXJBF9Q/xyFaaQi1kJNzIMH2UyImXMBSrf+W5IxLk6brod3QrP6ws?= =?us-ascii?Q?R9tLkmjqABO2t5STNEeIxwvt7mbaF/W9NbdwdF3Lj2SnP3KFAi2TVLG5tsD0?= =?us-ascii?Q?VOE+Xj2bkIP+TrZwq6e0IXXhscki7Nc040m4upxJfVpfJNXpezMnlHHx0/RH?= =?us-ascii?Q?LbENrPUaFWwxrfFBf3luClqjPPCOmXKRY+ydPZ/u7EOqr2Tu1jq3fCgBxlgS?= =?us-ascii?Q?yJA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1648; 5:6cPUj9rMisNv/lx/7LS6GsrEW0dXCuFXkKvz/EuodeLHQi3itA9ld5a3qZgPiKdWj7T45r4xlcuS10ZWrC68zhH0LZdAmwPU74HpMzGA63cu2mURw+NxV/ltitsRiiM9K5vgAbjgPe4dzHqBXhDYSA==; 24:0ZBB7Dbc7oBBkjVcsCMZOPpQViZKlB5V5x5eBvEshpRqaOlTXR7qC39WExiElzEfAxTNgdmR+ue3d0BkSWmImMxVVWeoHjQ/3Ykdv6R86+I=; 20:4Y34sMwQnwT0WOLl3xQqsA+IzzVo9DmxGhiCXp2d+aiXprHZcjLtsAUiu5nAzdDhQCp4s8cYUzlDcmAp5kyZdw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2015 16:32:12.3871 (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: SN1PR0301MB1648 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1614; 2:SiEwKHTw0WMZ+Hht31WjmCMsoDEzhlQ16cm/YFhPuYf8RQbO+FwSb2JwajlbGRMkAdgORb9kUg6Y2+11wEEBhlaFNVZeXFmdN4Lf2MyCTjJ5lvKDdDnfZcz7x3BX5RkVYVhMlAoX/T5luznLNGXVJy495fpqLB/xcSsyMVuysqY=; 23:nvJyWubzz0cZz7w0UM16CYzfj9SUKoSKW3Nq1doYeXx6bD6JhZSZRWYrReHXewL1YFgULfWvOarfOCih14+G+ho8jWrX3oQizJgUt7QA5kOt/oXQgsJkYkILCd+gRzvyXkjMxlCKKw5BhB9BmO/iidLXoVvHLXEATsD26qsY593HvpgVTMnaYIJWyecV62t4 X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150918_093238_789236_91926F42 X-CRM114-Status: GOOD ( 17.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, 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 Changes for V3: Add shared input select register notes Changes for V4: Resend .../bindings/pinctrl/fsl,imx7d-pinctrl.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt index 8bbf25d..19697bd 100644 --- a/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt @@ -1,10 +1,33 @@ * 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). While iomuxc-lpsr provides its own set of registers for +mux and pad control settings it shares the input select register from iomuxc +for daisy chain settings, the input-sel phandle and SHARE_INPUT_SELECT_REG flag +extends fsl,imx-pinctrl driver to support iomuxc-lpsr controller. + +iomuxc_lpsr: iomuxc-lpsr@302c0000 { + compatible = "fsl,imx7d-iomuxc-lpsr"; + reg = <0x302c0000 0x10000>; + input-sel = <&iomuxc>; +}; + +iomuxc: iomuxc@30330000 { + compatible = "fsl,imx7d-iomuxc"; + reg = <0x30330000 0x10000>; +}; + +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 +48,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 + >; + }; +};