Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp228232ybz; Thu, 16 Apr 2020 23:32:27 -0700 (PDT) X-Google-Smtp-Source: APiQypLZLDIg9HHMGJhHE2RuRt1Y2zVrblghIplRBmUbEoHa/XPqFHQTGz6znoFXx80fA1u0XwHf X-Received: by 2002:a50:8e4b:: with SMTP id 11mr1489458edx.329.1587105147123; Thu, 16 Apr 2020 23:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587105147; cv=none; d=google.com; s=arc-20160816; b=efsUcwZhwRuCGAOsJvAbuHJ7fXGEBXNXxCBBx9UC7HyiL+Tjc2JZDapwJDBMvPahtB 2TiAwpR+TqeIoSIOqPrfoJuC8JCG6dnjpA93vGzD6LhG1UzPK6DWC8Euh9Z6xfROgcM4 hGs/Wdy63ov9TEQ89+6HJZVVQVjI9b+B3BpZcOO52eZ/pRyf744GGOS7ypE/qapErnX1 hpKKy7fHoD7P8eEP0iBN/cLZiTe78Qx5S+e3EDgzx+r5xELkJm8Az1Bu6HsIIhEy34ap Pw98ajJhBKgVgif9rOK7wssBoI6HEUpYsh3lme2GKp4UCHUKgSuNr14boZoZmWV9NvYP +kbA== 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=L9ViG02KWYOF0LXEq/y7gsFOX9L0IqXp/zuod8cWHtQ=; b=wPWJ8Pljs5ffRQnEQ8G85kYZeE+y96kAKYBJRUR6//W0P529kf6pt6ukHRwLzJXYWF i+CFsKk/Dzk3kNfl+HUcCYVIjpQ4UVCEvZYvus7utzk9w/DXPyjV66CocngpOKq8zEAs Ac1rNssLBlqN1IXHYcR2gdI3QIYFCqs/Z0D0xOinm6pQ7tm/UAXUYu0WT9q4WBVz9/ov 6KSc1TI11/vZGyMPpL/K6UuAzE0wJUGynSnZoGGms7bTj54gwytAgn70hcCqRpZshsd9 F5QjnhEjE1hCkmlkCNyPhwK1iXWt52VqSIv/tL4fgwPxWm49DHNOyMNVCCe/JJTaSm3u Ocnw== 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 m17si2714633eds.553.2020.04.16.23.32.02; Thu, 16 Apr 2020 23:32:27 -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 S1727913AbgDQGaq (ORCPT + 99 others); Fri, 17 Apr 2020 02:30:46 -0400 Received: from inva020.nxp.com ([92.121.34.13]:56340 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727121AbgDQGaq (ORCPT ); Fri, 17 Apr 2020 02:30:46 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A29C91A10E4; Fri, 17 Apr 2020 08:30:43 +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 946541A10EF; Fri, 17 Apr 2020 08:30:39 +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 BDDE0402EB; Fri, 17 Apr 2020 14:30:33 +0800 (SGT) From: Yuantian Tang To: shawnguo@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yuantian Tang Subject: [PATCH] arm64: dts: lx2160a: add more thermal zone support Date: Fri, 17 Apr 2020 14:16:18 +0800 Message-Id: <20200417061618.48032-1-andy.tang@nxp.com> X-Mailer: git-send-email 2.9.5 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 There are 7 thermal zones in lx2160a soc. Add the rest thermal zone node to enable them. Also correct one of the values for tmu-calibration property. Signed-off-by: Yuantian Tang --- .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 130 +++++++++++++++++- 1 file changed, 125 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index ae1b113ab162..abaeb587de48 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -436,19 +436,19 @@ }; thermal-zones { - core_thermal1: core-thermal1 { + cluster6-7 { polling-delay-passive = <1000>; polling-delay = <5000>; thermal-sensors = <&tmu 0>; trips { - core_cluster_alert: core-cluster-alert { + cluster6_7_alert: cluster6-7-alert { temperature = <85000>; hysteresis = <2000>; type = "passive"; }; - core_cluster_crit: core-cluster-crit { + cluster6_7_crit: cluster6-7-crit { temperature = <95000>; hysteresis = <2000>; type = "critical"; @@ -457,7 +457,7 @@ cooling-maps { map0 { - trip = <&core_cluster_alert>; + trip = <&cluster6_7_alert>; cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, @@ -478,6 +478,126 @@ }; }; }; + + ddr-cluster5 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 1>; + + trips { + ddr-cluster5-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + ddr-cluster5-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + wriop { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 2>; + + trips { + wriop-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + wriop-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + dce-qbman-hsio2 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 3>; + + trips { + dce-qbman-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + dce-qbman-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + ccn-dpaa-tbu { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 4>; + + trips { + ccn-dpaa-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + ccn-dpaa-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cluster4-hsio3 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 5>; + + trips { + clust4-hsio3-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + clust4-hsio3-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cluster2-3 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 6>; + + trips { + cluster2-3-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cluster2-3-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; }; soc { @@ -549,7 +669,7 @@ /* Calibration data group 1 */ <0x00000000 0x00000035 /* Calibration data group 2 */ - 0x00010001 0x00000154>; + 0x00000001 0x00000154>; little-endian; #thermal-sensor-cells = <1>; }; -- 2.17.1