Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3250664ybt; Mon, 29 Jun 2020 20:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNG44eOcRr81ZJ0P+ICcpvAIpzmXKEVoRqfhMMKtLUdzM4mVQNukKG9KTvgt/z0+BsbdTm X-Received: by 2002:a05:6402:363:: with SMTP id s3mr9670982edw.238.1593487636514; Mon, 29 Jun 2020 20:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593487636; cv=none; d=google.com; s=arc-20160816; b=gZJhdOFewU/k+z0CInN4bTI/FsGvFAqbmDC8ctSwCldP3Na1418RIr1vJYIHj9OMtT O10AAloZ8RuZzotA5m7iT+ZtL9oEYFErDZemY5cZdezXKQPeDHLj+99dV9U+sFPV9xu7 p743avQ9imTO8K8xco4tm8W2zK8S2YQ3zGScYr2HUTqSV+d41poCVyZN+EQtZxyHaeo7 YI9BsSzXbg1drT5XTuJZ+tu/dh40xk8RFNmPli5KS1s2rZYefmt3g7zmLq1e0rUDIeMg grMYHwBYf/wCvqcb1OxjqO18A3+bdbgcpiJ5uxrawh6BUouobUSHvB6InuuZyoYzyHns kcYw== 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=GZxXqJTYWpLwQwEchWu81bQl2THVWA3hXOEKu+vX1Q4=; b=qyyUDtMlgnujDfMHQcuQZKNanlUPW+QZfNDsiNcEy0ntPGLlVE8yyW3aeHOvOMM2gF T9FBXjJJvy4Phae2eduxsctEoiPhr/8A3+f1g7FVRnJKGguQIFI+Uj3JcY93lA8tYWMo cZvS2kPFNiQXlD/jO7iJ/ansExd8Yz4iNeJ7Gs3699kCk2zjqCsfiC9LzfB/2uKRFID4 DMPExqagNBBAPsDsSm2seePPRmR5UdO4DU0J9tyj8/U4SIVNPfFdsRpT5sNTAO0aYuZc c66sDWGNgczSNTvk9Pi+A2VZRx7SyfOE9Yd/yipklRulbzNvO1HFK4V6BEEQjkQAdvi8 PKjw== 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 n11si921770ejs.209.2020.06.29.20.26.51; Mon, 29 Jun 2020 20:27:16 -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 S1729123AbgF3D0W (ORCPT + 99 others); Mon, 29 Jun 2020 23:26:22 -0400 Received: from inva021.nxp.com ([92.121.34.21]:54832 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728949AbgF3D0V (ORCPT ); Mon, 29 Jun 2020 23:26:21 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AD88C201286; Tue, 30 Jun 2020 05:26:19 +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 6DE4F201280; Tue, 30 Jun 2020 05:26: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 3A330402F0; Tue, 30 Jun 2020 11:26:12 +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 2/2] arm64: dts: ls208xa: add more thermal zone support Date: Tue, 30 Jun 2020 11:20:14 +0800 Message-Id: <20200630032014.22956-2-andy.tang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200630032014.22956-1-andy.tang@nxp.com> References: <20200630032014.22956-1-andy.tang@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 From: Yuantian Tang There are 7 thermal zones in ls208xa soc. Add the other thermal zone nodes to enable them. Signed-off-by: Yuantian Tang --- .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 132 +++++++++++++++++- 1 file changed, 126 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi index 3944ef16ec60..019e99826645 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi @@ -78,28 +78,88 @@ }; thermal-zones { - cpu_thermal: cpu-thermal { + ddr-controller1 { polling-delay-passive = <1000>; polling-delay = <5000>; + thermal-sensors = <&tmu 1>; - thermal-sensors = <&tmu 4>; + trips { + ddr-ctrler1-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + ddr-ctrler1-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + ddr-controller2 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 2>; + + trips { + ddr-ctrler2-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + ddr-ctrler2-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + ddr-controller3 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 3>; trips { - cpu_alert: cpu-alert { - temperature = <75000>; + ddr-ctrler3-alert { + temperature = <85000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit: cpu-crit { + + ddr-ctrler3-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + core-cluster1 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 4>; + + trips { + core_cluster1_alert: core-cluster1-alert { temperature = <85000>; hysteresis = <2000>; + type = "passive"; + }; + + core_cluster1_crit: core-cluster1-crit { + temperature = <95000>; + hysteresis = <2000>; type = "critical"; }; }; cooling-maps { map0 { - trip = <&cpu_alert>; + trip = <&core_cluster1_alert>; cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, @@ -112,6 +172,66 @@ }; }; }; + + core-cluster2 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 5>; + + trips { + core-cluster2-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + core-cluster2-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + core-cluster3 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 6>; + + trips { + core-cluster3-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + core-cluster3-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + core-cluster4 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 7>; + + trips { + core-cluster4-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + core-cluster4-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; }; timer { -- 2.17.1