Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp287272imp; Tue, 19 Feb 2019 23:46:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZAttMqp1/RUTVKmSL94CQqFvHCDpOvnHHUPveiHnrPZaTkGx50lrEXVtAj+8ve24DEpgaJ X-Received: by 2002:aa7:9099:: with SMTP id i25mr33866205pfa.102.1550648769047; Tue, 19 Feb 2019 23:46:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550648769; cv=none; d=google.com; s=arc-20160816; b=YhGzHyTZanlMyeeY9GZzq3lLbEr5Y9tQC81X3MYzeOZvx0OlQ3F99iWCz8ifQbt+XG hgxCZefUEXXDrbt1SgJtBCioLSN7O4BM5kgrJ5eNrKQT46iIesoCFn0ozxCwbVmwWRrV VbQt2ifZlkvv5dbGNHgKIGLGVu2p1kmhqDgHfoDv2ayZVoHkzv8C04Yz7rDkW1HmoIbF EVZdKsD5DrLuhfYw9aPvuJJPn7qSvh+FCToxZbAC1mjBKyn0tO7/LDXBCxeicbdPJWps vtFDNSt6LgLRKwiGtqiQUZrOj2KGosqfMmse73NXZSkjmkkqauybxsUGOElmHOhai9Ab vE4g== 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:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=yhp6BC4kWL75DCzXSYr1EsmYZsAfyq4F9PrXVO8yY7U=; b=z745SkV4TCnZANZ51vO7lZuqht52gLuWNeoBu1oJO9srm+pVM57odMbUVg2WNFCIhN wYdHzUZHn6U81omp2O52ql4PhXmwZ9J4gP2xCYpzn+IEWu4cw9ySFVfELeJ7WSrl5Es5 8ZziuyjM/D9oN/ynSbTfKjl3f5JOHthroJ+SZ2Y6k8S7XEc6vpq3j/A6jp2eEcCjGXdx HMJoHazbjjgltcTAfCDQkpinT1t6tBWBTfaOLSrmrT/J/Jtq87WMzECGen91b7yZ9KoW Hc0nnOOLtreFtcvTKfD4i+HogvlGVnvg8R0YOhEQsYLAgmLiqlIOXNf4mLldo0pAj4rH xNzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=AQcovUQ1; 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 j97si2147749plb.292.2019.02.19.23.45.53; Tue, 19 Feb 2019 23:46:09 -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=AQcovUQ1; 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 S1725915AbfBTHpc (ORCPT + 99 others); Wed, 20 Feb 2019 02:45:32 -0500 Received: from mail-eopbgr30046.outbound.protection.outlook.com ([40.107.3.46]:61666 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725379AbfBTHpc (ORCPT ); Wed, 20 Feb 2019 02:45:32 -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=yhp6BC4kWL75DCzXSYr1EsmYZsAfyq4F9PrXVO8yY7U=; b=AQcovUQ1BqrGOHcrPdxH3WQthebglMJnz5Lj8IsLkpbT9Nw2rNbuXxdUh5AKiCptSZO8jQSnoCMGqJKtPLLhb4kzA7dEEoVrS3MZdoRE0tJ8fwvEXkqmzz+CUO3vDhKZFTMyBjnnf34AwRgzxhpua3EKeBs0LzoZhyrrrhCamSk= Received: from AM6PR04MB4215.eurprd04.prod.outlook.com (52.135.168.141) by AM6PR04MB4070.eurprd04.prod.outlook.com (52.135.163.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.14; Wed, 20 Feb 2019 07:45:27 +0000 Received: from AM6PR04MB4215.eurprd04.prod.outlook.com ([fe80::e944:6749:3ee6:4e08]) by AM6PR04MB4215.eurprd04.prod.outlook.com ([fe80::e944:6749:3ee6:4e08%5]) with mapi id 15.20.1622.020; Wed, 20 Feb 2019 07:45:27 +0000 From: Aisheng Dong To: Anson Huang , "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" , "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: RE: [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+Gy1rWUqASm4hcJoqZKXoTK+Q Date: Wed, 20 Feb 2019 07:45:27 +0000 Message-ID: References: <1550645332-2907-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1550645332-2907-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6d9cf3da-cb81-45f2-25b5-08d69707614e 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:AM6PR04MB4070; x-ms-traffictypediagnostic: AM6PR04MB4070: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?us-ascii?Q?1;AM6PR04MB4070;23:pWT/8VZaEDCJME+bl29EXhf1uOLI9evKvAvgcGEBi?= =?us-ascii?Q?Ct+wQRsQ77hACG2v3yiwFZqAdkd4QynTWn4XhWxQW/0TbkZpntd9+0Q/B2cd?= =?us-ascii?Q?jQf1UahO5s0Wtw/Hkdc7BCCkhTd2LNm+vYxGwA8Y60KjpdXuwXOoBDmkk4oy?= =?us-ascii?Q?Wg24JAcxMcmiK4Q6/YUOlZJsNNvipD+qD/LLU3DXI0PNSguSla1ojTuem4Ig?= =?us-ascii?Q?5cbzxyw6QLsmAK2fiu3VpuFiCmJlFpbPSeJTnIa+QtkqSiiPw3C4k2pMsnBU?= =?us-ascii?Q?qLWLqofL+QrPGzTfmffpf6pg7XVS8q4SruToJV3P6WNpu7NjBxJNkrW1duiL?= =?us-ascii?Q?tVRMWhFJDmo8uwL+PFM8ESWj7v23RDHGvjb3aXyCrlPm4RwbE1wIfXZEZHT/?= =?us-ascii?Q?Z7fxduCCtLoiUbYCqlAc/eFjw4J9x1x0Yo17eIbOnB3LZjHtq+gdJh4aOBj9?= =?us-ascii?Q?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EE4910 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(136003)(346002)(376002)(396003)(199004)(189003)(6116002)(71190400001)(26005)(3846002)(71200400001)(97736004)(486006)(4326008)(33656002)(8936002)(7696005)(68736007)(81156014)(81166006)(316002)(6246003)(76176011)(44832011)(8676002)(110136005)(66066001)(102836004)(14454004)(2501003)(186003)(478600001)(99286004)(53936002)(25786009)(6436002)(7416002)(229853002)(446003)(2906002)(256004)(11346002)(5660300002)(105586002)(2201001)(9686003)(476003)(74316002)(55016002)(6506007)(86362001)(106356001)(7736002)(305945005)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4070;H:AM6PR04MB4215.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: foGDJdS4kSuT9/2JK09k7x5B0NeAfBvO9Xdq/MQXB3rpXlNEBKQoenWcjGtg89FnmAdIyj+PNU8IEh4Y5Qf5Q/LGfRbGA2YipvnUwcFvod2mIUjn2NU3C2pyRnh363oIOBGZ3fMQCG5/BcQl9bovwoEHd58fkx6ELkCfVJuGuAmS9XlZ+O9bPBwwlohNf8GEKPlOGPhbZAOYKN4MNQXZIvVIhh0V0ESBpT0GZLd2KFq/DAmXrjzNK+jCa3TBNR1zSwbtqU2EjmHRI8nQa+6HGa11AN60yBuMcRmyYoO0iTjKotb24Zo7SLxCGqiYfgFB++Y0vUwOGwuhl6pY7N1hW95QhhPciP6r7l686PJ2LVyVpQlsf+8d0AAx180POmynrldHTwouuKbQ+ATnO3xWUCBU4oBC+IlYuMPN8Dh6RGo= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d9cf3da-cb81-45f2-25b5-08d69707614e X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2019 07:45:27.1279 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4070 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Anson Huang > Sent: Wednesday, February 20, 2019 2:54 PM >=20 > 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 therm= al > sensors, this patch adds binding doc for i.MX system controller thermal d= river. >=20 > 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(+) >=20 > 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; We properly don't need this property if the number of sensor is fixed on a specific SoC. > +- #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 therm= al After a further looking at it, I wonder this property may not needed either= . > 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>; This looks may not correct if sensor cells is 1 but the sensor number Is also 1. So we probably better remove tsens-num property. Regards Dong Aisheng > + }; > }; > }; >=20 > -- > 2.7.4