Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp197575ybz; Thu, 16 Apr 2020 22:49:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKL/Cn8ajOY/Arx9B3o89ubCdmGdO2Re4bTCgefXPETiYgmZIit1PBCPVl3gVfTh84OUhUM X-Received: by 2002:a50:de44:: with SMTP id a4mr1501396edl.56.1587102582264; Thu, 16 Apr 2020 22:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587102582; cv=none; d=google.com; s=arc-20160816; b=uO1H7btu9N4aHhXO5e1SyHk+L+UNzyhi/al7X2hieJUtM8i9gVo5hLNPEcpVDOgVPq N6QHY/Djz45N6UWCK60bu3CeW/nl81/9Ds4btvqrGCTSU4PXXphbYEO/Pg5HwDV0i5YU q1sIXmEJTmkDNY3tKeGd6D1kRBwzJOrLFzSZqzFUum6qRVyZOwwFeShKtXdrw0G8pWrv 7WzkGNgmraIVQlJZgkpUhJ3H0EfNByyqdBgh56IJrRZS5jhP0jQSHQedki0gdNFuLejc 9zV48gkBzbupy4KgfBgHWhzjzNkcGju4apZCDB8YvNqB4Rl9OX46SX8NyUBMPqOLqg/B Fpog== 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=s6WP9RDq+3lTZc8qdh21Z3DyBY/ul0PN+IVUtKPl/IsfgSyKhFvvHhbdHIhUh1x+nL +s8/6Wz3Z2kKGLf+u4DDXJuPLHlpDM7H2WWExGgPFDZ8Vi62axvPX13lrl9dnCWZsThX pjyXAMQCAvOOx5UuDy4OHNPbpZBoFN3azFQT0dEO2cKafT1XOKtL26RbkrwDS8u5yUDP Gprj27manXv53EjeP3avElV3fMCKn/IClvnYwErAqSTfoXl8B+PF/dOnUvd6ZX3RQrA9 5olA9iX9x/nb+BPVpezLeHeZw25gixH1MNczmBU93QT5ixwtKsbsKKhLdiRdct5YOtNT WR8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id r27si6966103edc.594.2020.04.16.22.49.19; Thu, 16 Apr 2020 22:49:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726493AbgDQFrZ (ORCPT + 99 others); Fri, 17 Apr 2020 01:47:25 -0400 Received: from inva020.nxp.com ([92.121.34.13]:47552 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbgDQFrX (ORCPT ); Fri, 17 Apr 2020 01:47:23 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id F311C1A10D9; Fri, 17 Apr 2020 07:47:21 +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 6AD321A10D7; Fri, 17 Apr 2020 07:47:17 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 89DE6402A8; Fri, 17 Apr 2020 13:47:11 +0800 (SGT) From: Anson Huang To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.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 2/2] arm64: dts: imx8qxp-mek: Add PMIC thermal zone support Date: Fri, 17 Apr 2020 13:39:06 +0800 Message-Id: <1587101946-19495-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587101946-19495-1-git-send-email-Anson.Huang@nxp.com> References: <1587101946-19495-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