Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2077067ybh; Sun, 15 Mar 2020 18:34:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsWxEvJkiqAEH4Qcuao3Y2QUga7fAHEDpuIp9XXHy+kpeKUgPL2gpwR4yFBmbEW3aa4tJhd X-Received: by 2002:a05:6830:150f:: with SMTP id k15mr19253279otp.251.1584322478029; Sun, 15 Mar 2020 18:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584322478; cv=none; d=google.com; s=arc-20160816; b=oXcAfukaceBm/Hy5lv7qf0W1wrkx/63zRmmx+79bBENNTExH423lMNtrBolYryCmho tUzPlwa2LI1vi0NWtv68QjwQ9AtBPHT/SAYexocg92G8+h7wYrrTJqsrLhMbGqXu9a7h g9JB+uthJza7uLyASYWh94JZdm0FuU7ZJ/0ZCYacpxceXVx5iDUljml+g4nEmwsJW7V8 IcVQh2dGDbsQX7vO5VDxm9YXpOawjSL3SgVVWAAkwgZzfmCaCzhGmnG2jyyf1vvo/bpM Ka7lvyENZv9lyVAswtVATcsttECPqy+j6h/fozOvBURaUPdS6xSOgUqHRsQkMC1NZMNb lZJg== 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=R/Tq4kfnUmpfvtbbN4hGjNEbnDIwlgHr+VcbUQdH+mM=; b=jHq6Zv3B5yiCjcUeOvccYYmiYfc6Gljqjestz3hD3kn0hev2/X9bbaL6WjsU7M1KNp FI8DjOH3Y3ssztJJEeUvLvc3wc7Umso3yLpCDBWKj4ZZcqr/P87Mr712iHfrgJIn/O9r wKs5sO2d/tSXSCxX+VLAcB5EcEacF3NvVLLkwhzs0fsfORbPAEesFgOHv1IWxFr8R4Ze 1NafSA5qfCcZMFS09Oc0lUMEK8qIReu2wCKsd5Ka6QPKsDF083tt6jEMskfTHurBuUVo VxDFF7tPUSZNKkfCvc5iibYRR+8jf0d+kcEtJE5Y/fcsiIUbczQu/2mto4mjGyxYS0V8 Np8g== 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 l19si7753519oii.54.2020.03.15.18.34.25; Sun, 15 Mar 2020 18:34:38 -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 S1729422AbgCPBda (ORCPT + 99 others); Sun, 15 Mar 2020 21:33:30 -0400 Received: from inva020.nxp.com ([92.121.34.13]:57156 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729334AbgCPBda (ORCPT ); Sun, 15 Mar 2020 21:33:30 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 1ABA21A07AB; Mon, 16 Mar 2020 02:33:28 +0100 (CET) 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 77E951A079F; Mon, 16 Mar 2020 02:33:21 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8259D402EE; Mon, 16 Mar 2020 09:33:12 +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, abel.vesa@nxp.com, leonard.crestez@nxp.com, daniel.baluta@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V2 2/2] arm64: dts: imx8qxp-mek: Add PMIC thermal zone support Date: Mon, 16 Mar 2020 09:26:33 +0800 Message-Id: <1584321993-8642-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1584321993-8642-1-git-send-email-Anson.Huang@nxp.com> References: <1584321993-8642-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 i.MX8QXP MEK board has PMIC thermal sensor, add support for it. Signed-off-by: Anson Huang --- No change. --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index b1befdb..ff5695b 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -154,6 +154,39 @@ status = "okay"; }; +&thermal_zones { + pmic-thermal0 { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_PMIC_0>; + + trips { + pmic_alert0: trip0 { + temperature = <110000>; + hysteresis = <2000>; + type = "passive"; + }; + + pmic_crit0: trip1 { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&pmic_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>; + }; + }; + }; +}; + &usdhc1 { assigned-clocks = <&clk IMX_CONN_SDHC0_CLK>; assigned-clock-rates = <200000000>; -- 2.7.4