From patchwork Fri Jun 3 06:57:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia Hongtao X-Patchwork-Id: 9151983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 675A36072B for ; Fri, 3 Jun 2016 07:23:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58C9126C9B for ; Fri, 3 Jun 2016 07:23:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D89F2804C; Fri, 3 Jun 2016 07:23:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1E1126C9B for ; Fri, 3 Jun 2016 07:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751826AbcFCHWw (ORCPT ); Fri, 3 Jun 2016 03:22:52 -0400 Received: from mail-by2on0075.outbound.protection.outlook.com ([207.46.100.75]:38816 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751802AbcFCHWu (ORCPT ); Fri, 3 Jun 2016 03:22:50 -0400 Received: from BN3PR0301CA0081.namprd03.prod.outlook.com (10.160.152.177) by BY2PR0301MB1590.namprd03.prod.outlook.com (10.163.28.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.6; Fri, 3 Jun 2016 07:07:48 +0000 Received: from BY2FFO11FD045.protection.gbl (2a01:111:f400:7c0c::106) by BN3PR0301CA0081.outlook.office365.com (2a01:111:e400:401e::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.506.9 via Frontend Transport; Fri, 3 Jun 2016 07:07:48 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.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 BY2FFO11FD045.mail.protection.outlook.com (10.1.15.177) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Fri, 3 Jun 2016 07:07:48 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5377hfW000348; Fri, 3 Jun 2016 00:07:44 -0700 From: Jia Hongtao To: , , , , , CC: , , , , , Subject: [PATCH 1/7] dt-bindings: Update QorIQ TMU thermal bindings Date: Fri, 3 Jun 2016 14:57:33 +0800 Message-ID: <1464937059-19349-1-git-send-email-hongtao.jia@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131094112685575168; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(36756003)(106466001)(229853001)(6806005)(5003940100001)(104016004)(586003)(8676002)(33646002)(8666004)(8936002)(189998001)(105606002)(50226002)(4326007)(85426001)(77096005)(50466002)(2906002)(5008740100001)(19580405001)(50986999)(19580395003)(92566002)(11100500001)(81166006)(87936001)(47776003)(2201001)(48376002)(5001770100001)(86362001)(575784001)(7059030)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1590; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD045; 1:2l+qdlV9vpXF0HUjwujn2WiQ0LoveocgX9qDn5SGMCC2s9iCiwegEaQAIDKeinmrBAcyj1lawEaBP1S0RiM0J2crENOADVdvjTs3B1PkgcqrblTDcjMTSL6anJh+jYYC68Cu36J7+8gnIry8BahAGCQzmHDvMY3wWeKKANSbFvqFS/DSTW/ClKDewtPl7Fr2tNwQOn7gTLN/aStYNClNtTD4TKgfXn7py8a/sz48c5SpS/7Madd8TvDwwhg+v3R+7QqvRFJJhCKZrgnvCC9G0Z1BzRBdygxg/JFSJOKygYnnhPaLCQJOqK6xS7ivuc9O610Kk6MzzEdHAL+khg7+esTrCuEHje1zKYY7YlsMLw3hTSDlIsrJsPIZ2tV47tOi+BOnWPGqe+D+3EJqIJSCj2HBO+dveA9JE9YuNLOFTuEsZNzUQ893TwG/J4TLS73x8iSykORAd+K9PBdVga0Y1801r3hr5R4FEISrjFLHrURK+tYkX7ynTnvY9BpSTDAPy1ASIqpRSKEl4tXV/YGVFfD2W6CboPPjHv954QiKNrjPflE8W+ZOo9/jtLMds61i5S20JrYpCUgmR6MQFSJWVKNCvGCwIAhJLDo8Boi0hjDC8nHSSoKoUkOrQrllA1kahMY5nUb/9o5uhemDE2P76T5DohXrLl4smQoEoY9swZinptr83h3JATsdAjeefJzxV1svgvOVmmEAfyeXS64nFmAXLpixaaQ2tVHnRGcAPVA= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: cfa6c7ea-6f86-4dc4-6aa1-08d38b7dc539 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1590; 2:F3f9/4ar687Dm6cjFsnDvEY0bHxjET55dtUk0bTRDOzyAi6B7MPpkohsYIrcgs/RMgjTcakAWWN0xKpt5Ol2U45ZJ3KptEBLxzjun8TmbQNFWEWAcMdnyWBmGgACCtPyPyQwGrILXBYXatPreL11sxZbX1T65u6M9onaxNeStyYbKA/BqvtgqSh+g2rfGBKP; 3:GaWffDMzS73FzL9i3CuXukKTHOMA5EJfi0NmZXF2XcxHTJuD8G07laXwKXNn1ySWo4unvptV/24t66r2Uwg2bi9mPuwagZFDyeQcNqAlcBEQM8HiHngTzSjZ3dZObOocoIJcnd2dabCn1Yb/QSUlhxTAhZfn3e6pLJDROrqZ2dqrRGzBwI4MFVAs1thCiUXQ++RZ7gxAJA3uckKZ2LJfyz5BDp+uRsj4OfabaGkNlOU=; 25:snlWoCQuukHdENjSazIapZEycIhDaoDwWnWtBaN+rWUTLRkfHvUFP/+gc7RdLD8z6RCyvV5BPLdNx3/rrKWHGEv0Fw4Y5gKK2w+I/vIDJWWOnReU2slp9xOFyadxlZtdFZHd53/pmawAQjPjWx6a3vpi8zWGe9d2X1sqrBwtuN17AoSOFhLXJqhLiux/opGp+qD4xF+D2pO/RW6x5roFwNHFi25gu1uLwn6G7PdYYj9AiTjx0Jk560WjS+jnXpRWll+NTe6aWWxMblzqkBrJuquNUhTKLOWjeIwuczNwpy3Bv685teUO7CAuosLS0vmyeNru0aGpZy1VzUWL/D0bSx6f+J7XHX0cIWfURlMTaWiXfBR7MYWTpXwDyOTX6kggCPvsVTCxYoqExeTlBHLX8QBhlzXNuVovQ2nbEOOODq4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1590; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170088055959)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13017025)(13018025)(13024025)(13015025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BY2PR0301MB1590; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB1590; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1590; 4:ynIWb/bJH2xHrPXXJj5+4OLVp0f09nQFYlAjLiPkqjZlZr1PwK4BPBp10ShRWpJpdLbRbVgNTSnAUJ5u4kQz7sxbTqZhhL9g8ks6Rq3KCcBwlaEhway1pukX42FD3Z89W4M4gEdZ5Vt3epDibKLmHTASxpbnFVS81xHcXhTuhwzTtqDwuQ2E3E+389uG87riZoBrXC7h2y9UNClzhEj6VQ1+xv2buqGKMvYp/qVcVCp5lvcuE75e+FC8JOOKUtPr8vzULcFaOdwzQPwrEqWqO1H4WYmzU7l59oplPG0vwYVdo1DreDiJ43hzM2ucCgMGxC9mMf/wDF8865yMDaF4zD2yuSwB9Q3slR15ke5cBf8caSjf5AmoN49/OevtZDdsgKJLPpxM/D/dnTOlMKSKT9ls/fO2SRj4u8mewgQa8mJJgwznW32UF3dS3IU0HNHoW5koBCf2ILXly1318TiqAjqqcRtc85a0od3VeHGe1UEGnuxIU+dGOiD9c3jMZGPO6tkuRQVQ8gbIIFptQIaoD1p+lqglA3xmCDtLYUE4rLQGZxGApBkkYpVTB+p6Sgrr X-Forefront-PRVS: 0962D394D2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1590; 23:cWw/9rMimRCPZXzvwagMO5RgB53ATDUtj8LgXvN?= =?us-ascii?Q?eXUwei/XeCoBhaxElV/SFMU57X6Lh+MEIdOZOyv8OZ7ca69JpU1Jb+R4vkgj?= =?us-ascii?Q?O55WzD0eE+He9UOQJ0jEOckhl7x6AaFIXh5C1ht4E33v395wmvAeDbm9hHsw?= =?us-ascii?Q?JbGnycvDTSvJpJ1F3yOEogZeENUuzlCNBpNWceVnf7fzvG81+4cVZX5tNd8n?= =?us-ascii?Q?PItXgJ+VpedI5j35jAIeza8VXU82J3Q050nQK2pjF0FnM1W7iOeN70fUdHUs?= =?us-ascii?Q?UCQkW9VN8YjL7dJzXZ3hgBL/VawBKDQzhENQ0pTT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Bg/USlT0z2kVZJII5TQ3h3Uj1dM/8F0CHdQdDyXDSb9IPbAKSyUJqHl91ZmxBltuI6xmeHOB0PmqXuhxhNYMZ8U47qmKDj/VTUlpGww0tWA0FFXvIyr33KPUjWd/6p78whDnMY0ktAeCGkMT+Y4ljCfR2otRWFLY=; 24:Y8CU/wE03s34RzmWX8cVRpxS+BweBt/weZ4djTniHMHushFzNv0w6njpTtl4w3zYgdM+h5TUoPMMe4qPcy4gYZOZacEiCu0HkuIK8Rmg1L0=; 7:UpTcAeaDhfHuD4i8hbKEBl26Uu+d3znS+Lp6yKTNcawFIy0RgG/HAK7jMdpNaGsV5eKumSS+S7agFxjrhduMd3XdoHEAPG2iADdAr94c6a3WhSEnxr3A6kRaYQckZiz952aeBVbmaqwN/pm+ik08YYRIkwZt/bHXbGtEKRXGFCK56WrYHbNW2cBaMVbG6jlEIE1dJug9DrGkT8R/P7dO01dtGLCp7hyO3PSOEwQFLpI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2016 07:07:48.4327 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1590 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For different types of SoC the sensor id and endianness may vary. "#thermal-sensor-cells" is used to provide sensor id information. "little-endian" property is to tell the endianness of TMU. Signed-off-by: Jia Hongtao --- .../devicetree/bindings/thermal/qoriq-thermal.txt | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qoriq-thermal.txt b/Documentation/devicetree/bindings/thermal/qoriq-thermal.txt index 66223d5..8eeef80 100644 --- a/Documentation/devicetree/bindings/thermal/qoriq-thermal.txt +++ b/Documentation/devicetree/bindings/thermal/qoriq-thermal.txt @@ -1,22 +1,28 @@ * Thermal Monitoring Unit (TMU) on Freescale QorIQ SoCs Required properties: -- compatible : Must include "fsl,qoriq-tmu". The version of the device is +- 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: + 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 +- 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 +- 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. +- #thermal-sensor-cells: Must be 1. The sensor specifier is the monitoring + site ID, and represents the "n" in TRITSRn and TRATSRn. + +Optional property: +- little-endian: If present, the TMU registers are little endian. If absent, + the default is big endian. Example: @@ -60,4 +66,5 @@ tmu@f0000 { 0x00030000 0x00000012 0x00030001 0x0000001d>; + #thermal-sensor-cells = <1>; };