Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3004297ybt; Mon, 29 Jun 2020 12:39:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww7a6lAOyfjCPhFlm5jQI5atYyGO6ShTuxacAD/Yjg/we2RARlZ3X9HMyGWEHPRCYP5l4z X-Received: by 2002:a05:6402:14c1:: with SMTP id f1mr20076626edx.342.1593459584995; Mon, 29 Jun 2020 12:39:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593459584; cv=none; d=google.com; s=arc-20160816; b=SQkAK0YpZzr91RQLZWOf5FBvSft5HFYWJqcOFwyXRsWT7Yw714iy8R2fOV3jHakqWI cLOdns/70IhCVm0DQRCflZ5FO0gJK0yXp2atQ+7ZV5/41K+Xp8HHy9J6tudEprlD4IDe UZzS33n/jajrMYjIr2HAy4hXlEwP+nz/OEacp8q256zooZeUexbN3nckgpcbc9O2eWce Ehv3POFoIgrRuyHsF0McJOx5rOE3bwfGp85LEt/HBPElEQ5zLnBmIpgtDJBRbYYSFA6O g+PaHZWvvg5M7DqAnAeV4XPnfakUx4PSPjGlbPhp+JstVefTAZDYSzf+A+SmFbx+rr6G YDJQ== 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=RaPBase7mFzjWZ+eTbmmkSbmM8j5ogu+IuarUVSwsJw=; b=cxvD2hOiRi1Q/QRAEPoh8rev8vWefbCGZrj8DWqOIR6w9T/9jEOLixxyaCoRM8tmM1 tBnvu/8hdlDfA+7btqoDhj51DBp5T6NCfWCLRFYS69qojT5CASOymBca7FkrxrgCkM1Y Hr+dHDmyYsuV0U2pUaaoKt3KE9jmYY6nV5hAj6f4fenPXO1oyBoRbTBQTj4YhpwcljJV IEhOQJZ2oOwtcKH8603TOvN5kpfDeKoLtcrXx1AHXzGtqTzGzxqiY4oOjE8giH7AIhnn 1VYTR8Z4QqL8Nxs0sEIBUunG/KbldgRpgB1wwJ7jRhV0zcXY8ykW5CKplBLmG6E7++a7 x7YQ== 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 z9si361118ejm.47.2020.06.29.12.39.20; Mon, 29 Jun 2020 12:39:44 -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 S1729393AbgF2TjG (ORCPT + 99 others); Mon, 29 Jun 2020 15:39:06 -0400 Received: from inva020.nxp.com ([92.121.34.13]:52156 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729884AbgF2TjD (ORCPT ); Mon, 29 Jun 2020 15:39:03 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7856C1A01C5; Mon, 29 Jun 2020 09:51:24 +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 836451A01C1; Mon, 29 Jun 2020 09:51:20 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5D721402F7; Mon, 29 Jun 2020 15:51:15 +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: ls1043a: add more thermal zone support Date: Mon, 29 Jun 2020 15:45:19 +0800 Message-Id: <20200629074519.28851-2-andy.tang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200629074519.28851-1-andy.tang@nxp.com> References: <20200629074519.28851-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 5 thermal zones in ls1043a soc. Add the rest thermal zone nodes to enable them. Signed-off-by: Yuantian Tang --- .../arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 88 ++++++++++++++++++- 1 file changed, 84 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi index 3b641bd43229..17497b0d3542 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi @@ -149,19 +149,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"; @@ -170,7 +230,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>, @@ -179,6 +239,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