Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2456232ybv; Fri, 21 Feb 2020 16:15:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwmFwpDr/Rlq/dQ3KGV6RWymVj6otJRpulJkx+YL/z7SgbzShG1qsB1O7tyddgiiDIardVw X-Received: by 2002:aca:484a:: with SMTP id v71mr4304301oia.39.1582330546844; Fri, 21 Feb 2020 16:15:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582330546; cv=none; d=google.com; s=arc-20160816; b=AZzy42/4IvT4dknBr+ii9lDZn1T0DbmvKgfWUw8rrLzhSVA3TYluSIdpmc04jM84wP r8cdgvM/guiLo6ECrc56Ubvlsze07jgMhQVwUcIreqjDJqhLZD6JpKbmojPx0DTTkG79 E0lixHdMYjK4vc/jWg0MPBGl8NFa247jT7GSn3dBfKwAXfajKrBOG4sWDqukVqS7VQ+B JsFHuRk2sbJBhKqfDVR4o8bKCBDMzKAtyfBmbqFWqR1RLQib/5Pa6dqmSKbDffyajiKO MlDXvvk5WIORcUU5JlAdXhikUxJdP9sVN2LRdx5SuohQdJ447SQIxeJPe2MkjWYQEzYP OGbQ== 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=h3G0vRGKrbD4VM2f8f+myR1mPgZxG54yCtkKBhuwi/hbA72QnaYtzrpBoKrb0DI86D KreZBqzvJB3ewKwExw/pwq+aI4G1qCjq79D64RTJ3ELuxorCAuhXxebcRTEQF1P1etWm bkOJVwFTc120XfKiLZKM5qrmy6wLM2uGFe0rqwGExa3YbJDg8iJBYTg5F/E1J8OPVOSo Jb6z1IxWOGfkl8qrYzI8myXJGfQCoNmcLQvAOEWnzLQFRQPEpoQx+yCW9XBOhHXTWPVS 6VZup4NiVNCFd96IJwTU88PcxYCl2cuz06ZhvaoJ0GMATf0lg/lVb24AzlffSuA+mdtW yfRw== 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 z199si1401781oia.192.2020.02.21.16.15.34; Fri, 21 Feb 2020 16:15:46 -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 S1727169AbgBVAPW (ORCPT + 99 others); Fri, 21 Feb 2020 19:15:22 -0500 Received: from inva021.nxp.com ([92.121.34.21]:38768 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbgBVAPT (ORCPT ); Fri, 21 Feb 2020 19:15:19 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A2722201B49; Sat, 22 Feb 2020 01:15:17 +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 8392F201AF4; Sat, 22 Feb 2020 01:15:01 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 05562402E6; Sat, 22 Feb 2020 08:14:47 +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 V16 5/5] arm64: dts: imx: add i.MX8QXP thermal support Date: Sat, 22 Feb 2020 08:08:52 +0800 Message-Id: <1582330132-13461-5-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582330132-13461-1-git-send-email-Anson.Huang@nxp.com> References: <1582330132-13461-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