Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6111811yba; Thu, 11 Apr 2019 12:17:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2avhkvkUxkVqui4yOKwFOiKbm2uivEN2KpgwOLLvVGKzBwzfsjKDFm2oQnSMkZSMFJy6k X-Received: by 2002:a17:902:e48f:: with SMTP id cj15mr51842672plb.256.1555010277861; Thu, 11 Apr 2019 12:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555010277; cv=none; d=google.com; s=arc-20160816; b=qN3+6mxb3ipS+QpqT2w0/H4lBw1/aHgUrNMy2bySM9ibK3GIDdj2mGofJb4BKsmLVi tqTdvIplLQEmto7oVA5ZPEpF8+6qMiBWTe3SD0+J4sB9JZ3lPkNOuT0rzk+h0s9cSuGS ezePWZIwqpZRw4HB3Ca7NCN97yUl4nQSlnoh0Qo0J2DuiFPxLRsx6fRPklBknTK+BqP+ 4AIxNuEb7m6UCfn6b0/hr/q8lV6XA0VRllS+KqrR+rSJA9J+dWUsPnP2SrVbfnOx/yF2 dgs6ANTWxbzeyeyegHN+GD8jrDrI2GJw2ImCg6tpaoNCdAsjxvh1zDT+nAiI1LwwuR/d 4U+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Sjgv+GTqzYYYEeYktG8EM218JZ1lIdpdQ+xHnyDK8sQ=; b=UJMcwSRE4VDnILmSVTKa/qhPdtkPxK1rCtzusMPzw0TrO1S4khwngOUp2/Zqcx8uIY 1As05CDaTgUejua7Q9xmK+uSiBdZvLBReuGdxLNBtMrfHNEN2kuhjsoAWOKnWmCRoW2M P5foPfSMjzncsCRsmBSWNBL3tQNYjdSKH/xoZ7tLAeovd5CRYwvbvbxZxtxkWJ18J3eb t/NDTQPCC6Mv/gQJV4/yDFAvqmwk4NFImkXSoothDhGj4DWCqkIhSeoZcIjEpAOrcvCH TPFafmrtbtNNackRmAsCqdG72uebz5bJXaWQOkce7zkxKmnWOs7KxXN4Ioq6kVr1ZEZD VQ7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BDjeyhYE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si22165492plb.235.2019.04.11.12.17.41; Thu, 11 Apr 2019 12:17:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BDjeyhYE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726763AbfDKTOt (ORCPT + 99 others); Thu, 11 Apr 2019 15:14:49 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35419 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbfDKTOs (ORCPT ); Thu, 11 Apr 2019 15:14:48 -0400 Received: by mail-wm1-f65.google.com with SMTP id y197so8025640wmd.0 for ; Thu, 11 Apr 2019 12:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Sjgv+GTqzYYYEeYktG8EM218JZ1lIdpdQ+xHnyDK8sQ=; b=BDjeyhYEB9/73Pt/L8UtgjqBXTkhti+6OPdAQGKZu/wUJWX5fuYRSvHxtFPoNYK8G0 HS3Hgs6n4kBOqjSegpS4EKjAjqsmjRVatypIIwAtMdm4kkB0zmlShvUyFN77ewv3FbBT rGqWgQvGoHAkUIIV3WGFY4LAFJTen8glHdNSUJpyOF/wZAlHP0RLOLTf+C85iZuioFkb qnGHzlWKh8LYbuDrfNZK7OMUMfVjIrR1YJYu1Aal1znh/y9hKNG10oFNS9raShVu4ZV0 lBG55psPKyUEDnxFlzjxelogInrLIs4xD0zHwcl07yVQV0szQmwS9hv4HECUY5vv5E5L d2WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Sjgv+GTqzYYYEeYktG8EM218JZ1lIdpdQ+xHnyDK8sQ=; b=Hn4/65pDoduzqAE9Z4nL3NpOPrO0wPjyKMdNQZWvmxN2dQPL4Gw4UUitdMZZKPevnZ 7vmYK2pI7D2BtQesseIE9dHEtzEtQkBiAl+2HO2b7d4nhIHBGPbUuc16K+lqgnqv6psn aWXNHY5h0VaRmBUG02fcGniJVmiZWNlrGoBIpuy4577IWf34CShSQqCUl/1gDSUPOowI vBHnq8943JzrXdLeeKrR/8xAiVvZb0ExledKS1R2PwNSS4DD709ggH8IPGrO3rlb0JcP 7cDwGPG0QrDHJuR+QZThrsrrVPxutvkIrLI1UOyihsfioAWKdyLPzSTVbIMf3RZYtSg8 /msw== X-Gm-Message-State: APjAAAWclfy3oAhU0kybwFfJ++3AJG1BYnGMVNLP+pRB3rl1+h03Q9dW 4HReYHfDi7SsGQGah2hOgp+2Jw== X-Received: by 2002:a1c:5f42:: with SMTP id t63mr7525678wmb.94.1555010086734; Thu, 11 Apr 2019 12:14:46 -0700 (PDT) Received: from [192.168.8.100] (195.118.130.77.rev.sfr.net. [77.130.118.195]) by smtp.googlemail.com with ESMTPSA id o2sm31400238wrs.89.2019.04.11.12.14.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 12:14:46 -0700 (PDT) Subject: Re: [PATCH v5] arm64: dts: ls1088a: add one more thermal zone node To: Yuantian Tang , shawnguo@kernel.org Cc: leoyang.li@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rui.zhang@intel.com, edubezval@gmail.com References: <20190411083236.9377-1-andy.tang@nxp.com> From: Daniel Lezcano Message-ID: <915c86d8-d00e-f1e1-e7f5-24bc225c8e42@linaro.org> Date: Thu, 11 Apr 2019 21:14:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190411083236.9377-1-andy.tang@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/04/2019 10:32, Yuantian Tang wrote: > Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster > sensor is used to monitor the temperature of core and SoC platform is for > platform. The current dts only support the first sensor. > This patch adds the second sensor node to dts to enable it. > > Signed-off-by: Yuantian Tang > --- > v5: > - update the thermal zone name due to the length limitation > - remove cooling map in platform zone > v4: > - use hyphen instead of underscore in node name > v3: > - use more descriptive name for each zone > v2: > - Add more information about sensors to description > arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 28 ++++++++++++++++++++--- > 1 files changed, 24 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > index de93b42..de39672 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > @@ -129,19 +129,19 @@ > }; > > thermal-zones { > - cpu_thermal: cpu-thermal { > + core-cluster { > polling-delay-passive = <1000>; > polling-delay = <5000>; > thermal-sensors = <&tmu 0>; > > 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"; > @@ -150,7 +150,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>, > @@ -163,6 +163,26 @@ > }; > }; > }; > + > + platform { > + polling-delay-passive = <1000>; > + polling-delay = <5000>; > + thermal-sensors = <&tmu 1>; > + > + trips { > + platform-alert { > + temperature = <85000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + platform-crit { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; Unfortunately, the documentation says the thermal zone node must contain a "cooling-maps" entry. It makes sense as if there is no cooling device, there is no action to be taken thus polling the temperature just add noise to the system. > }; > > timer { > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog