Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3059272imc; Sat, 23 Feb 2019 18:51:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IbgIDqi3Lmb55eeiEPVRR3ps5czMj8CfLYlxpCWZ3tAmWIt5pZU/JbrxXMTUxPZOFve6MbA X-Received: by 2002:a63:234c:: with SMTP id u12mr11518462pgm.282.1550976717737; Sat, 23 Feb 2019 18:51:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550976717; cv=none; d=google.com; s=arc-20160816; b=qaXBYEc9I6UHN2xuJpS2tiq+KGoesGAB83c/cw/ZgF32eEc7ffPEutAGyA7KahGN5G 5CwBDfSlQl8nQwBDaIM6+oGN/7j/STSAUn7xB0YJ4SoIj8+ZfCnXX3cb+xv2NL7rMLvj A89LrAwxl2Z1IkecXXgWkjKN77YrCg6zCJeJ6+AGQLYxm0hdmPHmmQ585xx4V5FJvWSy xWiT0nPzNWjJ2erwvqng7H5ih7wlbeVMSPYJWPT13u7MEueuOcNQOIiVb4bKkwLhZe3C AjZEkZhYzmBSJJUbdiMoeCAe6lAPIdO+QylErIWBMXMqM4sIoDpXRttlyMTxSmB9LAtr 2g7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=EHxbR+mGL8fczXmbRc4w/D8IqC0OPND8gOUarj9FHws=; b=Cn65QkwC67/Dcy9mtm9J5zajaZ5WDqveGdy/H0s2SMuLFxFSqtgIMxMpeBOGettIXf OZrlRxC8TcIaBZXtz8r7dJTara0h2x5eoWFNGoeKn5JdWTyGpldAcwKpuU1QsXTBluOz ZhlZqRIcUQpfEv357I4EarTPj1kSS/y8Jofr8sFnKupfsLggW3Yi5kGiV3gEBud4d4AH XYh7zsuVBw3dfT0NzMknhmUVVfzIIhU0MaRQj5AfejPz+7w9a0tx4xDrXFdlD5N0ufhS P91RebMtDFV4dnQ2Y+UlBJk3T9rtjiUh/XUysPm/75MctQez7fgYQF7wPC9r/l3u/MwK pUaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=dbWTEkmT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si5043618plr.276.2019.02.23.18.51.13; Sat, 23 Feb 2019 18:51:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=dbWTEkmT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728097AbfBXCuM (ORCPT + 99 others); Sat, 23 Feb 2019 21:50:12 -0500 Received: from mail-eopbgr130080.outbound.protection.outlook.com ([40.107.13.80]:5698 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726405AbfBXCuL (ORCPT ); Sat, 23 Feb 2019 21:50:11 -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=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" CC: dl-linux-imx 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+jWar7wXQvajeB89DNOh3xgz0on28xTE44kGDFlBY9MwcVMvNTu?= =?iso-8859-1?Q?U0FeEwwcfSj+sV3IWQLs1R3c4bXAy+LIvkqI1AgNjCJb0tR4tQXMSsdW7o?= =?iso-8859-1?Q?In2acKywESlLs0f5QSg93CJxpeDpjYV1yYCH6fi2yAOHT6Hre9MSmrsSGo?= =?iso-8859-1?Q?RKzTfP4MwbbqPnqH7IGuLsUJQ31Ia3pE5YAOBg9FuVnw4StQ+QIkfTambR?= =?iso-8859-1?Q?2GuT6X5xC+qD76HzSIitLrgSQAo7NSsMXyQvonG8GKAhtZ67QEcZagexYs?= =?iso-8859-1?Q?/Z3+y/1EJ+ggKYWl0HZQW4sRDhLavc3bQwZKQK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EwSPECG?= 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= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 multipl= e 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"; =20 +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/the= rmal.txt + for a description. + +- imx,sensor-resource-id: A single integer for single thermal zone's reso= urce 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 =3D "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible =3D "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; + #thermal-sensor-cells =3D <0>; + imx,sensor-resource-id =3D ; + }; }; }; =20 --=20 2.7.4