Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp483034imb; Fri, 1 Mar 2019 06:04:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzN67eDz9UoEasnTUJ8w7XZH9n+RpVQhvDtwDv5UUTjNXeWIXOBfD48YJ1AUbvy0KvHDtpy X-Received: by 2002:a65:6105:: with SMTP id z5mr5014424pgu.434.1551449067377; Fri, 01 Mar 2019 06:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551449067; cv=none; d=google.com; s=arc-20160816; b=j9yPfnKPswItokdXx1oYByCeQvJ5JlxLL8ClsIbkGfCmbW4tHI3GjMrf3V5lh/v14o 9aCDjYY3s2ZL59H7VzxI0mRCekhTSXRi7YP/8ZCnYzBcEI4MHCBB1vQ5VyorifQWQQPj Y16A31SNdZKk96SHijOMbTL8yi7aJeNB3I/3neYg2OK1j3iO5nAeW13aE3Q6CrmWhRAp ND8TKTr4CW/7FE1mbibRr/bvStwRevPFbaGliYiir6uEYWCBr+24kOsqO5AdOCDwTxFz QPav93erWbvxpZ5RFn5XYUAp2eu4wTVXm/qu+4Faf+RG0iu3Pl3Wjpf1fqjqUyQm3NvN /M0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2sDcfU7Equ9olDO0vXZFRE7OY/fYIIY/bnnZOyMGCdE=; b=zaf67KAvlCfpWN3PM8JtLS+czVCDwmgfLbluYxZhF4/s6id1786ksR0l2WNvogKvZv y02HNIBZ5fqe3hTS+XHIzSbut8sAtc6PPw9deB6c1LeBMjHjAkszwcOw39N8Px0CYWur S7NiQFd1BXqHUJDFq74GijLVQNSyvVEDRkeMvDRB6xqM1qFa3MINU4NHhmlORkQXhLAG qFaMBr5M/gbC3T+BErSTvaC0+nXbuRQxpdjmH4rXkWjz+HIW5DFm5/OS39pizlaoVcdw DBmdwzm9lmjFKv/1x4KSsgpxW4Mx4SqxbZdda42ndQ1cJK7fOefirfT2G5Jw6Ka/ZKGP niMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JNCmCP6V; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s184si15290715pgs.279.2019.03.01.06.04.11; Fri, 01 Mar 2019 06:04:27 -0800 (PST) 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=@kernel.org header.s=default header.b=JNCmCP6V; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387906AbfCANjI (ORCPT + 99 others); Fri, 1 Mar 2019 08:39:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:56438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387890AbfCANjH (ORCPT ); Fri, 1 Mar 2019 08:39:07 -0500 Received: from dragon (61-216-91-114.HINET-IP.hinet.net [61.216.91.114]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E22E52084D; Fri, 1 Mar 2019 13:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551447546; bh=gNQ+CS6P+04BRuMvOzP54uGMZhZUhsZgd+SWpqZ1bOI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JNCmCP6V0GweJp4d+him7lT/bdyo19KlSRjD6iDWHpiwcMDDxi84WnPu2TfzvzoEN NLSzLfHqNDgYqnGVszBKFTxyu3yo+Gp6+USEVwkdhZsg7CBWa6EBwKMTRJ2I4XPAJD K+0BCrb2Hx6sPZxbqzMCcCtA3uCqRrr7ngVqTcCU= Date: Fri, 1 Mar 2019 21:38:07 +0800 From: Shawn Guo To: Yuantian Tang 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, daniel.lezcano@linaro.org, rui.zhang@intel.com, edubezval@gmail.com Subject: Re: [PATCH] arm64: dts: ls1088a: add one more thermal zone node Message-ID: <20190301133805.GQ26041@dragon> References: <20190225030049.20401-1-andy.tang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190225030049.20401-1-andy.tang@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 25, 2019 at 11:00:49AM +0800, Yuantian Tang wrote: > Ls1088a has 2 thermal sensors. This patch adds the second node > to dts to enable it. Can you elaborate on these 2 thermal sensors/zones, ccu and plt? Shawn > > Signed-off-by: Yuantian Tang > --- > 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..9f52bc9 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 { > + ccu { > polling-delay-passive = <1000>; > polling-delay = <5000>; > thermal-sensors = <&tmu 0>; > > trips { > - cpu_alert: cpu-alert { > + ccu_alert: ccu-alert { > temperature = <85000>; > hysteresis = <2000>; > type = "passive"; > }; > > - cpu_crit: cpu-crit { > + ccu_crit: ccu-crit { > temperature = <95000>; > hysteresis = <2000>; > type = "critical"; > @@ -150,7 +150,42 @@ > > cooling-maps { > map0 { > - trip = <&cpu_alert>; > + trip = <&ccu_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>; > + }; > + }; > + }; > + > + plt { > + polling-delay-passive = <1000>; > + polling-delay = <5000>; > + thermal-sensors = <&tmu 1>; > + > + trips { > + plt_alert: plt-alert { > + temperature = <85000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + plt_crit: plt-crit { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map0 { > + trip = <&plt_alert>; > cooling-device = > <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > -- > 1.7.1 >