Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5609226yba; Thu, 11 Apr 2019 01:41:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWh3RH2TX1ogpa9r7CmQrhjQSL1eE55Uq1g0XLSoq59oCf6nOlSRyKdzXmbipL8DJEKA2g X-Received: by 2002:a63:4e10:: with SMTP id c16mr45681398pgb.302.1554972076372; Thu, 11 Apr 2019 01:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554972076; cv=none; d=google.com; s=arc-20160816; b=QnittkSSxj9MSh6s9IOuD7RPw4KSLVo3PMtlHaPkODX9jeeCEz1ed7o0YItOIju4+M XsiciAduhHfdtxz8dAGA09knUi124xit25VK70Uwa2tZAm0TAkCEpFkyP7kQrJZvW7Go 6Wi8D1kR346E75LbiX7+JZUhhYLEErOabkhEpz04Is5+0w49q3dsp5dhmxiHTW18nAVn tvwTYpeUZ1Mcaa8GQAeMtvM/D4Lnv+qWSzLmuSqv9gLR6hp1BfJrEmIEZlebjILWN6B9 CyXMNI+FRy4bfAjdpbo8tAq5RsJ3vXQPiS0CTPNCdOuN20Il0PviMdl+KJHczuU5NTPQ jYHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=qtXIMXsgEEPYLw6DMlO/i8rRCNV/L/wEpe8e4TrQXtU=; b=ps2sj7PUO84HitNe6r8/W7nX3xjekRNahnSEcdtsXSOvhMtyOcrfIfmhshFOZkRMt3 S7ddv8Ro0PmtfTcka3fQdHo5ILbI3IwNQCKTigou+58lUS2QycJnXHoWAbhWl3ymNqLO S4r62vnLDBLAFeOzAnSClTlrOsgnXcJumzRldsQecEh69FFWHAS8z78ichwpbv9rmOsR Ipn4yMcM9+iyp6JJGyUHpLZ6EjTyDyfDNRUM3BAS5VGMWi6i2BNhbevaADajEP8VktZw 7eoaFO8fupINmJP7k8Mr9clsJTb60EAxIjahHy4LV5+c7AbQXI3U/IHl2/Ztmni4EZGM bqXw== 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 u37si33583396pga.301.2019.04.11.01.41.00; Thu, 11 Apr 2019 01:41:16 -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 S1726872AbfDKIjl (ORCPT + 99 others); Thu, 11 Apr 2019 04:39:41 -0400 Received: from inva020.nxp.com ([92.121.34.13]:57132 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfDKIjl (ORCPT ); Thu, 11 Apr 2019 04:39:41 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7B23F1A008E; Thu, 11 Apr 2019 10:39:38 +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 BA4661A0025; Thu, 11 Apr 2019 10:39:32 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 67E43402DB; Thu, 11 Apr 2019 16:39:25 +0800 (SGT) From: Yuantian Tang To: shawnguo@kernel.org Cc: leoyang.li@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, Yuantian Tang Subject: [PATCH v5] arm64: dts: ls1088a: add one more thermal zone node Date: Thu, 11 Apr 2019 16:32:36 +0800 Message-Id: <20190411083236.9377-1-andy.tang@nxp.com> X-Mailer: git-send-email 2.14.1 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 Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang --- v5: - update the thermal zone name due to the length limitation - remove cooling map in platform zone v4: - use hyphen instead of underscore in node name v3: - use more descriptive name for each zone v2: - Add more information about sensors to description arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 28 ++++++++++++++++++++--- 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi index de93b42..de39672 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -129,19 +129,19 @@ }; thermal-zones { - cpu_thermal: cpu-thermal { + core-cluster { polling-delay-passive = <1000>; polling-delay = <5000>; thermal-sensors = <&tmu 0>; trips { - cpu_alert: cpu-alert { + core_cluster_alert: core-cluster-alert { temperature = <85000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit: cpu-crit { + core_cluster_crit: core-cluster-crit { temperature = <95000>; hysteresis = <2000>; type = "critical"; @@ -150,7 +150,7 @@ cooling-maps { map0 { - trip = <&cpu_alert>; + trip = <&core_cluster_alert>; cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, @@ -163,6 +163,26 @@ }; }; }; + + platform { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 1>; + + trips { + platform-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + platform-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; }; timer { -- 1.7.1