Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp144295imj; Thu, 7 Feb 2019 01:55:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IbTN3vZK3CAENikQjLEfYkKG1MnoqTVSejG75doGVp+FJkTMNWEEtFJSIRhNA/Yrgkl6NAy X-Received: by 2002:aa7:83c6:: with SMTP id j6mr15199846pfn.91.1549533333928; Thu, 07 Feb 2019 01:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549533333; cv=none; d=google.com; s=arc-20160816; b=OLzAWnrWDpHWiSWL1aLpeL4QtqBNkqMCciY5zyorMhsjSxMaWCpvaYejyNKoL1cO3k 63axB40wt+n7C1mdv33ALhmpAbeV8UQ1nd8hoSdR/4u5BUi2U7TsLLaxTiQBDO+yPLNt Zy0G5uIq+pi5Sw9NNSr6fN4D8CA1HcWl+xB+Y6Gz/+SJYhFt5lXC0L/wm3KY6MnvfSnJ c1+xNLfSnj3XJcZw5gtk9EUeOeOyj4sUqEipkQM1s3znq9jw/iUB/OurD6iCck2U7VKx Ftqi64vJ1wRhEQ175IndHoXMNZ0Ovy43aUFJVp0ohFSAeE68AU6fE+J+EH18gmhYYngJ F8wQ== 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=akL6azETByb8lpJJz81E9Yxs+TgFx/7v00NFRGnk8R0=; b=o+zjdM3TPHrlDA3lwoELNxG+ypFWUylhcfmAy+dnkaMGXnOKwkcjAAVvdc5KPv+x2v G2Ok1mC63NELSrEKAo7RoDPURNtX8fGybTpdE5+93D/hfPZFrRaP+i2VxYOcvioH31Dh 93tljlhx/Tqb8CuQWysCVFn8wIY82DK7sgE2Wzzx+p90jF6RGw79B5ioojDKR7QGV2Ws KfGgHQ5tzEVaPf7DTwYXj4nug1tv9fUMuUgu30U5/GNnB4G8u86cNOfa7e8VgWIClCq1 osfWFqvhZzpEHk+BCpUL/z8TY18ehP4S9CSMcYYIfvEwsdkkGOKg7k1ZXxHhdO4l+lyo Pb1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=EuQlpGI7; 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 b65si8244712pgc.259.2019.02.07.01.55.18; Thu, 07 Feb 2019 01:55:33 -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=EuQlpGI7; 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 S1727013AbfBGJxu (ORCPT + 99 others); Thu, 7 Feb 2019 04:53:50 -0500 Received: from mail-eopbgr20064.outbound.protection.outlook.com ([40.107.2.64]:20944 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726727AbfBGJxt (ORCPT ); Thu, 7 Feb 2019 04:53:49 -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=akL6azETByb8lpJJz81E9Yxs+TgFx/7v00NFRGnk8R0=; b=EuQlpGI7xMwqr/uXFXgsHuvnzuxBHH3bRiY5sqW7Z0z4gP04WTQvU1DKl0rzmHqP6ABnaEkev6YeSbbS+RVy/G/0h3VkDFCtybhwZCT330NM6j1qiieJy70+DDuF83EiiA/Y2pMAA9rVTNIP29/erZxBGZJ3CaYTVYC1O8kE3io= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3623.eurprd04.prod.outlook.com (52.133.20.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.22; Thu, 7 Feb 2019 09:53:05 +0000 Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::6c94:4ad8:e9f3:cf1]) by AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::6c94:4ad8:e9f3:cf1%4]) with mapi id 15.20.1601.016; Thu, 7 Feb 2019 09:53:05 +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" , Daniel Baluta , "horms+renesas@verge.net.au" , Andy Gross , "heiko@sntech.de" , "arnd@arndb.de" , "maxime.ripard@bootlin.com" , "jagan@amarulasolutions.com" , "bjorn.andersson@linaro.org" , "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 V6 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Topic: [PATCH V6 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Index: AQHUvsrro3gZQGWeX0+f2u2qQHzVZw== Date: Thu, 7 Feb 2019 09:53:04 +0000 Message-ID: <1549532838-27025-4-git-send-email-Anson.Huang@nxp.com> References: <1549532838-27025-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1549532838-27025-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: HK2PR02CA0190.apcprd02.prod.outlook.com (2603:1096:201:21::26) To AM6PR0402MB3911.eurprd04.prod.outlook.com (2603:10a6:209:1c::10) 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-microsoft-exchange-diagnostics: 1;AM6PR0402MB3623;6:lEaihKE5dmqEN87GsSxlyTNVRTBC3r6OFvEO0yP5AR3jUGghtLQ8StJm9Vtgi4Jej3Phlg8iVmlrwQuUBzHoGnlJvWQ+V81IOHMjjYdYVz6G8SvdZx3fq5MNQ1F82S1e/uavoahifp0EWjJiYLHaXn1nkMIpAv5BnnkCzvVf9mXc08LrjK1qiOA6hDmv3rErvOHaN0i+8Bm7+J2G0KOvxv6K4U5N2rSjvxevx3EgtbGawcXC61418dR06+LJiy2ACyv+v4J3i7wwB25FRW8J8Ty7GuaYV+Ov+6+oCy8uacSOxnpvNL2Gigmz61CAje+FWLDevndUztzwEehs502KCSCFz77YVWuSx/U3CdPgbSQKcxW4ugAEHc4eIJjDFHv2M/+LurToTlP4RLwFk9afWAxmVGLlk2qYnceBNbWrWPYQiixhgwcgy5pbdKVUAVx/luw1KABZHoMZE+oKNeWtJQ==;5:57ekaKTfQ7DhtSNx07GtfwWzpdH23ftkXwN3c0L13pnMe8KVzkyy3o8fIf0P6+9pMR3SdMa0oBwpYEa8NmSyInGP2Tc/zeZ9EL0VaqTsAt2c/6/u1KsorYJgFW5+lxaV1DtpZxyYOTv79eBeAwsjBY6IrEIja/OMjRnslE9e6Uku0sJaLdgjshEj0d6DzcpGbjNolCA07KFIE8ENy+F3xw==;7:vKDfX/790mKKHRfirimajZUlvAjEhL37UH+bK5cW4fLL9FQgnsiKI9Tfznlyzm95VlYN6iUVTtKtQArqOB69vf3WsQhSxtQnBFKDNfzjmwHUgnSv7YUY7tQm3Lfpsa4Y1hNxagV+t41EWRTqcbEi/g== x-ms-office365-filtering-correlation-id: d2a3a13f-a2a2-43b3-1b2a-08d68ce20e1a 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)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR0402MB3623; x-ms-traffictypediagnostic: AM6PR0402MB3623: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-antispam-prvs: x-forefront-prvs: 0941B96580 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(376002)(366004)(346002)(39860400002)(136003)(54534003)(199004)(189003)(8676002)(106356001)(50226002)(2906002)(68736007)(7736002)(76176011)(256004)(97736004)(86362001)(36756003)(2616005)(186003)(26005)(110136005)(81166006)(81156014)(476003)(99286004)(486006)(8936002)(11346002)(102836004)(2201001)(71190400001)(52116002)(6506007)(386003)(71200400001)(316002)(6486002)(2501003)(7416002)(6116002)(6436002)(4326008)(66066001)(53936002)(446003)(14454004)(305945005)(6512007)(478600001)(105586002)(3846002)(25786009)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3623;H:AM6PR0402MB3911.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: Iu3uzaHocuv3Y5uK4K3DCIR2vZYaS7w1l6F9fHTUXBCuvYonLszeCxrpQGRWQ3uDeZqJXXLt7a6+g+0ISYuXPlFBTBzsxIuxCfWuRQB5BytBrB95iBwm9vZYeGVFq2PnU4cm9677KMRslS3A7ZcgQnm2o21zRtDfDFMM6JtuiIyu05y6c2jgf13SA6i92bFvEnKIjLNqWJUW5Wd0uSeQ406qrFsyDInF2lj/clES1Ndv6IUwZSuLbQOjUzjK2lG54RzRsBMTflpRsIyqUpDrSInRNiciPoxrF1LM0nSdGZSoAUJJ5OoFmN2QJzjKupghj8j0xfp30GPTaLQvg62GSj4vRTIhvAiyMrJCLk0HSZ0fs1r1Ge8ANhF4buz79gC9Om5BG1h9sPAEqbffCbbyiEUgGuTSRDQOHYRwIgfzMac= 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: d2a3a13f-a2a2-43b3-1b2a-08d68ce20e1a X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2019 09:52:56.3564 (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: AM6PR0402MB3623 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- ChangeLog since V5: - add a property in each thermal zone to pass resource ID for thermal driv= er. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 28 ++++++++++++++++++++++++++= ++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/d= ts/freescale/imx8qxp.dtsi index 4c3dd95..88eb04b 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -10,6 +10,7 @@ #include #include #include +#include =20 / { interrupt-parent =3D <&gic>; @@ -116,6 +117,12 @@ 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 timer { @@ -443,4 +450,25 @@ power-domains =3D <&pd IMX_SC_R_GPIO_7>; }; }; + + thermal_zones: thermal-zones { + cpu-thermal0 { + polling-delay-passive =3D <250>; + polling-delay =3D <2000>; + thermal-sensors =3D <&tsens 0>; + imx,sensor-resource-id =3D <355>; + trips { + cpu_alert0: trip0 { + temperature =3D <107000>; + hysteresis =3D <2000>; + type =3D "passive"; + }; + cpu_crit0: trip1 { + temperature =3D <127000>; + hysteresis =3D <2000>; + type =3D "critical"; + }; + }; + }; + }; }; --=20 2.7.4