Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4621843ybi; Mon, 27 May 2019 23:06:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFAZKUfRdjDOlQyioBDl5eH5YEbr4Q7BpZudrGiJw5ZkWoEP5kr7Ftt66mt8ux0T0kVtX9 X-Received: by 2002:a62:75c6:: with SMTP id q189mr138191471pfc.98.1559023585514; Mon, 27 May 2019 23:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559023585; cv=none; d=google.com; s=arc-20160816; b=kk/z2h7pV7fOjojiZWY+jqjOjWvLXIelCVzgNNnIsOlZvP3M1OJg25MWsNIJnK+JGj RtMFEO0+J7eMUGzZU9Ob5sSVpxRCo5o1g1URlwVkMjo2sPItXWZauJawiXKk/GSil9Ed mBM5T76p0BDF0NpUCDJrvzD0bNbelAC9p4AN/+3wDTrK8pJ9b7WXN6U1Yt7aJapJsjzS TEdXFhsBhk32J/4J0VKHso4g9Cj8YkFJltfQ81NE4ugDH9LSy5F04oU+knkl2A0IUZ7d WvGLTHQvQqiJkqWFfkcY8ETYzJLRIb3WCjh+6yI4ntwbncgJBNgFwthpc5XLboTDpO0e bUYA== 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=ctmLHqFRQyKGAL5Rj74MvQGjSwQJ22YZ8K2em8fSebnFWpV4NTeotOd70Af4CdKAt3 l0gnZJfYxYt/cXF5mNH875KHAEY/Pfq6wP1orf/H/5TIGOn7xp49HW9X2dtu8dK/2cfE VBI11oNNb7J0P06LrjZaLsw6NSpnbpmg6A8YBQd1Og+xMViafmir0CHiXvB++llHS7yx 0JAjJCuFyhP84N0d58Ye87T3mH4XIOoFNM8zEBRRKYSdBwH1KmfU1QYiXKWFRTKDpIB8 dBR4p5vxzbQVdrdiRoLRek5VgD0GYZcE3zoLbH/VgWKJg1oHczamK0BOhJkaipODWMRG XtIQ== 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 d10si21716730pla.406.2019.05.27.23.06.10; Mon, 27 May 2019 23:06:25 -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 S1727678AbfE1GFE (ORCPT + 99 others); Tue, 28 May 2019 02:05:04 -0400 Received: from inva020.nxp.com ([92.121.34.13]:55816 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727619AbfE1GFC (ORCPT ); Tue, 28 May 2019 02:05:02 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DEF8F1A0D99; Tue, 28 May 2019 08:05:00 +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 6A6C01A0D8F; Tue, 28 May 2019 08:04:48 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 866A0402F1; Tue, 28 May 2019 14:04:34 +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 RESEND V13 5/5] arm64: dts: imx: add i.MX8QXP thermal support Date: Tue, 28 May 2019 14:06:21 +0800 Message-Id: <20190528060621.47342-5-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190528060621.47342-1-Anson.Huang@nxp.com> References: <20190528060621.47342-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