From patchwork Tue Nov 24 06:52:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongtao Jia X-Patchwork-Id: 7687931 Return-Path: X-Original-To: patchwork-linux-pm@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 650A69F4F5 for ; Tue, 24 Nov 2015 07:22:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75BF620839 for ; Tue, 24 Nov 2015 07:22:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD93120849 for ; Tue, 24 Nov 2015 07:22:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751485AbbKXHWe (ORCPT ); Tue, 24 Nov 2015 02:22:34 -0500 Received: from mail-bl2on0103.outbound.protection.outlook.com ([65.55.169.103]:24881 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751116AbbKXHWd (ORCPT ); Tue, 24 Nov 2015 02:22:33 -0500 Received: from BLUPR0301CA0012.namprd03.prod.outlook.com (10.162.113.150) by BL2PR03MB147.namprd03.prod.outlook.com (10.255.230.19) with Microsoft SMTP Server (TLS) id 15.1.331.20; Tue, 24 Nov 2015 07:22:31 +0000 Received: from BN1AFFO11FD012.protection.gbl (2a01:111:f400:7c10::155) by BLUPR0301CA0012.outlook.office365.com (2a01:111:e400:5259::22) with Microsoft SMTP Server (TLS) id 15.1.331.20 via Frontend Transport; Tue, 24 Nov 2015 07:22:31 +0000 Authentication-Results: spf=permerror (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: PermError (protection.outlook.com: domain of freescale.com used an invalid SPF mechanism) Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD012.mail.protection.outlook.com (10.58.52.72) with Microsoft SMTP Server (TLS) id 15.1.331.11 via Frontend Transport; Tue, 24 Nov 2015 07:22:30 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id tAO6xofY022023; Mon, 23 Nov 2015 23:59:55 -0700 From: Jia Hongtao To: CC: , , , , Subject: [PATCH V4 1/5] dt-bindings: Add QorIQ TMU thermal bindings Date: Tue, 24 Nov 2015 14:52:44 +0800 Message-ID: <1448347968-37766-2-git-send-email-hongtao.jia@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1448347968-37766-1-git-send-email-hongtao.jia@freescale.com> References: <1448347968-37766-1-git-send-email-hongtao.jia@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD012; 1:u4m9Ypw5D7uewv6/k/x7H3iSN1c2hep/hJQWn3LWIcFtoXfqzAqMB/AW03gpL9D/CtpT4OxaV3SZTznmjxiJ8KvMxzjCkzohpg7NLltlUkofCMPI5iFbskiAY2PPGvhobyOtEYEmbL0MM3rMh1FwSM/MZcKfvOtz7MesTQxSKI/fJkEdh8ukKnoCmM52a7WVjmmOtLN5qLC/E/ckF4VXXN3M9f29zSyslPhFODW6nKXnjeHMJb7RM6Z2Pl150DpMT4wyvq90FGhGkkdzv71bo6bBRmLtET84aPIQKYNKXW4GDPbZGj/YWE0ffo/V6/8lU5AC8EoPjjtwwZjXspCs3q+QlNjmYBZqfGpYTFQYKUGciSdBuK0ji+DwnMcb4Ae13+nSR7z9XigLmF7+HFUOZIRCFR2q+ndyHKDqusldArk= X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(189002)(199003)(87936001)(92566002)(11100500001)(5007970100001)(104016004)(5008740100001)(6806005)(5001960100002)(97736004)(81156007)(85326001)(189998001)(107886002)(4001430100002)(69596002)(19580405001)(19580395003)(110136002)(77096005)(106466001)(2950100001)(2351001)(229853001)(5003940100001)(33646002)(47776003)(586003)(575784001)(86362001)(50466002)(48376002)(76176999)(50986999)(36756003)(50226001); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR03MB147; H:az84smr01.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB147; 2:GNmM1ea8ZEQjGGQVqAmeC3JI8t07/xQxkOQ2tEV78peQAvWMpjQx0ZudtiG8WfB7LLknrXsRuMUj1na6Eug4Po2IGiRm12GcI31HLqwsdq7RTdg9TGhVYUEyP5Z2a+kzPGmcNyrcXacwTJRYZJXVVA==; 3:iEoMxrwiAwqgbb3oUgfNMlHVsGln2eX1DwrGLM55+iz1pB7w8TkxWr2IJxJLqwD7/9Meq5/JYYFBT1rDFcfkid94vXPSHcYllemmMCKAl8XVil6PfuEj/q+n75JLCr/sz+cRcKY9VPU0mlA4utWGUi7AHE+a91afeO+H0HyepvDfuKZavPRVsmL/U0geBkRTovvd9cpynCKhKZtgmPpZ9bGR8a7al2oYSnjy/TRnxWM=; 25:n8/7vTqrErWL5WgwFp76gJ5mLolABsSCOiB+uVd5M4ENcwu9ttnBsSlgzIsdP8+mbaeIL+tPTEsT9fD22Zm+I0EkQaOE1htzYkhXsnVl0hwO5u/XDcgVAIlR2wsIKxd0chGTnwSEY1pEt/8LGmXIkezcc2mmufY3VsQDIOutzWGteLVw3IAi5GtddlyB3jICAlv3rMlBeq/ihDV0F/5DNldQuZaKXYkHL80eAUvqJHC22JGrb67OUE8sousLnvdj X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB147; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB147; 20:N6oR+dlVgQ2Hn7/2qUZe5ZwvBBDl9HI/ir6j+IvmDeaHhIkjkl18zRrPOovf6tX7zUu6WVwf3TL5ipml6IzpWuIVFOdhM2Kqe/TsoiIZmlt52DLbosmL6SZ25lbBP1rJP54qrGeUg3sMEnL+uCLpwGTzBOY7vNJxkZtoVyXInoInnKwXZUOGCnrla+1Nm2M7TzV44tcJJlQ/BR04BWcE6oGZiGrPVB7tFJy84KnDymDtvtcTbIWdZL4Mq2sKlZr1oPfwjCR7l+OpzjGNy8wNZ+d+umhHZuNUhKziFJ5LiGiUSJ2xE1gPA/PY9/15KHhDCX8lSaPRVfc3TKE5qL+XrR1HxBvmhyIwCMooswcTyUA=; 4:6sGCHeU1B9/JXCYnurZqyhBi8gi7GcEojXiHkt4PFCPZGu1BuGAPKuynUWAhzf3soO+y56voAv3xHVYGv5H33emn69UQVRlQNIpDlBNleDqdcvNWwW5J6AKiS2VnjCfIEVPhhcbiibMaoS9lccmtZi2E1gTE4gFzzaIRULhx3aBfnMxxQ1hsP1qM2etvFmhL4YzSJfLDVga3g2VCOc0Sd8RPTdrQ1C7/dUt+AswpxYrLi2vsgMXG1M4FMd16r9f6JLzwHcrw39NKEU/fDeWOxCdVpotspwA6R1OLYZC2oCcjqHDGUZkm5vyGEliFWbOdBQ6PCPcYc4Nf7ZxoCoQ6jT3XsxKAaLutCuqN638iq51RDUXUOKyu/EBszzzzFYLbNCpctBXGi5OMPPF3wcjIsBZJSu8RVFKqzqQg3Qpp/4k= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BL2PR03MB147; BCL:0; PCL:0; RULEID:; SRVR:BL2PR03MB147; X-Forefront-PRVS: 0770F75EA9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR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?us-ascii?Q?K4vbBdU4rAnF9KWq3MFeveeFIRVa92bhY6s2ySQpinjKLGfr7hI0pvgOmUrD?= =?us-ascii?Q?7LmKvuJ6omZEEHK8Ob1YOfh9OnD4KHgFYssv1rv/mbvku4q0Vl6lLDXVyPpm?= =?us-ascii?Q?BfILHB9CMrGngStBEqopxoKFANwLCbMgugaKBNwGFm2fb4XKjUyOVwPrDwej?= =?us-ascii?Q?s90mJmVN8QnR23ulDw06vPxE0I?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB147; 5:m7nofHniTAORr9uA4iE3L1Qy+B2E4a44dJMBwAWQFQgv3iYXQvqSSnYZNEFGEGqoYGAMWfP7yqJqoJYg2yJQVsyl85iHY2FEOCFC9UJ+tJwEyaeT/COltKhhfCW0LWADIDqiPjtmoCiinEMwF16rdA==; 24:qCON+qrE0ebUDZtCl8RXNSoRJjoeY0IArIdGvsRt6sBf1N74FiyzXgDMcb1yGfvS6lYnI9oRkWbb07bjjaEMNR5EXFlJtSanejfIjEHl4GQ= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2015 07:22:30.8125 (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: BL2PR03MB147 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 bindings documentation for TMU (Thermal Monitoring Unit) on QorIQ platform. Signed-off-by: Jia Hongtao Reviewed-by: Scott Wood Acked-by: Rob Herring --- .../devicetree/bindings/thermal/qoriq-thermal.txt | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/qoriq-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/qoriq-thermal.txt b/Documentation/devicetree/bindings/thermal/qoriq-thermal.txt new file mode 100644 index 0000000..66223d5 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/qoriq-thermal.txt @@ -0,0 +1,63 @@ +* Thermal Monitoring Unit (TMU) on Freescale QorIQ SoCs + +Required properties: +- compatible : Must include "fsl,qoriq-tmu". The version of the device is + determined by the TMU IP Block Revision Register (IPBRR0) at + offset 0x0BF8. + Table of correspondences between IPBRR0 values and example chips: + Value Device + ---------- ----- + 0x01900102 T1040 +- reg : Address range of TMU registers. +- interrupts : Contains the interrupt for TMU. +- fsl,tmu-range : The values to be programmed into TTRnCR, as specified by + the SoC reference manual. The first cell is TTR0CR, the second is + TTR1CR, etc. +- fsl,tmu-calibration : A list of cell pairs containing temperature + calibration data, as specified by the SoC reference manual. + The first cell of each pair is the value to be written to TTCFGR, + and the second is the value to be written to TSCFGR. + +Example: + +tmu@f0000 { + compatible = "fsl,qoriq-tmu"; + reg = <0xf0000 0x1000>; + interrupts = <18 2 0 0>; + fsl,tmu-range = <0x000a0000 0x00090026 0x0008004a 0x0001006a>; + fsl,tmu-calibration = <0x00000000 0x00000025 + 0x00000001 0x00000028 + 0x00000002 0x0000002d + 0x00000003 0x00000031 + 0x00000004 0x00000036 + 0x00000005 0x0000003a + 0x00000006 0x00000040 + 0x00000007 0x00000044 + 0x00000008 0x0000004a + 0x00000009 0x0000004f + 0x0000000a 0x00000054 + + 0x00010000 0x0000000d + 0x00010001 0x00000013 + 0x00010002 0x00000019 + 0x00010003 0x0000001f + 0x00010004 0x00000025 + 0x00010005 0x0000002d + 0x00010006 0x00000033 + 0x00010007 0x00000043 + 0x00010008 0x0000004b + 0x00010009 0x00000053 + + 0x00020000 0x00000010 + 0x00020001 0x00000017 + 0x00020002 0x0000001f + 0x00020003 0x00000029 + 0x00020004 0x00000031 + 0x00020005 0x0000003c + 0x00020006 0x00000042 + 0x00020007 0x0000004d + 0x00020008 0x00000056 + + 0x00030000 0x00000012 + 0x00030001 0x0000001d>; +};