Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4507280ybi; Mon, 27 May 2019 20:18:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmRvVwqZbCo35tkT0qJt5T8A9Ye6/XvlPtHXJ2JEPP1k1KDIh1kOoT5iQyIz9qCAWf4pTZ X-Received: by 2002:a17:902:2d:: with SMTP id 42mr133239137pla.34.1559013532580; Mon, 27 May 2019 20:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559013532; cv=none; d=google.com; s=arc-20160816; b=HSQeZEr/N8bEaqVrGOs6U+qeJ9nIeyKe4Z7VQHZdKlcTaCr26U8dsJvtXcQjKPK7LJ YsKNtlR0fSKN98c4EDd7VdusqE9cV9dar3g6m/BT/QUGmdoGf8sZ005xBr0EU/qWT4rx QyOpvh1zMMt031F4cOS3YrtI30sUB/Yn0Nb9tqe6OpnFUbfLQY1qRUrlIfUsfwRu0MN+ HPAhZDSzpp7Lcyd2Nj0KspVcEbyJWZ223uys0UD71UvrM+ZKz8vhpkWePmkZ3Bk2Oicw la/kr4Y3DvZ0tdf6pVBoVZXmZfCMKiWqYLVhFQrQdJwqoIOsHco7Y6t+EbU7g6lKsg1N RXmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=akUiNkyammm6cj3kWY1R/Ap9RP1r839eaFuEoet4Q+4=; b=prM3yG1rLrw6fbLO0uOTIypa0J506opK/RU6MUqaYgxqbcOMCgwM6uVSBsH6BstdNB zaQVrmsHPhCwWrrX+27qAPxZ5KKnwd3ei5MBV6ygqT9VFshaj+3BIGjNltoxK0LE+pdY 8sb2dwIVQpfFThccDdm/WU9gDetSCpCHRNMwNAQpBmDTDzhdUMzNMPUsOnOXDcElnhzB NVLwOjxUpFURqWhJUCppsV644bte+2zTX806jbCpFgEMQx2n2tMYsT+5yokA4LrRsIPD DLiQf+9S0Sj9ZTjWJd33TCz59GaFve9dMW9vGa/xyAfnQ9Qluj9IeeR1eMtuM24rG9qs 38EA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 31si5756353plf.195.2019.05.27.20.18.37; Mon, 27 May 2019 20:18:52 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728036AbfE1DPj (ORCPT + 99 others); Mon, 27 May 2019 23:15:39 -0400 Received: from inva021.nxp.com ([92.121.34.21]:57608 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbfE1DPf (ORCPT ); Mon, 27 May 2019 23:15:35 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CA3DF200CFC; Tue, 28 May 2019 05:15:32 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 513BA200CFF; Tue, 28 May 2019 05:15:20 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E108A402D6; Tue, 28 May 2019 11:15:06 +0800 (SGT) From: Anson.Huang@nxp.com 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@nxp.com, ulf.hansson@linaro.org, peng.fan@nxp.com, daniel.baluta@nxp.com, maxime.ripard@bootlin.com, olof@lixom.net, jagan@amarulasolutions.com, horms+renesas@verge.net.au, leonard.crestez@nxp.com, bjorn.andersson@linaro.org, dinguyen@kernel.org, enric.balletbo@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V13 5/5] arm64: dts: imx: add i.MX8QXP thermal support Date: Tue, 28 May 2019 11:16:54 +0800 Message-Id: <20190528031654.43801-5-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190528031654.43801-1-Anson.Huang@nxp.com> References: <20190528031654.43801-1-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and below my patch: https://patchwork.kernel.org/patch/10962185/ --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 9f52da6..4448c65 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 / { interrupt-parent = <&gic>; @@ -162,6 +163,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 { @@ -530,4 +536,35 @@ power-domains = <&pd IMX_SC_R_GPIO_7>; }; }; + + 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"; + }; + 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