From patchwork Wed Sep 9 06:42:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongsheng Wang X-Patchwork-Id: 515713 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46FAE14076A for ; Wed, 9 Sep 2015 17:04:37 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 2CE951A2CBA for ; Wed, 9 Sep 2015 17:04:37 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0142.outbound.protection.outlook.com [157.56.110.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id DB1501A2ABF for ; Wed, 9 Sep 2015 17:03:35 +1000 (AEST) Received: from CO2PR03CA0015.namprd03.prod.outlook.com (10.141.194.142) by CY1PR03MB1486.namprd03.prod.outlook.com (10.163.17.16) with Microsoft SMTP Server (TLS) id 15.1.262.15; Wed, 9 Sep 2015 06:48:45 +0000 Received: from BY2FFO11FD053.protection.gbl (2a01:111:f400:7c0c::189) by CO2PR03CA0015.outlook.office365.com (2a01:111:e400:1414::14) with Microsoft SMTP Server (TLS) id 15.1.274.11 via Frontend Transport; Wed, 9 Sep 2015 06:48:45 +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 BY2FFO11FD053.mail.protection.outlook.com (10.1.15.190) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Wed, 9 Sep 2015 06:48:45 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t896meFv007875; Tue, 8 Sep 2015 23:48:41 -0700 From: Dongsheng Wang To: Subject: [PATCH 1/2] fsl: Add binding for RCPM Date: Wed, 9 Sep 2015 14:42:46 +0800 Message-ID: <1441780967-30879-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; BY2FFO11FD053; 1:iPlrjEl+Yk1uAd4D/9XK6EJN8FXjsSnKKXO0bxuh+WJoACrR43qrXwYoJgrvh397xkB9b6d5h1BG+8TnVNNr4vtDBPdIPBCM4EJ8Uk8Qg5XnsGiYr1Ez3julPqFlv5UbP/obxhYxDYVP7TGSQgXxsyhhuzOC2Lbv68I3AWnJZhqGi+1PkbEug8PWhDjnehZK6YjxHQil5OrDm0GigH3SlmuUbHeVp5kS5Sjp1u913ywltjBbJRzXLETSLEDriZlkjJP8yXGFtUNRHNumOUZvAO1K5nD3tPQ33I11GJJjLRVsSKk8P3MvqSAn0kzd/Pu0ylWxqxMC+/FDATd4EqfsFt2KD0R3T68+A5kprdnIxZfkGDWZz3/qArsoNVuYOZhq6dXXR+weKA+MXXnzgMTJSQ== 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)(46102003)(6806004)(92566002)(77156002)(68736005)(62966003)(19580395003)(69596002)(5007970100001)(2371004)(86362001)(229853001)(105606002)(11100500001)(19580405001)(50986999)(50226001)(106466001)(36756003)(48376002)(104016003)(5003940100001)(77096005)(87936001)(50466002)(33646002)(4001540100001)(5001830100001)(110136002)(5001960100002)(64706001)(97736004)(4001450100002)(5001860100001)(81156007)(189998001)(85426001)(47776003)(2351001)(107886002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB1486; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1486; 2:katzra0DR4JndB1DFUYGcuYHo7EOawOLh5XMGxME653pw3cZer5PfYUAz6p5cNVGJj71toEyc4NoI/EV5QezGQO7MMMFkUqTMbs1idKG+1t3trvv5085yPHXDdBY6PUuPQeJfpxxlwir7z/9/jAEfVTHGh/w250IuOEXqsYpzt0=; 3:eKPiIrx2Ww1U/ahEmA/mojtftXhX8pEpUUYlksstGQ2kjBsf6D5wsVDBpQmdFGXeKHf49X7qKCJ+O6+Qm4nuZsXVMuolICP+cqBaAP2tpr++FCwkIzzpkt91OUFE+IVVkN08pjeL9UEmKGbR5JhPTVLNxrHMNScKn5WpYU5acgYGTQ7evXMdajgaMzDYhCBjuPWT8C8ka0IhSsuTlV0DypZzr+iISdR/6fLJ/+uRC3g=; 25:u21b1/NPy1GPEcor0qiXyJ76WR/56/NXLekp0v6WH9fTbE3Y3faPt4Ya00o0eIl4FaWcDXaG0lrAT7yEmVz3L0qLGVeiLtFYlc8iQlW2DvtybUQGlsxO8BReZODFOO9NcCECHzAQlePACbTU2CDa48leG5qhwfWCj9paMs9zkXB2yrh2FrNhwuq9H1Bj24AdlUJhjr9z0fFGmBDCm25DrrxOPhKiH/bvK/CzwmxPMFfuDaMzb81eMxeHwOB2nbtl6NYc6jFSg9r8Y1xB1VBkQw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1486; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1486; 20:fAGqjcNdyhznWboQR7wIek1BzmJoo/si8ELVjl6DSKUJ1mqdLXCpdUuC451KIqdfxvY0bnWugoQ8KU4iIrSA0PFAlu5crwcfXis8cCeGPijWXE7vvBbhN7z4nIol0RcGCnSA1CBJ8xu8Og2KXwHGycFOl8fYZh4hOk463bDhSaEaEoKKgKjHWmELL3EKqhT/boMURTdb6JmSicv1ifAGvBoxp3V/yblPHqmolOWy2hyutiZKc/Yex+mvWkSS2hs/KFp4ZTO98n57Jer54kW22dYFH4U18RfJOXywXmiYGB5Pz2vFK+VwLdjR0MkMgIebl83b0NavEwNbIU8q8cGCCGnisTbCgo26LdcZi1kNiOg=; 4:/upPV8+n212jYJfUzRoljkNuyAuYcHT6aoqRs0L764SPbJIFp400qcXeAb6pbM++9bj/ytbw4cs4G8gk47/l4oa7pHvKXl3BzHHWbVtgVGkaLK6EcUiED0L7a7+mkLuXCzLuHPnOs0jAR6CDolsFdEP6j7//Y3R6/spIkQzt/HPpZvXzvzEKQHMT2S9WeW1vHh6LlfcW17o74u73/WKd3IJbEXkOKArLj54s6aAoYTYO89xe7TJwx73IvyFBvLeFN6RxuUl4Mo6ubBfYIN5bTiOWP2jYYyCdcVVoJ+N11XAi+Ob3RirbDTX4Jb9MaZZK X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:CY1PR03MB1486; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1486; X-Forefront-PRVS: 0694C54398 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB1486; 23:1w0zy4heoa1i9je2sim907xxgbL3K26YYrgwC0UII?= =?us-ascii?Q?mg2/GpU9zvnsfi0EhRdzWfSokK0t3/TERGDGtRoOVfyM0w87HCriOIRbyQvI?= =?us-ascii?Q?jKAwAvwT0YMGDLKEX1Ct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ascii?Q?hSAshmUcnfvP1KOo/9I5mKdl0GsZpZPc1r4lNN6UvUAOBaJeVr56qdwLHSKF?= =?us-ascii?Q?qcDsMSCCY3tC2SJlbatQ3p7nY8tXtMJvosKyJD9RJK185qOhkN/p4F2kepbm?= =?us-ascii?Q?wvtrF8WpPR91fnxgypyoCNhLYo2NY6zID0UVY/i3dN3HgReFmS6khwDQSfFm?= =?us-ascii?Q?+PjgZZ0UVYK+IKXk5cRnh7wO81otmJtkNkF87NMnl3Eqgh1L9gZIkqNsjq0/?= =?us-ascii?Q?hLV3/j0Z4DYpVNviOO0ZmwBUbafgiu1e/xQtrZF3mp4x9XXBOGeipS/GDnK9?= =?us-ascii?B?UT09?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1486; 5:tG0fOjLpzWW1fMVMEITU+TCTePYNMScj6PeaBYP44j9gOcNF47pZYHYc6DdKJBUNKyEb+EE4ysIe8utO+28fEnt2KcxKUtbpMIfYRe55tT+fANrgTC+FPJpFEmDKOwc8bheSqcjC5Leqd92QFCWb3Q==; 24:T/D94m9qddW6wSBa67LCAyUMPVEFCJ67KUF5L0rxVGiaiNh51N4Zt+gUGMbMgrfE9kAXWaeeC8emUrJjNiUV8tNjEHNFYQ+zF58ziISCEyU=; 20:OKknJ0uOe7pYMmLsWkPWeEENRobGi2feDrcl4fSYbQaGrM1z8g4/lKGLerLNmKMbwgZmDfLMreak4ZmIKmGxww== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2015 06:48:45.1433 (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: CY1PR03MB1486 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, chenhui.zhao@freescale.com, 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 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 diff --git a/Documentation/devicetree/bindings/soc/fsl/rcpm.txt b/Documentation/devicetree/bindings/soc/fsl/rcpm.txt new file mode 100644 index 0000000..284070c --- /dev/null +++ b/Documentation/devicetree/bindings/soc/fsl/rcpm.txt @@ -0,0 +1,64 @@ +* 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>; + }; + +The RCPM node for P4080: + rcpm: global-utilities@e2000 { + compatible = "fsl,qoriq-rcpm-1.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: should contain a pointer to the rcpm node and the + corresponding bit of device in the register. + +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"; + };