Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2740198ybi; Sun, 9 Jun 2019 19:53:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJEZvCvrHu3SvTHL6ixVD0jN8swX1msuRQ9ngEOixseuDojYL+SkoiD6zE2rhgxIcn4GYv X-Received: by 2002:a65:5302:: with SMTP id m2mr13558402pgq.266.1560135197075; Sun, 09 Jun 2019 19:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560135197; cv=none; d=google.com; s=arc-20160816; b=byhWNOkUDWQErnHTmDjJDpeUfa+qBTtrAUv6kr9O5D3oyd9GFHvFlWc99bQixdZONG xV4Lt90pRzfM0fpr3Ido9EZHkT/wcgce3R4fXA1WcPIHzePcowI8FwVJOxDB9nUShn1j NH6pljP3TAly7KDazHhHo08km5zEtdbRfmVd1zisPk6r9PfWopLft0TpxFjFmVQE88oh X7uXgQGlqv5VqUrZSh2KJSm20Urx5NzW6ODB9MZSMi5/VAiqDLEPnustrsuIetNyZyYn o9lozEBiDQKr6+4CSIvU8V6WjwnOEs7WZHPm/SiPmh39N6iffUHF7ZbzjjnSl6r9a/oJ TcOg== 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=9Ljh0BiQAO4wzri3KGc3q+LNDFWU4/zq7Y4gJdr4cKw=; b=iSIQIUxzhKcHy0KRpmHIwq5F050M/UZLPfA6iB8UvNcA25gcBzAZ8dkPaWnxZO701Z aHuhzhZA1dfXN7EJSve1R2MluR31q7ngjGopJ2/a4FpdEgzwmEt5mgyIv059R52DOQyQ 2IRysjLzARHc18buvnUtT7wCaYfIW8bMOIS5DuWF0fmSBN9+lLrdtYb9GjU2waHSYaYR M4YE8//X9NhMFunNEtTpeIxkNFbw/e4Zu9QX9P5ZzUfe9voBArj37f9C7axjGPGLVd/O mwmUDxR6VCYrmzQ5Jh95/6e1QzD7LO6pgsdyn93oWXUB69pq5l80XkY+Qm//8SKU+Acr 0+yw== 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 n11si8391883plp.361.2019.06.09.19.53.01; Sun, 09 Jun 2019 19:53:17 -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 S2387533AbfFJCvy (ORCPT + 99 others); Sun, 9 Jun 2019 22:51:54 -0400 Received: from inva020.nxp.com ([92.121.34.13]:45416 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387490AbfFJCvv (ORCPT ); Sun, 9 Jun 2019 22:51:51 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6A0951A074A; Mon, 10 Jun 2019 04:51:49 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6833D1A0732; Mon, 10 Jun 2019 04:51:34 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8F70C40310; Mon, 10 Jun 2019 10:51:18 +0800 (SGT) From: Anson.Huang@nxp.com To: robh+dt@kernel.org, mark.rutland@arm.com, corbet@lwn.net, 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, mchehab+samsung@kernel.org, linux@roeck-us.net, 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-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V14 5/5] arm64: dts: imx: add i.MX8QXP thermal support Date: Mon, 10 Jun 2019 10:52:54 +0800 Message-Id: <20190610025254.23940-5-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190610025254.23940-1-Anson.Huang@nxp.com> References: <20190610025254.23940-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. --- 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 b2cb818..12044be 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>; @@ -168,6 +169,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 { @@ -536,4 +542,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