Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1883043ybv; Fri, 21 Feb 2020 05:07:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyaCWiTdlXltmFft6X07EDeZZ9nBNLZ5rNFjvRtcMXLT9gfPzpbPkNkJYmZUC3JQXp+FRT1 X-Received: by 2002:a9d:4c14:: with SMTP id l20mr27844283otf.125.1582290442546; Fri, 21 Feb 2020 05:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582290442; cv=none; d=google.com; s=arc-20160816; b=nTVQo8X1yO+2cLtCOKgAmOBvTDdJEqwTkh/B1zs8EQzjEfDVkawEPPEuSkOEmExEXD H9HT8Jg1UjVBY9Q1NSA2BbMfoVDmvqaQpk0vsKxO+1Q+IEP5wPVaYtEgC9CcLtiw6+cq EGBXLF/nMW2iT0UA+YFsGMX70YTd5n6LuG6cGSRx+RWXAL0oZfltqVqJ9modkYkO2GcW q40sCAmi4N1rCiLW/23J8VUEIMe4n/mrQA1bX3C/F0uL2aB5CNla1eCMcPFzu7C6fhnd UoQBcIHiaS21wMSAlJUDs16pw/RwAPynO+RCN6y48y0wc/tTQSpXCFonk2WIX1fGApLe wPBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Jmee0gPaCTfsOpWSoQjCJFto4t8cMGzSFxQTb3xz48k=; b=AxC3TGyZ1gdWENWuPMFF+aP9S7yYHkIBAOl+pM0cB3N9tK7ISTMBf1xuyuotz1lvn8 94hPpp1GkMJ3I793dZ3LeGr5+oFlZlUg47cOfmabpO8PFp2jAwcj3xBvfmcdt4iPFJsr NZLVQRQSJtM0pywHKkmowmDp5R47io7lH/tZ6eHxhXzMEUKw1jwmAsrRR3LCM7OlOxvg M6Lh8+rIVP2hFBochgqQAd7CmmC5lpUJex4rKcgkOtSjiSK925ar0Y04q3SbYBIJRVwI 3dSp3fQ0/tUKpyRIZXyS9vUxNXNoLYNV1XSFMJqLZMYc4MC5rT1mEEx/v0D82AQaSapE pTWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tOVwwD8q; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u132si727242oie.250.2020.02.21.05.07.02; Fri, 21 Feb 2020 05:07:22 -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=@linaro.org header.s=google header.b=tOVwwD8q; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728396AbgBUNFq (ORCPT + 99 others); Fri, 21 Feb 2020 08:05:46 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42386 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728085AbgBUNFq (ORCPT ); Fri, 21 Feb 2020 08:05:46 -0500 Received: by mail-wr1-f68.google.com with SMTP id k11so1975320wrd.9 for ; Fri, 21 Feb 2020 05:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Jmee0gPaCTfsOpWSoQjCJFto4t8cMGzSFxQTb3xz48k=; b=tOVwwD8qmpuy5R/iusBnSTi8xzbbMZqdDcRX1UOwcX8kYv5EzHXV5Ir5H2I6/HY6Hv GHf+wxF/Eu/sDmuamXnYsjUsxTYXICaKH1O67ZVlBrWMNCXCIY8FwA5CAIT5tRVzIm5R SzzKxvH5U9ZGw02P+TWARGK1gYUEDSeg0Nil+OEPJxqUoNA9ceBM1Xs+S2wAuJCu2a2t BcG8GYWfdv51wj9aVj+vQ6z1GkOcoaDsm2wii0rDsEMImic2AUBX6vBFegMWdWgq+3Dv Xqma0ebK4QQ3qXwG/wD/JNMq7nmiAXc4fiLJTXOZPl/Fg4IPEXNX+500312IIPGI2tC1 Ht6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Jmee0gPaCTfsOpWSoQjCJFto4t8cMGzSFxQTb3xz48k=; b=BRT6BZn+Vav5h934OWKWjDgECTAHGKTjZA1k6Vw4Zeb8AdzeA+k5BwkT3+40JJ7bXg TXJSrIXs8Pje2Avnp1DJISMbQVciLvzBNrR17eka3khbMStxaEaS/wkjxmJMD1FHHu6U piLoU6DPowICb+IalymA2e+MC4Pq80pMKdXTIDquCz3I/uYQAqHAaCYuvCTITSyrJ0JZ 3CP539d8KDWm9yxhSAR7R9Qvk5z5MNZNntOmwfNFiIkThQse8Ri4e+IFp1LBod0r0QeA xkhodqVfY5cX4XTCO6VGndECcdF3dqvmwHRgibZgnSmAKYvPp0kr2RhkStHXSra5ucfy BpxQ== X-Gm-Message-State: APjAAAXKaWF7JqUBqx/HOQrLaKwZpDafHUVOiBFP80pFaOoSYlRxHYCf PVFsAhNJIc900N7x7vEtqMyKOw== X-Received: by 2002:a5d:53c1:: with SMTP id a1mr47209498wrw.373.1582290343755; Fri, 21 Feb 2020 05:05:43 -0800 (PST) Received: from linaro.org ([2a01:e34:ed2f:f020:2dfb:b5ce:9043:4adb]) by smtp.gmail.com with ESMTPSA id y1sm3422496wrq.16.2020.02.21.05.05.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Feb 2020 05:05:43 -0800 (PST) Date: Fri, 21 Feb 2020 14:05:40 +0100 From: Daniel Lezcano To: Anson Huang Cc: 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@kernel.org, rui.zhang@intel.com, amit.kucheria@verdurent.com, aisheng.dong@nxp.com, linux@roeck-us.net, srinivas.kandagatla@linaro.org, krzk@kernel.org, fugang.duan@nxp.com, peng.fan@nxp.com, daniel.baluta@nxp.com, bjorn.andersson@linaro.org, olof@lixom.net, dinguyen@kernel.org, leonard.crestez@nxp.com, marcin.juszkiewicz@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH V15 RESEND 5/5] arm64: dts: imx: add i.MX8QXP thermal support Message-ID: <20200221130540.GD10516@linaro.org> References: <1582161028-2844-1-git-send-email-Anson.Huang@nxp.com> <1582161028-2844-5-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1582161028-2844-5-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 20, 2020 at 09:10:28AM +0800, Anson Huang wrote: > Add i.MX8QXP CPU thermal zone support. > > Signed-off-by: Anson Huang > --- > No change. > --- > arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 36 ++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > index fb5f752..0a14fe4 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > @@ -11,6 +11,7 @@ > #include > #include > #include > +#include > > / { > interrupt-parent = <&gic>; > @@ -189,6 +190,11 @@ > compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt"; > timeout-sec = <60>; > }; > + > + tsens: thermal-sensor { > + compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; > + #thermal-sensor-cells = <1>; > + }; > }; > > timer { > @@ -586,4 +592,34 @@ > #clock-cells = <1>; > }; > }; > + > + thermal_zones: thermal-zones { > + cpu-thermal0 { > + polling-delay-passive = <250>; > + polling-delay = <2000>; > + thermal-sensors = <&tsens IMX_SC_R_SYSTEM>; > + trips { > + cpu_alert0: trip0 { > + temperature = <107000>; > + hysteresis = <2000>; > + type = "passive"; > + }; Same comment as previous patch. > + cpu_crit0: trip1 { > + temperature = <127000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + cooling-maps { > + map0 { > + trip = <&cpu_alert0>; > + cooling-device = > + <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&A35_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&A35_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + }; > }; > -- > 2.7.4 > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog