Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp245042img; Thu, 21 Mar 2019 19:12:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDUpOMbJywTSdONlffSUPsd42pOxkk2f57RXSJ8GxFbPJHNktVxozN1OX+q/D2nFpSK8zW X-Received: by 2002:a17:902:234b:: with SMTP id n11mr6979995plg.89.1553220756351; Thu, 21 Mar 2019 19:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553220756; cv=none; d=google.com; s=arc-20160816; b=QdcAlSf5ZcBBRSyxUzGt3eNOdqCeHTJL2N2usZjTNhOYqIebAUHiFoCgJHfVxvySrE /HnbeF5uj+XAZq5BAirS1Em1zz2o0GIcvLNKOk2ACqxWq6TNw+NONDW74Sou67NDRBUk TxMz++9su4xYggLtxTlkTRZC9BQ2NKe7ikyDOGLcpDWmYIMQQIcPe35ghpFBhHtym17s lm8S+xxtrfiv3yj3JhVz2+jQCwSyMHd9doiAPsSYKi7LsiUAirap4UuGozHVfAPod1NB cTWXKUNpRjvMZDgE9cF4YTnu0G6qA5XS5tig/1qEoD8L7z4gSGT6NaJUeXc/m109zh/g rp+Q== 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=e/uB9KfHUjAF1j74lwOKrUa+eRVjDfs++DTaEPV08DY=; b=J0V5Yvt/YFsj87HcTWSoMIkXgFBcllGZ0ayipP8zRMjttEN6gbJFNUb+1O1aB2zdxl 3ppAnRApZ+rw5Y/gb563yK/hUDJiYKBekBMPt1MPZBQ2fNHMYYKozl/McGhB8cJGzFeT aH12QcRZ2OOLbaWqhqPhXv+SMoLt5hrfH0Wp/Hzvc514Iwpxiol5LMtDr7o9S008Xdcq oGQrAmXX/kcitUMkLojSJGyjbatQsYIKepSTdGGITQP1IhBYaQsY3rwfqdK5bT4vQ8u5 6WXMJQH/6FBmlvhRjqlgCxNN90M3fNZWgWH9GwIdootMvsCEanNXm3bxMkdQknJk9d+s efRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R92IchNa; 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 f9si5513378pgo.73.2019.03.21.19.12.16; Thu, 21 Mar 2019 19:12:36 -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=@kernel.org header.s=default header.b=R92IchNa; 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 S1727497AbfCVCLc (ORCPT + 99 others); Thu, 21 Mar 2019 22:11:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:37246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbfCVCLb (ORCPT ); Thu, 21 Mar 2019 22:11:31 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4DF2D218FE; Fri, 22 Mar 2019 02:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553220690; bh=21voZlmTYfBpBNlUti6twAYJCV2rlig14i/vbhS8hZ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R92IchNawQr/Km2AZtoZOnoOwidvOyiYpHoq0IiaF/zU/XUxsvOpLuflZpBsZWJbJ S8Pi+KYq34/sJWZ5XOcAWXsqZgx3eMFOc8wRquOpx21UrjkoDyujq25x7IpbrKcVtZ RweQPrfw7jWP4NHYhynJ1mdIYgqTzTFr1nBdbKdM= Date: Fri, 22 Mar 2019 10:11:04 +0800 From: Shawn Guo To: "Angus Ainslie (Purism)" Cc: Fabio Estevam , Rob Herring , Mark Rutland , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Lucas Stach , Carlo Caione , Abel Vesa , Daniel Baluta , Guido =?iso-8859-1?Q?G=FCnther?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] arm64: dts: fsl: imx8mq: enable the multi sensor TMU Message-ID: <20190322021102.GW12513@dragon> References: <20190311213124.29325-1-angus@akkea.ca> <20190321125252.4498-1-angus@akkea.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190321125252.4498-1-angus@akkea.ca> 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 Thu, Mar 21, 2019 at 05:52:52AM -0700, Angus Ainslie (Purism) wrote: > Add the imx8mq TMU (Thermal management unit) nodes for CPU, > GPU, and VPU. > > Signed-off-by: Angus Ainslie (Purism) Subject prefix 'arm64: dts: imx8mq:' would be good enough. I changed it and applied patch. Shawn > --- > > Changes since v3: > > Moved the annotation. > > Changes since v2: > > Updated alert and critical temps for commercial parts. > Fixed node names. > > Changes since v1: > > Removed references to multi sensor patch. > > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 118 ++++++++++++++++++++++ > 1 file changed, 118 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > index b39c6c75c043..81d5ce1b1ec1 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > @@ -8,6 +8,7 @@ > #include > #include > #include > +#include > #include "imx8mq-pinfunc.h" > > / { > @@ -89,6 +90,7 @@ > reg = <0x0>; > enable-method = "psci"; > next-level-cache = <&A53_L2>; > + #cooling-cells = <2>; > }; > > A53_1: cpu@1 { > @@ -97,6 +99,7 @@ > reg = <0x1>; > enable-method = "psci"; > next-level-cache = <&A53_L2>; > + #cooling-cells = <2>; > }; > > A53_2: cpu@2 { > @@ -105,6 +108,7 @@ > reg = <0x2>; > enable-method = "psci"; > next-level-cache = <&A53_L2>; > + #cooling-cells = <2>; > }; > > A53_3: cpu@3 { > @@ -113,6 +117,7 @@ > reg = <0x3>; > enable-method = "psci"; > next-level-cache = <&A53_L2>; > + #cooling-cells = <2>; > }; > > A53_L2: l2-cache0 { > @@ -210,6 +215,119 @@ > #interrupt-cells = <2>; > }; > > + tmu: tmu@30260000 { > + compatible = "fsl,imx8mq-tmu"; > + reg = <0x30260000 0x10000>; > + interrupt = ; > + little-endian; > + fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x70061>; > + fsl,tmu-calibration = <0x00000000 0x00000023 > + 0x00000001 0x00000029 > + 0x00000002 0x0000002f > + 0x00000003 0x00000035 > + 0x00000004 0x0000003d > + 0x00000005 0x00000043 > + 0x00000006 0x0000004b > + 0x00000007 0x00000051 > + 0x00000008 0x00000057 > + 0x00000009 0x0000005f > + 0x0000000a 0x00000067 > + 0x0000000b 0x0000006f > + > + 0x00010000 0x0000001b > + 0x00010001 0x00000023 > + 0x00010002 0x0000002b > + 0x00010003 0x00000033 > + 0x00010004 0x0000003b > + 0x00010005 0x00000043 > + 0x00010006 0x0000004b > + 0x00010007 0x00000055 > + 0x00010008 0x0000005d > + 0x00010009 0x00000067 > + 0x0001000a 0x00000070 > + > + 0x00020000 0x00000017 > + 0x00020001 0x00000023 > + 0x00020002 0x0000002d > + 0x00020003 0x00000037 > + 0x00020004 0x00000041 > + 0x00020005 0x0000004b > + 0x00020006 0x00000057 > + 0x00020007 0x00000063 > + 0x00020008 0x0000006f > + > + 0x00030000 0x00000015 > + 0x00030001 0x00000021 > + 0x00030002 0x0000002d > + 0x00030003 0x00000039 > + 0x00030004 0x00000045 > + 0x00030005 0x00000053 > + 0x00030006 0x0000005f > + 0x00030007 0x00000071>; > + #thermal-sensor-cells = <1>; > + }; > + > + thermal-zones { > + cpu-thermal { > + polling-delay-passive = <250>; > + polling-delay = <2000>; > + thermal-sensors = <&tmu 0>; > + > + trips { > + cpu_alert: cpu-alert { > + temperature = <80000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu-crit { > + temperature = <90000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map0 { > + trip = <&cpu_alert>; > + cooling-device = > + <&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + > + gpu-thermal { > + polling-delay-passive = <250>; > + polling-delay = <2000>; > + thermal-sensors = <&tmu 1>; > + > + trips { > + gpu-crit { > + temperature = <90000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + > + vpu-thermal { > + polling-delay-passive = <250>; > + polling-delay = <2000>; > + thermal-sensors = <&tmu 2>; > + > + trips { > + vpu-crit { > + temperature = <90000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + }; > + > wdog1: watchdog@30280000 { > compatible = "fsl,imx8mq-wdt", "fsl,imx21-wdt"; > reg = <0x30280000 0x10000>; > -- > 2.17.1 >