Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2210241imb; Sun, 3 Mar 2019 22:23:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwcjc9Yt+QC7/LJl4wwBifaj3chy4jx6VtnJ+gtMvafOVwtEEUHjtLdrDDJCiY8klG/ivQb X-Received: by 2002:a63:f407:: with SMTP id g7mr7647703pgi.413.1551680605062; Sun, 03 Mar 2019 22:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551680605; cv=none; d=google.com; s=arc-20160816; b=jHgDXQoT5H3qLxA3yqZ5/82ufOz/rR3mTmotMceHDYL7hvQz+h6+MuiZz7AQMbE19q x5IstX8DfwByLlkWNVNJxkco85Mns8g3arkxXHiQBOWirmVtWK4IjqznzS4YHrmvWIIq CpDMk0Gnu5+meaUeXlpzxn2NKvyfQ2XjDGgVBRXvh6DLp6NaWPmG9gaObj61ynsGSaXv ECF8naSlHTTumrwPDtwcak7oFse0Gb9Ly+72Om0sQRp7Ytwsv91Yc3Fg29c5oc9kXJ/g iQG513J9hEF77/aJrgzjKR52VJ8hv/GRAUHYsVA4gtN/PP8IPf8Xm4pnQfL0zmRldllL qzpg== 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=4pYtzdWISaEXRIR+bOUfTfMjCB5R6Gb53tCZmsVxtUA=; b=zgsMXHXLoJzOpnlnqqyfcagaPA77XfJd6mKyyr604oUaVfUzIeXxs/ExALm9lVOIf+ NS4nwMGk8DWfDUqIWPX88cSMvQmms1CTzv0HpicJNLDdoe0cddBT0tTdj0nGJrn6cUNa rHceHiJ/YAbJMlNB/YJvQdn4XeI0eFFuEOJIf9FfKPc3d9zrSovGvcJDvFKeok0l7KH8 3/4gK4UpppJblpuvuMmKPKZTj7292KWhlV0yfnNn373bvVq4d+rCYQuM7MgtaP4wClZW CK38lcSX2Yz2y97tnyoD/UKUeOJg6zk/Dw5xae8yGuaEgPJw9LTFbCHZC87GndWgmmtv ARuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=poa+1gQE; 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 s139si5023650pfs.56.2019.03.03.22.23.08; Sun, 03 Mar 2019 22:23:25 -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=poa+1gQE; 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 S1726101AbfCDGWW (ORCPT + 99 others); Mon, 4 Mar 2019 01:22:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:60148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbfCDGWW (ORCPT ); Mon, 4 Mar 2019 01:22:22 -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 38A6120815; Mon, 4 Mar 2019 06:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551680540; bh=uavEwaTtwH4iPmbXJDTmhun7tXo97bALdU+fdptIqHU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=poa+1gQEqZfON6tuj2ikQvDcu18VX+GSlhL7INRLdkAMxX+R5oOcQw+7t+C9kCSmc XDAjJCFha5D9sNDxzd49TGxW1fFdTSvMMFyKG97uLWKI+lhWCEFKOh74bGjipu188V /mqQnFqJ5pzOEN1v4gjnygEIrj7eDhOTnIIi0EvU= Date: Mon, 4 Mar 2019 14:21:16 +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 v2] arm64: dts: ls1088a: add one more thermal zone node Message-ID: <20190304062115.GB26041@dragon> References: <20190304032111.21770-1-andy.tang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190304032111.21770-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, Mar 04, 2019 at 11:21:11AM +0800, 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 > --- > 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..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 { Is this change really necessary? What does 'ccu' stand for? > 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 { What about 'platform-thermal' for node name, platform-alert and platform-crit for trip nodes below? Shawn > + 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 >