Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp457473ybh; Tue, 10 Mar 2020 02:00:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsiEvY1kZ44JkjkZ/GmOJccoOXH6rEDcBWxTJi6kVdwi/koanmLsdVq9nGhot5HcnZepRw7 X-Received: by 2002:a05:6830:23a3:: with SMTP id m3mr4820257ots.265.1583830838349; Tue, 10 Mar 2020 02:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583830838; cv=none; d=google.com; s=arc-20160816; b=CNcib8YwNUwQ0aBgAaMmJOgPe8GO3V8+DPljNbwe76C+D6Fk41/UXhgx/2QtMBXAwD kasefBsoXdecHQq11BeK/B+kalcIhZN28l8WjUcQCjDdwUxzZ/XYbZtiTC9S76E4XVpu cMp0pf/B80mZ9Sm6q9EyUF931KVt1PXAcuU3VZzM9rBfJUAb7L+rzP1HDZBfe2YPrDBv QlJUzVv4J6lWCx7odRwSGCf0PZKU+Np8OdR6HRCWYClBfxJ0SKZHXMqRyE8ype7bvfqz /uY/Kp0rZ5v6fREBypwylfdz3Z6qT0lneVB3MwdC/vAexLon3sD0DcUNSIYqURlTwFiX 8BAw== 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=sMZFa35ixy6I8BLK+/2bYkBEv3mcERviQmWzkhXmMr0=; b=hCPQSSHxIExcivq/MHA5EjZH76wQhnq0uZGf8nwggEU9rfZMqLePuRxQ2oRIDZuSLW LxnAcl1O16f/RiwTm2eRpmlwanWpmzfjd34StR1Vi2Q20aZQQJCFhh+/YVsBIMbpm2KW Fp8fwJSRUb/oFypx5SAapOHMjsJpWv2MpXa2PmzGWuvYy5FgbiRg0E7llnuMOSFaxN25 BC9pp/G3ktsYijnqjSAvYq0VT5PnmWJp4nn9fnFDWo+DeVoYf1A+8AXf4HWOblIIPQZg buI8qKNQ49UB5Da/k23gtZDZdj0MnswWRnXFquGwkP42Ua/wV3WhZYJYW1jJa/xfggOh fnTg== 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 q126si5575570oia.8.2020.03.10.02.00.25; Tue, 10 Mar 2020 02:00: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 S1726712AbgCJI64 (ORCPT + 99 others); Tue, 10 Mar 2020 04:58:56 -0400 Received: from inva021.nxp.com ([92.121.34.21]:54704 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbgCJI6x (ORCPT ); Tue, 10 Mar 2020 04:58:53 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D3A4D200495; Tue, 10 Mar 2020 09:58:51 +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 3EB922004DE; Tue, 10 Mar 2020 09:58:45 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 958E8402A5; Tue, 10 Mar 2020 16:58:37 +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, leonard.crestez@nxp.com, daniel.baluta@nxp.com, abel.vesa@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] arm64: dts: imx8qxp-mek: Add PMIC thermal zone support Date: Tue, 10 Mar 2020 16:52:17 +0800 Message-Id: <1583830337-23889-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583830337-23889-1-git-send-email-Anson.Huang@nxp.com> References: <1583830337-23889-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 --- 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 2ed7aba..9b105ae 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -139,6 +139,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