Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp248748imp; Tue, 19 Feb 2019 22:54:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IbN5EErH5LxiJ2DK2azJOpc7lP3x2Amn1K/935LbDnOp15Lxnod4x/F2UrhVljH1XvGwaX6 X-Received: by 2002:a62:7602:: with SMTP id r2mr33217370pfc.191.1550645652553; Tue, 19 Feb 2019 22:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550645652; cv=none; d=google.com; s=arc-20160816; b=VaZGy3OnJHqdbdznMQCSIzf1i2TyZB+kp7Mirti8spzITuTCtTQBECy43fWBqchb+7 eWHJs93+xdLGOYAjxCwyZnI3laKE3FKEHJrEcrQCIW6mRwnAcnutQrgZhd8vXcGWgWtA jYTANmk9gXIT132CR246kPC/ebDrvrBAOtLOPt2PMSjgpEqfw1C/wUNFXzEKZW2bJb3p rceaXVSyLzRJHRDh2bBd6eNhWbgaWYYYcIgyj56Q0Cvt/b9nLBpXKdC3I0j3NAaU3Anf kOZntYcu5+fhTInk+BO5RsXs3ysU7uuHvYYKVKDYvul1HfQpqWgP6/Tl00yw7ymE3Q1I LdPw== 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=dS5zUboiKPw4qU2HHyzEt1BifVQG/vsJUKuiUePMSHw=; b=Zlcim0w0UrZn4mL50ooI7D/TNO8YmA+dYLuv4T/VhZ9NeEZINoT+QkXvOhZg3YYhuJ KEPpgfEMuLtui3CEmB3irUR98FIYnbAtLMfpROmVViDDgXY5VfUIwtJC9RKkCdOgZVIk BpVkVW55F9Y9NHa51jyMkNci+R4HpnOjaGIQm/2m4BcNWl5pbW4fpFF6fkvaqUSlN7cX 2zpEvw6YMdfmgAjNOxj3Tv0yLCkpSv3UZQkAD65b3Z4Bq9EteXCVJJwdMTTvT943QfsF w45oirAfOsxknNKz4mah7vZiLCly7vbMHBgrw2kY38xngd1mr6Dk68Cmxjlfbz4GIfht TfFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=wRkLR5MA; 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 i10si323550pfj.186.2019.02.19.22.53.56; Tue, 19 Feb 2019 22:54:12 -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=wRkLR5MA; 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 S1726660AbfBTGxf (ORCPT + 99 others); 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;DB3PR0402MB3883;23:sj96NVC2+JYEDRawjFL3QwxWXyftRElQtIdcH?= =?iso-8859-1?Q?tj5dwL9mCl4ak0FBDifut1tYrwTF3oKuRPmzmSoyfSTz01Be+mcpBNdqMV?= =?iso-8859-1?Q?NI4W7R+e5YpaiFXwKiQ0BnLa5z4NZV39E+6SZXutxdcl3IOkkUqU1ZTS7/?= =?iso-8859-1?Q?z0hLcNAaod/Z/GDa33ATiCXjImSL0KFDMJcMEuc6+0gAUhXldAz0q+/Xxe?= =?iso-8859-1?Q?NjmXFylF6RfX5UalR4rHYeC4d6G+rw0b969TVeqoxTwOz+3afJ9r1KEtMT?= =?iso-8859-1?Q?0aZ4raiopSTpZc2KkzrNY/6G2M2sYKBiXeI080ouvw8m+xbvDMiS+19oOE?= =?iso-8859-1?Q?8MpwxJia3bF4Ciy9uGMl7H+NDyupORihRUzWuQhScg4G1aG8UYR6XGgii8?= =?iso-8859-1?Q?b3jT7ipbFt9ekDMYMhsZsIlOMM85kziMhHM4wTGnDbOFHjTI1pJNcGEijd?= =?iso-8859-1?Q?DCUpsah6AsLK31A+tj/IcpRmHveTKj3kB1thzRXJLSs06N29uEVDjwVSYM?= =?iso-8859-1?Q?PIT4+umc8Y8jG4/6c5jAEyZ8yS+mai7WnfT0efjyR4/ZF5nm/gBbUspgqY?= =?iso-8859-1?Q?LwWRnscqJ1KtEcVtChLCWz7qQDba+PWGMpbqOfk9iFhcZdSVRxOffI6SmD?= =?iso-8859-1?Q?BvAr39bQoZT+vjylL+CexuyobilGe2nRMxJ+XSqJW70XpQc4WbI2dD7g8l?= =?iso-8859-1?Q?07O1Yq7BfprLMvDykKeWlFiPsyLtJS3+h8BUfdw3F5QT/Og402VZbl/xMw?= =?iso-8859-1?Q?j4emmYFZNrZNv2XgziiycCY3RfE0+bdmeQS/QnodIMGO1j9q5GyjKY8lzs?= =?iso-8859-1?Q?yOUEJo9M7bS4HwmJQuoXkiYoP3Z7hy0G93UW3rIieJyBwquIMkjaL6hJpS?= =?iso-8859-1?Q?VETsXzj1+JlhIsBtGtrLoA3pgyeBktP8h1UHqHc6xg0y7yfwqa4M1G0ouu?= =?iso-8859-1?Q?5mg+5rHSvHHxhsng1KZT5ur1/BuP3yfewvMdUQMmkoNAI6sudThOC1+zP+?= =?iso-8859-1?Q?WR592YDcHIiLpldwGJYD27+fm72VCY0kYOLkvbETvAIsq4yDxPLRXlabpg?= =?iso-8859-1?Q?tPLEECjmwgXcx8E6xii1GegnjMV3zmD+ZXhSAbylBQLr/ZVJz2DDJUI9Tx?= =?iso-8859-1?Q?ULEHyjDHlZ+GwO6OBG1/8C9zAWdH6PiMHIDXEnVskLKLuVowGiLz8FSJiu?= =?iso-8859-1?Q?2X4zrEu6zO6G9sOQ2TvvrU3eIqf2tqKZLxpHMlt6DXtAjDpgwFdHHOBa14?= =?iso-8859-1?Q?CSXZ+/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= 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: 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-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 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"; =20 +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 =3D "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible =3D "fsl,imx8qxp-sc-thermal"; + tsens-num =3D <1>; + #thermal-sensor-cells =3D <1>; + }; }; }; =20 --=20 2.7.4