From patchwork Wed Feb 20 06:53:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10821389 X-Patchwork-Delegate: eduardo.valentin@ti.com 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 443526C2 for ; Wed, 20 Feb 2019 06:53:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AE832DF90 for ; Wed, 20 Feb 2019 06:53:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E4A32DFA3; Wed, 20 Feb 2019 06:53:42 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham 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 99F642DFAC for ; Wed, 20 Feb 2019 06:53:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726435AbfBTGxf (ORCPT ); Wed, 20 Feb 2019 01:53:35 -0500 Received: from mail-eopbgr40080.outbound.protection.outlook.com ([40.107.4.80]:7764 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725890AbfBTGxf (ORCPT ); Wed, 20 Feb 2019 01:53:35 -0500 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=dS5zUboiKPw4qU2HHyzEt1BifVQG/vsJUKuiUePMSHw=; b=wRkLR5MANUVGvZQfJdo90GsEtK78QhfLYXsIEognjI35MtOjYKSK2N0dhYAXspqrXTPeQA9dy3NtH6qvTVTaWMlIHlun5yvRVDbuJCFkqBopp2o5tQgW4Ugodt6CZRSfpaecUVyN2bynCoRJwUGrqSZrqcVPxey6awzU7mo58qE= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3883.eurprd04.prod.outlook.com (52.134.71.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Wed, 20 Feb 2019 06:53:30 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5%3]) with mapi id 15.20.1601.023; Wed, 20 Feb 2019 06:53:30 +0000 From: Anson Huang To: "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" , Daniel Baluta , "horms+renesas@verge.net.au" , Andy Gross , "heiko@sntech.de" , "arnd@arndb.de" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V7 1/4] dt-bindings: fsl: scu: add thermal binding Thread-Topic: [PATCH V7 1/4] dt-bindings: fsl: scu: add thermal binding Thread-Index: AQHUyOj9eEW+Gy1rWUqASm4hcJoqZA== Date: Wed, 20 Feb 2019 06:53:30 +0000 Message-ID: <1550645332-2907-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: HK2PR04CA0050.apcprd04.prod.outlook.com (2603:1096:202:14::18) 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: 01b0fdd1-97a0-44a3-f5dc-08d697001f7f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3883; x-ms-traffictypediagnostic: DB3PR0402MB3883: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BDB3PR0402MB3883=3B23=3A?= =?iso-8859-1?q?sj96NVC2+JYEDRawjFL3QwxWXyftRElQtIdcHtj5dwL9mCl4ak0FBDifut1t?= =?iso-8859-1?q?YrwTF3oKuRPmzmSoyfSTz01Be+mcpBNdqMVNI4W7R+e5YpaiFXwKiQ0BnLa5?= =?iso-8859-1?q?z4NZV39E+6SZXutxdcl3IOkkUqU1ZTS7/z0hLcNAaod/Z/GDa33ATiCXjImS?= =?iso-8859-1?q?L0KFDMJcMEuc6+0gAUhXldAz0q+/XxeNjmXFylF6RfX5UalR4rHYeC4d6G+r?= =?iso-8859-1?q?w0b969TVeqoxTwOz+3afJ9r1KEtMT0aZ4raiopSTpZc2KkzrNY/6G2M2sYKB?= =?iso-8859-1?q?iXeI080ouvw8m+xbvDMiS+19oOE8MpwxJia3bF4Ciy9uGMl7H+NDyupORihR?= =?iso-8859-1?q?UzWuQhScg4G1aG8UYR6XGgii8b3jT7ipbFt9ekDMYMhsZsIlOMM85kziMhHM?= =?iso-8859-1?q?4wTGnDbOFHjTI1pJNcGEijdDCUpsah6AsLK31A+tj/IcpRmHveTKj3kB1thz?= =?iso-8859-1?q?RXJLSs06N29uEVDjwVSYMPIT4+umc8Y8jG4/6c5jAEyZ8yS+mai7WnfT0efj?= =?iso-8859-1?q?yR4/ZF5nm/gBbUspgqYLwWRnscqJ1KtEcVtChLCWz7qQDba+PWGMpbqOfk9i?= =?iso-8859-1?q?FhcZdSVRxOffI6SmDBvAr39bQoZT+vjylL+CexuyobilGe2nRMxJ+XSqJW70?= =?iso-8859-1?q?XpQc4WbI2dD7g8l07O1Yq7BfprLMvDykKeWlFiPsyLtJS3+h8BUfdw3F5QT/?= =?iso-8859-1?q?Og402VZbl/xMwj4emmYFZNrZNv2XgziiycCY3RfE0+bdmeQS/QnodIMGO1j9?= =?iso-8859-1?q?q5GyjKY8lzsyOUEJo9M7bS4HwmJQuoXkiYoP3Z7hy0G93UW3rIieJyBwquIM?= =?iso-8859-1?q?kjaL6hJpSVETsXzj1+JlhIsBtGtrLoA3pgyeBktP8h1UHqHc6xg0y7yfwqa4?= =?iso-8859-1?q?M1G0ouu5mg+5rHSvHHxhsng1KZT5ur1/BuP3yfewvMdUQMmkoNAI6sudThOC?= =?iso-8859-1?q?1+zP+WR592YDcHIiLpldwGJYD27+fm72VCY0kYOLkvbETvAIsq4yDxPLRXla?= =?iso-8859-1?q?bpgtPLEECjmwgXcx8E6xii1GegnjMV3zmD+ZXhSAbylBQLr/ZVJz2DDJUI9T?= =?iso-8859-1?q?xULEHyjDHlZ+GwO6OBG1/8C9zAWdH6PiMHIDXEnVskLKLuVowGiLz8FSJiu2?= =?iso-8859-1?q?X4zrEu6zO6G9sOQ2TvvrU3eIqf2tqKZLxpHMlt6DXtAjDpgwFdHHOBa14CSX?= =?iso-8859-1?q?Z+/mWZxLTCOrF/7V?= x-microsoft-antispam-prvs: x-forefront-prvs: 0954EE4910 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(346002)(366004)(39860400002)(136003)(199004)(189003)(7736002)(53936002)(6436002)(6512007)(256004)(14454004)(26005)(305945005)(6486002)(36756003)(7416002)(66066001)(97736004)(478600001)(186003)(102836004)(106356001)(8676002)(6506007)(5660300002)(81166006)(50226002)(386003)(105586002)(2906002)(81156014)(8936002)(2501003)(2201001)(110136005)(486006)(316002)(68736007)(86362001)(4326008)(2616005)(476003)(99286004)(3846002)(6116002)(71190400001)(71200400001)(52116002)(25786009)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3883;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: uIMoVOCpKo2SHyqme1Z9fzSCI23pau3gwnqE/PoH+J8sSBP2/MlKcoUBBM5IQODlp3dbMq0ja4BrNPaQVL5Ulb4x7GzslKGTeePOX7cfqg2NrdgO/ucFXQhYqJd0DoZhmsaw6E1gwSv0L3q47yEmq1a1kCNfi/xhXP484e8s0Zbt1qEc4Gb7R2cs0+2Lt5QzfFcYWRw4CmeG29fQB6fiokfnC78AxRYwt5BJa7UeDMaoVV4MTGwaNy/IqVj37qqjifaDxEmQHWCFDBvB5qnL3C02QKmxCmxRTXiAjsSFRjG24B0gaTL6c7T8ugp1QBzNut64JqOPcMb8vQ75lOG2JGKgBv2bZjmS+fGW53CgHCagxToaDffCPSdgyTKJzqcYx8ybphk1Qzid2Fqz54SV3e26wHln9/E2Y2dOm8EP8AY= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01b0fdd1-97a0-44a3-f5dc-08d697001f7f X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2019 06:53:22.0538 (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: DB3PR0402MB3883 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 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 V6: - put "imx,sensor-resource-id" property in thermal zone nodes. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 72d481c..ad96881 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -122,6 +122,27 @@ 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 : Must be "fsl,imx-sc-thermal"; +- tsens-num : Total number of thermal sensors supported; +- #thermal-sensor-cells : Should be 1. See + Documentation/devicetree/bindings/thermal/thermal.txt + for a description. + +Required properties for thermal zone nodes: +- imx,sensor-resource-id : This property should be defined in each thermal zone + of thermal-zones node, it passes each thermal zone's + resource id for thermal driver to get temperature via + SCU IPC. + + For thermal zone nodes, please refer to below binding + doc for details: + +[1] Documentation/devicetree/bindings/thermal/thermal.txt + Example (imx8qxp): ------------- lsio_mu1: mailbox@5d1c0000 { @@ -168,6 +189,12 @@ firmware { rtc: rtc { compatible = "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible = "fsl,imx8qxp-sc-thermal"; + tsens-num = <1>; + #thermal-sensor-cells = <1>; + }; }; };