From patchwork Tue Sep 15 08:55:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongsheng Wang X-Patchwork-Id: 7181071 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 906F19F336 for ; Tue, 15 Sep 2015 09:04:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0263D20650 for ; Tue, 15 Sep 2015 09:04:16 +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 D1EAB2066F for ; Tue, 15 Sep 2015 09:04:13 +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 1Zbm7v-0006uz-Nv; Tue, 15 Sep 2015 09:02:11 +0000 Received: from mail-bl2on0102.outbound.protection.outlook.com ([65.55.169.102] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zbm7o-0006FH-84 for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2015 09:02:08 +0000 Received: from BY2PR03CA055.namprd03.prod.outlook.com (10.141.249.28) by BLUPR03MB294.namprd03.prod.outlook.com (10.141.48.15) with Microsoft SMTP Server (TLS) id 15.1.268.17; Tue, 15 Sep 2015 09:01:41 +0000 Received: from BL2FFO11FD035.protection.gbl (2a01:111:f400:7c09::151) by BY2PR03CA055.outlook.office365.com (2a01:111:e400:2c5d::28) with Microsoft SMTP Server (TLS) id 15.1.268.17 via Frontend Transport; Tue, 15 Sep 2015 09:01:40 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD035.mail.protection.outlook.com (10.173.161.131) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Tue, 15 Sep 2015 09:01:40 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t8F91X6O032223; Tue, 15 Sep 2015 02:01:33 -0700 From: Dongsheng Wang To: Subject: [PATCH v2 1/2] fsl: Add binding for RCPM Date: Tue, 15 Sep 2015 16:55:38 +0800 Message-ID: <1442307339-15225-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; BL2FFO11FD035; 1:wCTWWXdfJ6OtD95Xy0DosrEhBoM0XKzWKyIvUGqhC07m6X1nhXR6JOzceAPrJ+xYS+LxkLA7zNAdaNtSMMONgfi+V8fx6HDS7JibL7+KK3phcO6lvS5ksR2BtLjddCJcIQL/nY0S7//cZNuo4K5QtF579qjcSzu5uK6YA6miDFifk/TlXdkq1iemPeeINlKtAboHGJWE8R8QLjSuRdH/i92yhJlCs/gf6MTmGRqAJ0htWaTgmwGCr3ylhZniUJGfaxwWkidMh4/nmmWunPaiDg40n4zK2ut3Q/AVuEaNIKOWwvI1JlX1ULnlfbgdhu+E18JFBG0s6ICZ+yOPJ+B1XoudtGLIqU7s5sQmMenWd+vIDf0kAANThqRbK88MtYQ0ItWxKcebR+lCaaUIVLWyUw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(50986999)(33646002)(19580405001)(69596002)(48376002)(6806004)(4001540100001)(86362001)(50466002)(19580395003)(50226001)(87936001)(47776003)(85426001)(110136002)(92566002)(229853001)(5001860100001)(104016003)(5001960100002)(107886002)(4001450100002)(64706001)(2351001)(36756003)(189998001)(11100500001)(46102003)(5003940100001)(62966003)(105606002)(97736004)(5001830100001)(77156002)(2371004)(106466001)(77096005)(68736005)(81156007)(5007970100001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB294; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB294; 2:hAqn/2y1gnUwRjP34FWKz66OWARnQVo9L5m9BlePI8OzJDdEQWsNqVSSgfhqgKrEIucL8CVypH9SUTLA9CKGDHg4uHaBZutsM7oMtLcgF5QiZ/sqUZwqPVCv9fzoxGsit5COAKBcAGiLdq3AulKlf9JbbjD0LTaIt7jSXa82jQ0=; 3:eiUYfFUMOpXtfuWYPrYTOaxxVKw7dLwAMkqGdsVp/CPqDSaTHS/moUxACROXCQwDsUYKhZ7tF4rcy6kB/GtgiZ8RagP77fCc20fEaYjPyazY519t4iue4jbhQddRO5F2aN7+6bkzfFv51CXcs/z3nCI+SfQzWb0KIZEX6jsO1P830xYl/6T7pxtKPvPH2/O8xEpxa5W9YQCXwYNfyy/y56KtFKOW0EYymct9lZnPeBA=; 25:amVSo2Rivy94XhVPR1aco85hTHe6+0snPitrm1594KtfkTaz2plCcJ+X8V16phaxOy7dLuB47lnCf4+g5pTZZlnC9TEcZgsxFCG055SIMNyUna3fY366ts1/flUO261/XSnRy82UzWbdXdMRsW/DBY1dmTKtX8TkbwavasEJMQ2yjRJ0L+wlR9d7pHtU9Ad418XrRIgkpiuj81ucTFErQmFf7xz5YZHoi6zXX8oYQSbfDTUz/Hvk7lAX/kw0To+cJMxXn1fk62qS+RAB1qweYQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB294; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB294; 20:Oh1DIFER2e1YjVIQxaxjSalFTD3kMZf99Em94T2ChhiUTz6IdC5equlDPdx1xjAq3fgi10EbX5SzWMgrJHH5vS+G1cWqIqN3qb6HbIkWUff+2QFtb8nBX95ktPKT9s6yaQwvs31znXeI+h2Wt7Ud7YH/AbLKkINFvI0x9YVE3eBSxoLYClaGlnHtVGlEaPzOpKofgtAF88hPcLOrxHaQMWMYyTEHLreXv1m0EF6CncsEtq6Ak3c9XxxtN1a9i5ViKbfwksCVm8PoFi+b32f1LdUj73ox1+Pw5Cit0Hw4Jda2qPslkkdyc2GPc7sx49XzNs8XN7yfiUTrb8ddC235NpKE4bsZFmfojSLHQ4tB6jw=; 4:SjulAk49DLIhuEg7Hk8DxplQxDM5J2enZB6l0LO78mQjifQMWeBb/+2CDQL0Vg5RdZ+PwznaGh4Hi3RZdoRjo2APAjcsi5gVcw7OLWYc/NTu+n4mJKG42qpOJc9JmaVIxxwd5G+wKlAZgDTgKeMo3+uA/QqVw4REf4TfQTNvjiUmcmdjFZFQTS9YwCQufcBF+zwQAepqPMVvWVIcvjyBZdzQoPn3UyXeLvT7O3Ra5S4SnmQpx0LyTKe01jo5Y0yVuJ2+vN+OeRQaaoU7kmuTPAG/PCSWyGozhU17lAqZpC32t4+46VT2EU+aSss1fkIyl2AJm1QQHIGPEhsKLiDZ9xbmpxcfBfza4w66TkRXikc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(8121501046)(5005006)(520075)(520078)(3002001); SRVR:BLUPR03MB294; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB294; X-Forefront-PRVS: 070092A9D3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB294; 23:7Ll3dNwwwKXRQnUYmp58x1QVmsuEyfafM8oCvhcxrk?= =?us-ascii?Q?5obfi5SYxlxJGt3OEaCiMEQe/8RzHuKfeSbnjDnVBKU8SLyJfVaVP1goTAmH?= =?us-ascii?Q?viqnjlunAMmPYJYpGegEY2+BJpV1nhb5eVW08UL+HndguTxsHwLYehtf9CM6?= =?us-ascii?Q?rY89Z60G9r2UVh4C413caZmqSo7MMVxknZ/3V911dB6TI1NktbR5We5iDFe+?= =?us-ascii?Q?0UObqkErgFGVfyt1dTbJ2K/GjN0y5bbhkX99SeBfzCwm0xaUo2SXPlh6BPas?= =?us-ascii?Q?Dz4VY9m66E19CVOx2TltQqKahv0TL1GuTTZ9PeoeE+a2Oy28WsDJkFv5cRgN?= =?us-ascii?Q?pwOFgCKTGpZ4W753djO6DgUD5MzL1ZJefIhTF5yGDqX+qGwSn8HrrRrAIcv4?= =?us-ascii?Q?U03H3+Wl3ttgVeNnw7EDkU6xRbh+dBMkAEQUhlHwZwGf0BpWnqZ9EvRgNvGM?= =?us-ascii?Q?bYSD+PNw06sPxE75AKCKFC8f3VO+m06c9vaB2cwjlEChX2NHCweDFUVwX2AN?= =?us-ascii?Q?OR2YZNuNACNCgIlfSXPkf1YyyDsz9hzGh7b+cB/87qUUlk+mUPXZ2Ypuoh01?= =?us-ascii?Q?BZVEvfSgchGyJinOXzwbydq8bzlqaDUltqXKSSDJd0uLvjxDbKPXMrMXG+x5?= =?us-ascii?Q?Uw1TefSLnfFGzJRZEcLwu4/cI2ltbijoVsE5NmILdVO8AHfWqqCLtG03MAEs?= =?us-ascii?Q?83brCxRAhiiqa0qTB6oBbtIM8WSmhUljHHpt3oqpWiSye8CcmEwdI0C165zU?= =?us-ascii?Q?r3VAied6Ingz7LWxDYmK/yIAVp8sJdpOkbFJzHXq5kryptFATssxMj0JRl+w?= =?us-ascii?Q?GP9rW5bVYKrnvk0CJ+I2w3IsmGL9QUa3ScPliPK4pUN3VHhJ5dNEPqboS5ZL?= =?us-ascii?Q?k8JCjv3BOi42QrPIZ/zxvZNVKdD/KhSar4dCR+JIlnPIhufBUeHZcYPqcN8D?= =?us-ascii?Q?r5nRYZiOS3n06CS/AzW21EMtjst/dpduVwfvfOAQGZA8muBuVwf0PENRd8l3?= =?us-ascii?Q?LR1pZoC8DECbj9qTkHM+/Rsye5iyqtg5CYRpO4csIhS87C3JbPwxi5qDrGqJ?= =?us-ascii?Q?12CAIaTMrMWYC9lSLKlfPWzeT4xmeA0dXCySrcHqFddGvVyCeUL38aG/z5I+?= =?us-ascii?Q?GbtlosRUnO44cEEkGMLPVwdGDKk2z8EcqMhlJK902TIcP5UtFNAf7pSmX3sQ?= =?us-ascii?Q?LJhrFz0hUo95VKiHjpyz3mukbQHu32mhnoUcOY1qw5HKFeOpqokCuDKN0hgK?= =?us-ascii?Q?wvmktjhEPGDkgUPbGLn+LAqalt5tZgHzY3USWxxXqKuJSxKeCg62tU+T1h2g?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB294; 5:V11UZ+Bb1aH79kQ0knzxPosZbrkUNxbvb6RgA+9g9Dv2sJxeGUMXeMZs82cMbTPt/8gI9R/uDmepWtzN2EPq87BsUOIIuXnw3AmMXATGdcApQpGfwWu8yY4CLn6zUXxAUMxIBgv6aPSyNB24XWQbpQ==; 24:VjdBkRQK3EGTJPBi9+SunSrZxtJdi5v27h+56rWo8/7IHpQwBaKNTXISY2vBzuCgUzPxs2aifc/tsFtsrQVSxdPiSfHc/33axd6za6wkFOg=; 20:od7B1Mlu5Hp38IWqQF0itWlXW8I0k4ZBFhmXPy0uFKH8GvChdnRrf6qSlR0kknSUU1gNH+sSqrVWnyIaunl7rA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2015 09:01:40.0446 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB294 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150915_020204_624129_28675149 X-CRM114-Status: GOOD ( 16.20 ) 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, Wang Dongsheng , Tang Yuantian , robh+dt@kernel.org, jason.jin@freescale.com, linuxppc-dev@lists.ozlabs.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, 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 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 --- *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..ea24d76 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/fsl/rcpm.txt @@ -0,0 +1,60 @@ +* 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. + - 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>; + }; + +* 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 3 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 last cell is for IPPDEXPCR1. + Note: If the platform has no IPPDEXPCR1 register, put a zero here. + +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"; + };