Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3018234ybt; Mon, 29 Jun 2020 13:02:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBq2EVvsHfb7f9kM53mI46waqP8zJkN1AGsUc4Y97oQxgu9tgvsg/386zOX6VDZEYmcPEq X-Received: by 2002:a17:906:d784:: with SMTP id pj4mr14941079ejb.405.1593460976685; Mon, 29 Jun 2020 13:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593460976; cv=none; d=google.com; s=arc-20160816; b=np5UgcdHGifvSAj9v1E2KMfDBYyww21xt2Gr4Na/rtzAFFsHNYDB6LO848rwZLUU2s dmc/Ke+iniPlFMrvq09lJcQ2gG1wkEKOaPcnVcUrxozIHiGF+lq7ChFmbjCOV34VhikS TaklYo5vP0D88y9mR3UXIVv0lbpQ34Py4SqA+S3fO9YH2on+hOkBJw6Fun6Gzz0In8uV Ljrsdb+VTdjKqrbRzUEdm/m4C2I+mINBNkaI0vOKpY1P4fX08WpNJ0JjWEDInlCfBLmz k42i/zLGvx1pPZkDVuDRRWhniFwjmSqV+se3Tr5Y43ks++0nZWcFJtOnrXyKCxcFjlrT e5LA== 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=f7n3gmWFwDu6QX+9V5IdactJmg2V8C450CMeMDXsX8I=; b=IyTmcg1QuUciFs6dlSgeM9LLHTj52m/6n7D1FYjgIc1hS+inr23yyG1MlAPtMn2+fi EHwqTyhBOELoGMqakP+a6AOvtdUkg06cgy2+pGKPR0k9An47T3TvRRwYhPI4qKIvj4vD DDd7nurLHHuauJYjZg8akXquVd/f/srVtt3feDLMxmtQ0XVvupaVQdXcWPFo2fwk4KO2 LB2ODr3PHYjW61oD2eC9YSTgtHOK8AF6oXNrqTS86XY2hjOEv3g1/fC1LeKxo8TksOUs FFqe7nVFrv6OW4SoQqbKg33w759AIJ0rVWN7eM86Gb+779QUXtuiW2Ur+fMQGbXX9l3J fOAA== 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 r12si303558edc.599.2020.06.29.13.02.33; Mon, 29 Jun 2020 13:02:56 -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 S1733254AbgF2UC0 (ORCPT + 99 others); Mon, 29 Jun 2020 16:02:26 -0400 Received: from inva021.nxp.com ([92.121.34.21]:38474 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387426AbgF2Tjo (ORCPT ); Mon, 29 Jun 2020 15:39:44 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CB92C200F4E; Mon, 29 Jun 2020 09:51:20 +0200 (CEST) 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 DB19B200F49; Mon, 29 Jun 2020 09:51:16 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B6161402E0; Mon, 29 Jun 2020 15:51:11 +0800 (SGT) From: andy.tang@nxp.com To: shawnguo@kernel.org Cc: leoyang.li@nxp.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yuantian Tang Subject: [PATCH 1/2] arm64: dts: ls1046a: add more thermal zone support Date: Mon, 29 Jun 2020 15:45:18 +0800 Message-Id: <20200629074519.28851-1-andy.tang@nxp.com> X-Mailer: git-send-email 2.17.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 From: Yuantian Tang There are 5 thermal zones in ls1046a soc. Add the rest thermal zone nodes to enable them. Signed-off-by: Yuantian Tang --- .../arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 88 ++++++++++++++++++- 1 file changed, 84 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi index d4c1da3d4bde..9896379309d8 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi @@ -117,19 +117,79 @@ }; thermal-zones { - cpu_thermal: cpu-thermal { + ddr-controller { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 0>; + + trips { + ddr-ctrler-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + ddr-ctrler-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + serdes { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 1>; + + trips { + serdes-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + serdes-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + fman { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 2>; + + trips { + fman-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + fman-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + core-cluster { polling-delay-passive = <1000>; polling-delay = <5000>; thermal-sensors = <&tmu 3>; 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"; @@ -138,7 +198,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>, @@ -147,6 +207,26 @@ }; }; }; + + sec { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 4>; + + trips { + sec-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + sec-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; }; timer { -- 2.17.1