Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp106939ybv; Wed, 19 Feb 2020 17:18:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwsbOmWv/YeejTFxrjKr+/BNA+HcNVXxseOtGzMYauQQSj+DRZuLGe21x+aexZkwZ5h8cPd X-Received: by 2002:a9d:7f11:: with SMTP id j17mr23154917otq.281.1582161511707; Wed, 19 Feb 2020 17:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582161511; cv=none; d=google.com; s=arc-20160816; b=t6HpnXApL2JrTzFLTVBpG5mGMoHTpXDWeOqIADSp9jyUJGDJ6NL8aL8ACwH+Pp6w36 qhQ/9qpwl9oLSGGivmVwYsCs+EQ8Hzd4zKAJ9GWprOr3ZSou1AezOGy1C+AylvfBnqdB LH/FvsYWGpwG91q0QpZ++gScuJAMCIgFTvUos6kGu+savtPLvjxusUpugka3RUdY4ToL PmcupxOpudHWAej9cJGJdZWfQVKeOQ3hB3j9pBJJ+wORFY657dBmKogruX+7lnXtIQwd Z3d+rFC3Ios5xYKFfjrP9RmdEcZiB/EIG4jfKjJnc8J8JERjuXXm9hHabdyrwf4c0Eaq pfCg== 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=j9BInU3WkavBakjGXAxj27700xsJnyvl6aeEhBxrEXo=; b=UZTJX67sOugUAvn6zBtlsFxo3AvKobKh1t8PgNk7zwabglS8kmZwP6lN7WH6D3ggZh eRHA5gn/yyB2XYO8Yt+lkUY9D0vh1oiJl+79ZBESHgeLxTSdfQ5w19Z/63SQaj2ejgdZ ui1dpsyBc5O4ThXGuRi+iBY4reERXvE/wsbWpstgIO+yDNJf1BpjSyNfKK+MKYedg2bd ZHHehWy88BtRKipQ23WPa3Wj1OKaQ8hxWxLZ8THghoN8oC5v/SSrTojIeRSpu9GvG5wz fdBu8TbdaCDs3KFC4DIjmtEJAJEfD0OfAkRrgieY6BmIBGWXZbqNlLLqqAjDvaFp90EZ IBAA== 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 m67si10483773oib.117.2020.02.19.17.18.19; Wed, 19 Feb 2020 17:18:31 -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; 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 S1727786AbgBTBRD (ORCPT + 99 others); Wed, 19 Feb 2020 20:17:03 -0500 Received: from inva021.nxp.com ([92.121.34.21]:55708 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727742AbgBTBRB (ORCPT ); Wed, 19 Feb 2020 20:17:01 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 80E03204C98; Thu, 20 Feb 2020 02:16:59 +0100 (CET) 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 3D5AD2048FC; Thu, 20 Feb 2020 02:16:43 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1AE25402E0; Thu, 20 Feb 2020 09:16:19 +0800 (SGT) 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@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, 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 Cc: Linux-imx@nxp.com Subject: [PATCH V15 RESEND 5/5] arm64: dts: imx: add i.MX8QXP thermal support Date: Thu, 20 Feb 2020 09:10:28 +0800 Message-Id: <1582161028-2844-5-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582161028-2844-1-git-send-email-Anson.Huang@nxp.com> References: <1582161028-2844-1-git-send-email-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 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"; + }; + 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