From patchwork Sun Feb 24 02:50:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10827673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E6C413B5 for ; Sun, 24 Feb 2019 02:50:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88ABD2B9DE for ; Sun, 24 Feb 2019 02:50:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B7F22B9E2; Sun, 24 Feb 2019 02:50:30 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A68572B9DE for ; Sun, 24 Feb 2019 02:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=J3uFz67gmc7g15xZ87TbneNBO+tvArvTnfHGeWy53vI=; b=kHjmuJjff7ZT4E uqnZaWwn6H/+DwsPblIuIdjOtVEdCMWkodYIa/GF037GmGdNcu+Ts4JnZ9Ysk15jIwNwG5a75cRYm rArzuX0sOIoXG14rD+c8qSYjCaM0SC0UjUEjaENy97dNSYQk5cX3I9ZPmAGJLRrd9dFWro0+XxAUK 3XcpRuYKgZjC9bh7yQX0IIyD4nSQpeGxoLGIt0GImcnawo12pa9fMrOqlafBb5KvnIH8omYFONjS4 F10yLgilRI+fCHjRa3DoVr9Spn+ao1YlZ3GraZi7BUnaAKwPMqwCrggqXIamPxWucv1fSfxp2+A/n 0zC1zxx0HX7zk1J1Zi6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gxjrt-00028U-7i; Sun, 24 Feb 2019 02:50:17 +0000 Received: from mail-eopbgr130054.outbound.protection.outlook.com ([40.107.13.54] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gxjrp-000228-JO for linux-arm-kernel@lists.infradead.org; Sun, 24 Feb 2019 02:50:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EHxbR+mGL8fczXmbRc4w/D8IqC0OPND8gOUarj9FHws=; b=dbWTEkmTVLmxbXCuXImbKqrkBRZwMWE3vaSVHhAbM83R/EulYHd6idm0w37Baorjq9Aq58nfFULItHXWgMs4+nmoEtYYxCA2VSvNfAVR03pibXgEe9dPVM3QBc4+58u0Z4TxDVG7qKdJqg4MkoMcH/f7wSe077DJ21I/WFDnAsU= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3865.eurprd04.prod.outlook.com (52.134.73.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.20; Sun, 24 Feb 2019 02:50:04 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1643.019; Sun, 24 Feb 2019 02:50:03 +0000 From: Anson Huang To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "rui.zhang@intel.com" , "edubezval@gmail.com" , "daniel.lezcano@linaro.org" , Aisheng Dong , "ulf.hansson@linaro.org" , "sboyd@kernel.org" , Daniel Baluta , Andy Gross , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "arnd@arndb.de" , "maxime.ripard@bootlin.com" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "olof@lixom.net" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" Subject: [PATCH V9 1/4] dt-bindings: fsl: scu: add thermal binding Thread-Topic: [PATCH V9 1/4] dt-bindings: fsl: scu: add thermal binding Thread-Index: AQHUy+ukMWDajCXXzkGf+b3wfa1YNQ== Date: Sun, 24 Feb 2019 02:50:03 +0000 Message-ID: <1550976319-20216-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR02CA0145.apcprd02.prod.outlook.com (2603:1096:202:16::29) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 297df944-045d-4a88-8a1c-08d69a02c6b4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3865; x-ms-traffictypediagnostic: DB3PR0402MB3865: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; DB3PR0402MB3865; 23:jy8HJ5t1xdLfRMAKOZUN9wf2lKaEMzipItprw?= =?iso-8859-1?q?zyqtIRc+jWar7wXQv?= =?iso-8859-1?q?ajeB89DNOh3xgz0on28xTE44kGDFlBY9MwcVMvNTuU0FeEwwcfSj+sV3IWQL?= =?iso-8859-1?q?s1R3c4bXAy+LIvkqI1AgNjCJb0tR4tQXMSsdW7oIn2acKywESlLs0f5QSg93?= =?iso-8859-1?q?CJxpeDpjYV1yYCH6fi2yAOHT6Hre9MSmrsSGoRKzTfP4MwbbqPnqH7IGuLsU?= =?iso-8859-1?q?JQ31Ia3pE5YAOBg9FuVnw4StQ+QIkfTambR2GuT6X5xC+qD76HzSIitLrgSQ?= =?iso-8859-1?q?Ao7NSsMXyQvonG8GKAhtZ67QEcZagexYs/Z3+y/1EJ+ggKYWl0HZQW4sRDhL?= =?iso-8859-1?q?avc3bQwZKQKcQjtrIcsk66CmCoTIPS7cgsCkCisN0y7QQWA4NyxdRgiLU2R1?= =?iso-8859-1?q?MvahBwBOI071/prx7EJpta07P+A4wM0j17iQY29QRmuhe/eVe36m3UUhSTzr?= =?iso-8859-1?q?Z9oPsVyaQHWtatFztgkjLL4/mBt5eOZlUW8/7iyJSJSpMwDJNj0TOmkZTUPA?= =?iso-8859-1?q?VD9PECBFi08VY5twhRS0MOQDrrA226pEApUBY/trapIoVfihO05bIz5RzFgK?= =?iso-8859-1?q?gB8HkfZ5ZetWhffXW4cb0Zzl8BtGy9AyHvO+sRhO6eqLFfqOuUEHmxQ2UOd+?= =?iso-8859-1?q?tRqWsaSdqu1CAglAnA6m2r4RYzligtdf6AV0YxECuqIeVQiCFyErXyJqtIuL?= =?iso-8859-1?q?o++Jo0bTHbwDF0JlfppIR6xWv/4TffNYvHH1kxPwKjbAJr87neuqZL9gaacc?= =?iso-8859-1?q?3yYhrxRIfmJ9wzthoy+M272LZHgC1S9GHn1VLx3ht1jCEiONZ84Qli+WN+fO?= =?iso-8859-1?q?0OeLRHRJR+3aYLCrB9Tp8Rwf5IIiV/SVhgpnU6u2aCO/b0QObmpVemQ68WD6?= =?iso-8859-1?q?KfY3wx7woPz9DD5UxXjRy1u4kIvv21uEUnsGon19dK9/P2weZKy4YNdyD/dc?= =?iso-8859-1?q?j9E+ZyDVS/zrjveuPBkCT6eMX+1cZYPTTrErbRxttYSYTlRs4rSsBooUJh0J?= =?iso-8859-1?q?v2IONQ6zLWTcvOR6rW+YQBDwiD2v1TUn90XFvvLFe3qf1WonPmDzjQUOL+Te?= =?iso-8859-1?q?yRmAgFJ/q3GEOD2TknDG6jvL/sN/vt/QcZZ4maBDHzUQP9+K3HpvrmYNFiou?= =?iso-8859-1?q?bwyG6E5PGZsZqAl1ynNmgW/9o10yJJ9fmjbW4h2b6JMBSbYOaJAi6u61fEKS?= =?iso-8859-1?q?78DTKuO5ajrpFwdEwSPECG?= x-microsoft-antispam-prvs: x-forefront-prvs: 09583628E0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39850400004)(396003)(136003)(346002)(376002)(189003)(199004)(110136005)(478600001)(4326008)(316002)(66066001)(256004)(3846002)(6116002)(36756003)(2501003)(52116002)(7416002)(99286004)(14454004)(6486002)(71200400001)(71190400001)(8676002)(6436002)(53936002)(106356001)(2201001)(6506007)(386003)(86362001)(6512007)(7736002)(305945005)(68736007)(50226002)(97736004)(8936002)(486006)(26005)(81166006)(2906002)(186003)(2616005)(5660300002)(476003)(81156014)(25786009)(102836004)(105586002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3865; H:DB3PR0402MB3916.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: arisezFOBvbPG9w3E41PRx6cHmq+tJCbxGQ/2PLZ+XLigx9o603aZc/oGmYDg+Cwtt5oNJeb8dj7i8/2xn+N/6sP0+wiPtqBernwDfm5WTTvMH4VbHZLaeNuBwrJS3fd+UnO94dwYmwMh4Lr2sKUjczga/Q2YBTna3Nncvh5UPM7gzLXPPRcLJbMAUg2yjakDvE1wWPoySVm2mwxZCi0s6/z21L6e6IkfDd2+WDY4+OrMsXip1ZRU1L+wmpSXDzq+Y5IBo4qAjwyV+MYWFVVRmVe8pkn3dbFlJ3BM0rFeogu+z29GbHSyjbXdi6dTo99FaM3Fsmz+EXTwgSOw7KEAlgb9TQt2v6cto66xXnIOmSef7aMJWoajIQYnKMpHLKktW9g2C2XyLSQqMKk/zEFixqKQUF1bASUBzDLj2jbxkU= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 297df944-045d-4a88-8a1c-08d69a02c6b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2019 02:49:54.8095 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3865 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190223_185013_637463_A716CEB7 X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dl-linux-imx Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and thermal sensors etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to get temperature from thermal sensors, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V8: - improve "imx,sensor-resource-id" description to cover single and multiple thermal zones. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 72d481c..2e310ac 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -122,6 +122,21 @@ RTC bindings based on SCU Message Protocol Required properties: - compatible: should be "fsl,imx8qxp-sc-rtc"; +Thermal bindings based on SCU Message Protocol +------------------------------------------------------------ + +Required properties: +- compatible: Should be : + "fsl,imx8qxp-sc-thermal" + followed by "fsl,imx-sc-thermal"; + +- #thermal-sensor-cells: See Documentation/devicetree/bindings/thermal/thermal.txt + for a description. + +- imx,sensor-resource-id: A single integer for single thermal zone's resource ID or + an array of integers to specify each thermal zone's sensor + resource ID. + Example (imx8qxp): ------------- lsio_mu1: mailbox@5d1c0000 { @@ -168,6 +183,12 @@ firmware { rtc: rtc { compatible = "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; + #thermal-sensor-cells = <0>; + imx,sensor-resource-id = ; + }; }; };