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: 10821387 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 DB59313BF for ; Wed, 20 Feb 2019 06:53:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B83CF2DECD for ; Wed, 20 Feb 2019 06:53:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC2C12DFB1; Wed, 20 Feb 2019 06:53:39 +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 48EBB2DECD for ; Wed, 20 Feb 2019 06:53:39 +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=yxDcINTeo1knmf3eDGttpSNrPBvYL8tytH2NshPCIMI=; b=W/s4pVxjXIni0S cpcugpDtInteKZROS2WN70YwVNm0J70lRPBLyMxdxtI1Jcs1Pjg09PCxI57xU5quzkb1xmRDHihpV KOUwXKkmBM9QBJ0TpiC0u8/QfUi0QpFEJ8bTX4wtD2hPzlVPe8WHB4lNNz3/FsO8zH6LR04spvZW5 9+w5/3T2GCQqVRJXTdInlWh7NOr/PLjuPcYXyaAWtLGefbCBSc2X07AtGBxveYAOqelTAgXZGVP/q sWU4HF/80+IGwymNy4Lbj/qqjFr+295yKo/RereLdzGsim2UKJBxhfK3Z1GNIa0KxCji9I3obrOHW 29aiDGlcRbjgJoFJrvnA==; 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 1gwLlB-0001w7-9n; Wed, 20 Feb 2019 06:53:37 +0000 Received: from mail-eopbgr40049.outbound.protection.outlook.com ([40.107.4.49] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwLl7-0001vn-PQ for linux-arm-kernel@lists.infradead.org; Wed, 20 Feb 2019 06:53:35 +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=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" 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; DB3PR0402MB3883; 23:sj96NVC2+JYEDRawjFL3QwxWXyftRElQtIdcH?= =?iso-8859-1?q?tj5dwL9mCl4ak0FBD?= =?iso-8859-1?q?ifut1tYrwTF3oKuRPmzmSoyfSTz01Be+mcpBNdqMVNI4W7R+e5YpaiFXwKiQ?= =?iso-8859-1?q?0BnLa5z4NZV39E+6SZXutxdcl3IOkkUqU1ZTS7/z0hLcNAaod/Z/GDa33ATi?= =?iso-8859-1?q?CXjImSL0KFDMJcMEuc6+0gAUhXldAz0q+/XxeNjmXFylF6RfX5UalR4rHYeC?= =?iso-8859-1?q?4d6G+rw0b969TVeqoxTwOz+3afJ9r1KEtMT0aZ4raiopSTpZc2KkzrNY/6G2?= =?iso-8859-1?q?M2sYKBiXeI080ouvw8m+xbvDMiS+19oOE8MpwxJia3bF4Ciy9uGMl7H+NDyu?= =?iso-8859-1?q?pORihRUzWuQhScg4G1aG8UYR6XGgii8b3jT7ipbFt9ekDMYMhsZsIlOMM85k?= =?iso-8859-1?q?ziMhHM4wTGnDbOFHjTI1pJNcGEijdDCUpsah6AsLK31A+tj/IcpRmHveTKj3?= =?iso-8859-1?q?kB1thzRXJLSs06N29uEVDjwVSYMPIT4+umc8Y8jG4/6c5jAEyZ8yS+mai7Wn?= =?iso-8859-1?q?fT0efjyR4/ZF5nm/gBbUspgqYLwWRnscqJ1KtEcVtChLCWz7qQDba+PWGMpb?= =?iso-8859-1?q?qOfk9iFhcZdSVRxOffI6SmDBvAr39bQoZT+vjylL+CexuyobilGe2nRMxJ+X?= =?iso-8859-1?q?SqJW70XpQc4WbI2dD7g8l07O1Yq7BfprLMvDykKeWlFiPsyLtJS3+h8BUfdw?= =?iso-8859-1?q?3F5QT/Og402VZbl/xMwj4emmYFZNrZNv2XgziiycCY3RfE0+bdmeQS/QnodI?= =?iso-8859-1?q?MGO1j9q5GyjKY8lzsyOUEJo9M7bS4HwmJQuoXkiYoP3Z7hy0G93UW3rIieJy?= =?iso-8859-1?q?BwquIMkjaL6hJpSVETsXzj1+JlhIsBtGtrLoA3pgyeBktP8h1UHqHc6xg0y7?= =?iso-8859-1?q?yfwqa4M1G0ouu5mg+5rHSvHHxhsng1KZT5ur1/BuP3yfewvMdUQMmkoNAI6s?= =?iso-8859-1?q?udThOC1+zP+WR592YDcHIiLpldwGJYD27+fm72VCY0kYOLkvbETvAIsq4yDx?= =?iso-8859-1?q?PLRXlabpgtPLEECjmwgXcx8E6xii1GegnjMV3zmD+ZXhSAbylBQLr/ZVJz2D?= =?iso-8859-1?q?DJUI9TxULEHyjDHlZ+GwO6OBG1/8C9zAWdH6PiMHIDXEnVskLKLuVowGiLz8?= =?iso-8859-1?q?FSJiu2X4zrEu6zO6G9sOQ2TvvrU3eIqf2tqKZLxpHMlt6DXtAjDpgwFdHHOB?= =?iso-8859-1?q?a14CSXZ+/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190219_225333_827798_3EDE6A7D X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. 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 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>; + }; }; };