Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp230360ybh; Tue, 14 Jul 2020 23:59:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOiKz2LMbmur7SGctulBik6FlOYfrePtAmBjEwx/ZGuewWr7vLEfHBhdJ62Twsei1VMRdZ X-Received: by 2002:a17:906:ae56:: with SMTP id lf22mr7763846ejb.59.1594796355801; Tue, 14 Jul 2020 23:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594796355; cv=none; d=google.com; s=arc-20160816; b=T1WAGv0lN69HBTAhNpCPMtf5cAiu6vU9o6mRAgTxd24nBkyitOVorct6I9rYi7bXov Y97YuWN2Q9VE23kBfDremBXxj/9nayfeFOb3Ie3D2TG6MBlt9v3VQ/iLq3doUN2noNYn DZ37q0s2iFoJMkmSYBlZxXLm6OEa5Vcwp9N1o/0+l/+Q2m7l59jHYrjX8CejNd9hX4I9 8N81rgTcK1OkvUm1eHfS9n7Ic5FY/qttEoRJZTrdE+eD6UxI3rkGPMwkwSuTeUIZuRbJ 7K3hmwFsBuvnMFIzHkbfNOZoXt5jXAzhr/T194k1MmXUAhiQNY4FBXxy0bfqNCTnb9u5 Iwxw== 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=cjuKtOIXv/sj1roLOAZURQAOQNGlmQjqdE2wuSEcQh0=; b=TrfFY3fBv/Sul5N8JQ+F0xdKJGShP+020PcwGkM7ba+TZtwlkuxbZ6gnOv3mbqReYM sJFjfvwEbghNRpJCVZfEEQcdYJQEAlqqLiIlfvzXVhFrDcBM0jvjFVAI/QXdDgpjRg2i tLmWva/Nq3dnjPtRAxgIJlGZSRY/zOeN97IXzmyVndexMENnLcnlk0GO46u4E/05NbLb 7lZLkDBtIMQg86tn+/cXxyZldB/MsAK/neO0vdZaRJaP2flEU+MqWM4nGi1d8wghVTxE Qm9Jx4/Bhg7fTJr8+748pXrVcdb+5j4NCb6YRPXdITcnA0F108L8E2UFgvd3apSxcbeO DJ2Q== 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 w18si696901edx.276.2020.07.14.23.58.52; Tue, 14 Jul 2020 23:59:15 -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 S1728770AbgGOGzq (ORCPT + 99 others); Wed, 15 Jul 2020 02:55:46 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34616 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729013AbgGOGzp (ORCPT ); Wed, 15 Jul 2020 02:55:45 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8983E1A03AA; Wed, 15 Jul 2020 08:55:42 +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 D7FD31A03D4; Wed, 15 Jul 2020 08:55:38 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E7E02402BF; Wed, 15 Jul 2020 14:55:33 +0800 (SGT) From: andy.tang@nxp.com To: shawnguo@kernel.org Cc: amit.kucheria@linaro.org, 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 v2] arm64: dts: ls208xa: add more thermal zone support Date: Wed, 15 Jul 2020 14:49:09 +0800 Message-Id: <20200715064909.9161-2-andy.tang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200715064909.9161-1-andy.tang@nxp.com> References: <20200715064909.9161-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 --- v2: - remove useless alert trip - add cooling-map to core cluster zones. .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 141 ++++++++++++++++-- 1 file changed, 132 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi index 41102dacc2e1..cc36c969dd9d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi @@ -79,20 +79,62 @@ }; thermal-zones { - cpu_thermal: cpu-thermal { + ddr-controller1 { polling-delay-passive = <1000>; polling-delay = <5000>; + thermal-sensors = <&tmu 1>; + trips { + 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-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + ddr-controller3 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 3>; + + trips { + ddr-ctrler3-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + core-cluster1 { + polling-delay-passive = <1000>; + polling-delay = <5000>; thermal-sensors = <&tmu 4>; trips { - cpu_alert: cpu-alert { - temperature = <75000>; + core_cluster1_alert: core-cluster1-alert { + temperature = <85000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit: cpu-crit { - temperature = <85000>; + + core-cluster1-crit { + temperature = <95000>; hysteresis = <2000>; type = "critical"; }; @@ -100,14 +142,95 @@ 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>, + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + core-cluster2 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 5>; + + trips { + core_cluster2_alert: core-cluster2-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + core-cluster2-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&core_cluster2_alert>; + cooling-device = <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, - <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + core-cluster3 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 6>; + + trips { + core_cluster3_alert: core-cluster3-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + core-cluster3-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&core_cluster3_alert>; + cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, - <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + core-cluster4 { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 7>; + + trips { + core_cluster4_alert: core-cluster4-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + core-cluster4-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&core_cluster4_alert>; + cooling-device = <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; -- 2.17.1