From patchwork Thu Sep 24 08:29:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongsheng Wang X-Patchwork-Id: 7254371 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 98921BEEC1 for ; Thu, 24 Sep 2015 08:38:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A66C620987 for ; Thu, 24 Sep 2015 08:37:59 +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 C15A32084C for ; Thu, 24 Sep 2015 08:37: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 1Zf20H-0002V4-Up; Thu, 24 Sep 2015 08:35:45 +0000 Received: from mail-bn1bn0103.outbound.protection.outlook.com ([157.56.110.103] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zf20E-0002TU-Rf for linux-arm-kernel@lists.infradead.org; Thu, 24 Sep 2015 08:35:43 +0000 Received: from BLUPR03CA010.namprd03.prod.outlook.com (10.255.124.27) by BY1PR03MB1484.namprd03.prod.outlook.com (10.162.210.142) with Microsoft SMTP Server (TLS) id 15.1.280.20; Thu, 24 Sep 2015 08:35:19 +0000 Received: from BL2FFO11FD023.protection.gbl (10.255.124.4) by BLUPR03CA010.outlook.office365.com (10.255.124.27) with Microsoft SMTP Server (TLS) id 15.1.274.16 via Frontend Transport; Thu, 24 Sep 2015 08:35: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 BL2FFO11FD023.mail.protection.outlook.com (10.173.161.102) with Microsoft SMTP Server (TLS) id 15.1.274.4 via Frontend Transport; Thu, 24 Sep 2015 08:35:19 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t8O8ZEvD022238; Thu, 24 Sep 2015 01:35:14 -0700 From: Dongsheng Wang To: Subject: [PATCH v3 1/2] fsl: Add binding for RCPM Date: Thu, 24 Sep 2015 16:29:13 +0800 Message-ID: <1443083354-37369-1-git-send-email-dongsheng.wang@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD023; 1:Yy8mFPhXpcUoBMFxnFabtuSkRbqkVt6BnMD6GNF3Nio3Ftlg7RCs6cPHGO1Ds6yWz7E4pLkll7JosnjQYKkhOLUCUOltgKrtYPA7wm5JAOHrjQifkGc9NJxL6SFHxydZToaOP7Vn3+JKyrbyprXH1tzB8DjGaE85D0xE6L+c0MHHvN2cZK5O5TUnRhoOiYsNncF+Yd1m9wZpIqe2zFUPkcMz9fGr4hk7/o8lZo4AlJUBALeuFmhOzJwc8Veiq6BvPVUCcoTTtPToGKC0EbjSwV0TrmY9BTMb+7hfA/Tfr5I9lTrQyRJghVzV6xNa0OzSn/XtukHjOoykNMnqoAb6mlaGa0/bN29pf9bKQWbuPHQRxCPDWJXtLr3Aq4QPFxz4g8pQBUT1Ir37xPxC/8yKBg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(77096005)(92566002)(87936001)(46102003)(97736004)(229853001)(64706001)(2351001)(81156007)(2371004)(68736005)(47776003)(5001830100001)(36756003)(5001860100001)(4001540100001)(62966003)(77156002)(6806005)(4001450100002)(48376002)(106466001)(19580395003)(107886002)(110136002)(5007970100001)(104016004)(189998001)(105606002)(85426001)(5001960100002)(50466002)(33646002)(50226001)(19580405001)(5003940100001)(50986999)(86362001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR03MB1484; 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; BY1PR03MB1484; 2:t86JZAaVSASrK0qP61bupu3N12CtQtjLwHb9WKgAW7EO0tLVxEBUcAzXTmo6bCQ5lqD8JcTFG5h8EqzaNlbaFyegxLaysU8JLHfHUGuU+ARRAHfXoDIuQZx1l1LfRuT9g7aVqH0MGDZMkjIhAdLUjJqOwrnuzUeifsiX4ZOf3fU=; 3:2jQzIXbc4p9ThhiVYtMA14fSDQSj8S5cQcqD7pX7ui5xfT+Dyiefp6r8dc7MCJC4/3JaG78hqbmUi5LpbpVmggvue3GO1pHRLmc9zkx2nbuPMzLQLAkelr6RaKeomTyuI1k0To9besv2sY3AIIpA3tl7LVYUqysmZM5KGavjcBRdPcWXpgvw/sDoi3czh2i7qLqAhIQ44vbf2SBa3ZHts4CFkk4yDpsp6MF3P3uTvqk=; 25:B4qF7EBmgLbBmfO3F0rMF+F44PVNIotIKzTgSNqdzj02D2nmKHGC9fagrQgalgQ4fdIgtw5Hplqx/nZCl6lOPSp5kt3TRCtVQw+bI0otdCHCYcdhs4taHa2LaGOvAB0rbAV4Hi2RW2QzkmqLB1T6Us3LOvYkzJeNgqf3bUo9Id7CmkXp/GPBn8xq/Ss9rlOc8FpNyHTMW/Os2W9T3V42L9L8xUOgrH51o8TyLKu6jZHhK6AXm+ZbxndhZls3xNlKq+wFNygWREpQhA2up1fbQQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1484; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1484; 20:j/T8PevFN12ByiQzDEgXzZ2meGuJzafZ0q7kfBqzQ7IHztlceO/KYGPxVH0NjYZqclsic0bSlR0ePH9ctUx5MS0z5S09ogzmfEs0l4EkLLXP8VPO43NrrS/WmudRhr4+/IK3O7YSlkSIXyVnMtr9sbK1iSAPe6+6BggREelx7w4yUHAfGr8teEvWHDbiW9+KPUMyrYd7R9ORFkHl039pq0BdXRvCqWnFmPm0wKgpDjRb+eI6ncDkP+fSKpYirn/qeeeSsIRhG0H9jbObWbA0UhOZYb/UYwABIbujfpmpj/mYFXeW1ehU/uB1DJO6/DeOFAFNFKvUe7Z5tTkYKKHBKjLANK0GJ2Coas7VjWTECtY=; 4:UzYn3+u4+0cogLKUNuf6C/DtqLMDoKk2KTf/91/aP9jUOYqlkPkegy0/CQSGmcSN72wXtwrKMUfA5IgRsYvnf6z7hYQZn+/5vV8L0aHppsm/WwOLfiB499ODQnU4hhDbvUjpRmrYWN1kVhEg/1ZdkDpTuDX+YEpSOpyxYMm1BWxfxGRt3i1SWrLWhAKvhWbRazIGUrAzGvkGftowfsSfLrQpuXQTaIW5zGU+6K35RY5QnzKUxPFV3Au9qBMIMnUM5MxWDyMvAHxfM5xPezPpJR7X5NOUR+q65jKoCFNVMKbi9xiARhRifDeLwoPzCMgSarsvty7c1bBqNKTMwGCpXRtolaI04DuvGo1kj04dWJk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001); SRVR:BY1PR03MB1484; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1484; X-Forefront-PRVS: 070912876F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1484; 23:xJMKwqxcZGYVrs8ymkbE5R/O180EQq9QvXaiUY6XB?= =?us-ascii?Q?l60wrho7GFVTiHmU90MRSnEmk/4cw+B1+LEme8GfBc3PBMMdwNT7au+BYvnz?= =?us-ascii?Q?wAptHiQSU3Y+ae4szJlxQdYKa7QaMAny40AUNe0f547YJzbQUeBQfbwQu/JL?= =?us-ascii?Q?HbgoLLyOwTeXc5L9Rd1dwYK10gwxuV4uOGFVlG6xV/4ERXzkiZ9zo+uyFpI3?= =?us-ascii?Q?K38hTWdPGx0ezuxKtnw/X+PnDEKT2dKsBd3PNOxew1pKs4hXOqliJSjJONAK?= =?us-ascii?Q?72PsPxl+FsyXgzt9635SJ1u2eS59J+ure/E80wEsuQyieSzxSv4aM1QFKT/e?= =?us-ascii?Q?+2T6RVKoDyT6bbpu2Om+lc6fP1n0iMf8vCXxyAb9LMsfNYSNrXFjhcOmJo6j?= =?us-ascii?Q?r+RW3gak6CCwDs/PWANbeyRlq/C6j3td6k/gsaYDGWK4kThWHoafSH2IOkAI?= =?us-ascii?Q?TXBSgfCjL59wh8Osh7A11h1PV6jPq0i7RpgSyFqyT2LrhV8INtu0VNX5mt/N?= =?us-ascii?Q?Af4vNKwVKUZlyCL42e31DGB38wqPACaTVgopZb6/YnxkfKQcF9VWS5zA9ZAE?= =?us-ascii?Q?ygYFxtOzoCmxYa9QhoKvfyvSbUMpIX66ZXqKXaGnEP01s7GYim7lEBKbrFRv?= =?us-ascii?Q?Y31MDx8auy1s+B9uKR/YPm5ahMNv1tn+ow2aChVMc5QLfhARB/UOMcZ5nXFn?= =?us-ascii?Q?F3X28AjBHkVuuJmyFyA0P+WaV8e39FPIH/cRwG8gojauMd6brOse6f7PZhxi?= =?us-ascii?Q?8m+FG49Mz9mpaZZ96RMtBsdr3iY6kgj1WUwaVD/h3yrK/IlVbC6aGxZ72jvZ?= =?us-ascii?Q?nr2j9ETGuyuusHdlQ2HNZOywMY4AxPl5LpfzzPtbhXcUO3VIGSjdSAecIkT2?= =?us-ascii?Q?bzCiCaKITDDlHHUTt4+ptgU8EcjcaLWCgnYekJg5bcSzak7WTSHwLig5rAz/?= =?us-ascii?Q?egkXgJwHMfsDx1gKS8GeVmo43fLUL8Pa4+K7na0vH85lPad9T4Ttva53vbLd?= =?us-ascii?Q?z3RoGbdgIy389DVd4vTgvWMJY7vu785w5uuXtqNUYn3FHBR+hLgdNnb73aR7?= =?us-ascii?Q?GtZ/A0p30En6p+1ZDbOBwdOgIx8XZazohfqyiitIv7j9p5M4RJMeZTaegilx?= =?us-ascii?Q?iwCknORmu/VblD1Qr1eKcQa7Y5FKhQn/PmhPOkezBKr2JJ7zsWg8PlSPNKFN?= =?us-ascii?Q?+pnhYeo8iz405mWyAwFoBS8jgxUHr07GsyfIPlyQgxay6YaQMv/gQi0iNSji?= =?us-ascii?Q?ZIkFie1GNJ2NmZml7c=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1484; 5:l6DtuSzmX8V+9AB4O8pk9mHHPDCu7DHDrCAqlUZp/IMchCSIjLftnvP8/TpSHB0IMZMWgFz0JNrq9aIlrxif7bvTKnSRHLL+3douzjBlsmjwqNN1jvuZdtVZK4RERrMh5ONhe8Py6NpU0w05s+6VSg==; 24:ijB9nQ9I2hf53ROdQ7ML2MYf8zM7WNpnSwd5qkK+Ww+nK6ONFxoB0SumjCRSNC4eYVm64Tu+m3dTSPOg0etwNFZYaMq8QiYWMcaxfpz7FEo=; 20:AK463SXchScx8wCSa8Ym5UZkjiV4Hb/rwUeNS5l+NsoJaFQEDbHWx5Ctr4hMbi8Hw5WJe6kL4rfb9LU+GwkR4A== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2015 08:35:19.0774 (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: BY1PR03MB1484 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150924_013543_205749_75B4E4E2 X-CRM114-Status: GOOD ( 19.51 ) 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, Chenhui Zhao , alison.wang@freescale.com, linuxppc-dev@lists.ozlabs.org, Wang Dongsheng , Tang Yuantian , robh+dt@kernel.org, jason.jin@freescale.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org 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 From: Wang Dongsheng RCPM is the Run Control and Power Management module performs all device-level tasks associated with device run control and power management. Add this for freescale powerpc platform and layerscape platform. Signed-off-by: Chenhui Zhao Signed-off-by: Tang Yuantian Signed-off-by: Wang Dongsheng --- *v3* - Add "fsl,#rcpm-wakeup-cells" for rcpm node. The number of cells correspond rcpm-wakeup property. - Modify rcpm-wakeup property description. *v2* - Remove P4080 example. - Modify rcpm-wakeup property description. diff --git a/Documentation/devicetree/bindings/soc/fsl/rcpm.txt b/Documentation/devicetree/bindings/soc/fsl/rcpm.txt new file mode 100644 index 0000000..52110ec --- /dev/null +++ b/Documentation/devicetree/bindings/soc/fsl/rcpm.txt @@ -0,0 +1,63 @@ +* Run Control and Power Management +------------------------------------------- +The RCPM performs all device-level tasks associated with device run control +and power management. + +Required properites: + - reg : Offset and length of the register set of RCPM block. + - fsl,#rcpm-wakeup-cells : The number of cells in rcpm-wakeup property. + - compatible : Sould contain a chip-specific RCPM block compatible string + and (if applicable) may contain a chassis-version RCPM compatible + string. Chip-specific strings are of the form "fsl,-rcpm", + such as: + * "fsl,p2041-rcpm" + * "fsl,p3041-rcpm" + * "fsl,p4080-rcpm" + * "fsl,p5020-rcpm" + * "fsl,p5040-rcpm" + * "fsl,t4240-rcpm" + * "fsl,b4420-rcpm" + * "fsl,b4860-rcpm" + + Chassis-version strings are of the form "fsl,qoriq-rcpm-", + such as: + * "fsl,qoriq-rcpm-1.0": for chassis 1.0 rcpm + * "fsl,qoriq-rcpm-2.0": for chassis 2.0 rcpm + * "fsl,qoriq-rcpm-2.1": for chassis 2.1 rcpm + +All references to "1.0" and "2.0" refer to the QorIQ chassis version to +which the chip complies. +Chassis Version Example Chips +--------------- ------------------------------- +1.0 p4080, p5020, p5040, p2041, p3041 +2.0 t4240, b4860, b4420 +2.1 t1040, ls1021 + +Example: +The RCPM node for T4240: + rcpm: global-utilities@e2000 { + compatible = "fsl,t4240-rcpm", "fsl,qoriq-rcpm-2.0"; + reg = <0xe2000 0x1000>; + fsl,#rcpm-wakeup-cells = <2>; + }; + +* Freescale RCPM Wakeup Source Device Tree Bindings +------------------------------------------- +Required rcpm-wakeup property should be added to a device node if the device +can be used as a wakeup source. + + - rcpm-wakeup: The value of the property consists of cells, the number of + cells defined in "fsl,#rcpm-wakeup-cells". The first cell is a pointer + to the rcpm node, the second cell is the bit mask that should be set + in IPPDEXPCR0, and the third cell is for IPPDEXPCR1, and so on. + +Example: + lpuart0: serial@2950000 { + compatible = "fsl,ls1021a-lpuart"; + reg = <0x0 0x2950000 0x0 0x1000>; + interrupts = ; + clocks = <&sysclk>; + clock-names = "ipg"; + rcpm-wakeup = <&rcpm 0x0 0x40000000>; + status = "disabled"; + };