Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp758009yba; Wed, 3 Apr 2019 19:36:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+IK2hvDjSodofp1ZTUEEDvmaU60P/msZmdcnPH0Rulyizt9kJitxhMQI/K+n+32iVhrgp X-Received: by 2002:a17:902:e101:: with SMTP id cc1mr3660428plb.129.1554345363534; Wed, 03 Apr 2019 19:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554345363; cv=none; d=google.com; s=arc-20160816; b=1Fe/XQvAQsedpU8QGH/DrZxL4up/VJvs+J7K08xgBr6WPqkRt2YIbsj1sYFmfFujRa /d15u1dk0bfu7K7kvC67ydAn7sfviFoHyaIMSCZDMhEqQC/XbRAYYCtxASUbVRDNkK6z WazLiILj80cSNFoYn8VJwPGhuOkesRY87r17qh0Qdg+mioprMCJrY3ZcZoLq2SapzCys cQfICe+OmiZ/i54+nAbML/dKuLFudhNlyJ7ZWXfoP2ArsV2/L2BLwFUucRDwkg7Fl+V2 a9fsy/yGc0bEvao1pnjTe/XsB9be15/dhFcxmdDm4NqyLcwaE8BY+nJpwAO3Xr+d88jN FgKQ== 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=cpNPhnHlvkFGKfi0ejvd3Y/CasYlaZaOuSTN3WofdKg=; b=LKILLChTJOMqz1WDgUw/1mL3X/y0Twp6IMFLEyEJrR4KNqIEQI9whwoSOeib+WLXMt qatoxSCB6djB2/HxkkfT9ezOlhb0zNQnHk+DOI3lSuROHotOl9l0G9Ukq684c4wbtJzA LkNNXYLXynV/AqTWi7xuYuLCX49R3i9FfFCEkO1PzylP6wvl0iyj+E9tzed7bFgrSzXQ ZO/gpZjbnA7ufrh52BfT0MKpoejXkBkLgsEorw8nNp8B3GmQ/XJ68MNNL/8XaBi7ncHm YwyeAjvwkH5XyDRZJfqee2dnmTaszZX3eLmbIA8r/0coxkqRzbdUZi7IW/Ip5TbCeZQG Y7uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TmAEAI/T"; 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 b23si13244016pgm.517.2019.04.03.19.35.48; Wed, 03 Apr 2019 19:36:03 -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="TmAEAI/T"; 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 S1726548AbfDDCfJ (ORCPT + 99 others); Wed, 3 Apr 2019 22:35:09 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38617 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbfDDCfI (ORCPT ); Wed, 3 Apr 2019 22:35:08 -0400 Received: by mail-pl1-f194.google.com with SMTP id g37so372686plb.5 for ; Wed, 03 Apr 2019 19:35:08 -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=cpNPhnHlvkFGKfi0ejvd3Y/CasYlaZaOuSTN3WofdKg=; b=TmAEAI/T+eTuvNcldHaVpc+b/cE6vIuCCXrUeZtBaVlkR9xPLT+0/KQKrLlOV/1MDM FafHFR0G/rmLYC1icljCAcFTmLkXrBS5wK10vkcF/Cafk1pew43XI1/+9D7i2zKfcjgk Qs/rYwQH+Fn/6fzQkjXj1KeOvwiRI/1OGkMNx8ty3HYs0NJ72amaX52H5VwRP4jFq2Vx ovRJd9G1ZIo0gQsumJgNoJ7/igBfispNETVyoErzNfmGbSTllCs/5OejP5HUopM2rEm4 jT9FrhrEQE8/0SNZetVdrbjttPVlOZ9OKLxarcuH+Ps+0PFulsNvQAAXACnOTZM4RsUm 59mA== 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=cpNPhnHlvkFGKfi0ejvd3Y/CasYlaZaOuSTN3WofdKg=; b=fGJgWwxoNokwICmaCZRoT5sx0drPXIct5J8VUw/hzJi/arcaGY714ckAxK8eBnFboe ZE7mcidCVYCrWXYXcyKxNxnpvNbRu0VQyAfjW7bsAlPnXSYBxy6nNvfvMxeHsd4yEtsJ hrABYEOUs3KNXpM7lVZ9kKkBAx2IEFq+Sd+HGg3nR6eSx7b5Q6TKXVwMVBgj/ZjwoH42 P7+Om0EO+BGNHzUWzQnZdb34DYkbYWVqg77Enxofi9eTzI18CfmfvOJO35NqM0wiTByi 60sre+pqhp3iOSBS4eA98GB5hI4mr/PuwDBL3WISjzrOrbwVVvY4kNamlKfrNYJakg9x xRVQ== X-Gm-Message-State: APjAAAXYO1QNgMeMR+giY1BsxOSBICNHVpf2ZODd1ONlnzTPhWgcWUd1 74YRbEEhs5MBjLWP96vfB3W/og== X-Received: by 2002:a17:902:8ecc:: with SMTP id x12mr3686623plo.0.1554345307521; Wed, 03 Apr 2019 19:35:07 -0700 (PDT) Received: from [10.71.14.66] ([147.50.13.10]) by smtp.googlemail.com with ESMTPSA id i15sm21581314pfd.162.2019.04.03.19.35.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 19:35:06 -0700 (PDT) Subject: Re: [PATCH v4] 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: <20190401032905.32711-1-andy.tang@nxp.com> From: Daniel Lezcano Message-ID: <273bb946-8659-8e50-6598-3cffa6dff9f5@linaro.org> Date: Thu, 4 Apr 2019 04:35:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190401032905.32711-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 01/04/2019 05:29, 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 > --- > 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 > PS: In order to keep consistency to the first thermal-zone node, there will > be "WARNING: line over 80 characters" warnings. > > arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 43 +++++++++++++++++++++-- > 1 files changed, 39 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > index 661137f..d6d4ff2 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-thermal { > 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,42 @@ > > 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>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; Does it make sense to assign the same cooling devices to two different thermal zones running different instances of governor ? > + }; > + }; > + > + platform-thermal { > + polling-delay-passive = <1000>; > + polling-delay = <5000>; > + thermal-sensors = <&tmu 1>; > + > + trips { > + platform_alert: platform-alert { > + temperature = <85000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + platform_crit: platform-crit { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map0 { > + trip = <&platform_alert>; > cooling-device = > <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog