Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2697228imu; Thu, 29 Nov 2018 08:53:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/UwOhrktQWR97ku6jPSxQ50La8y2Zogfcg7wVjwDLfQJJLlPujxoYfb68K0Curz2vD5pVGf X-Received: by 2002:a65:62da:: with SMTP id m26mr1857253pgv.278.1543510391802; Thu, 29 Nov 2018 08:53:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543510391; cv=none; d=google.com; s=arc-20160816; b=w1vqJKnUhgR6foILbgzkWiGZj2KXDfTnxRqGTBQ8vMiOK7uuy52xHXWtR/w4K/32c2 YG834No7YECixY1sgBqyh1O6iHhlYlf6meBZRaD8SBs5TH5cw7vEhOeklxEd5RJP6ryy EblPLlwhs0iNuGiu33IGyeFydPSzCFGHBXi9jrGVu0coZBeQIFAMHG4Ja4C5Y8/28Dw2 +slwZfYNgg8mVpe+GUEgGLDngXPUOvW6ftTTyWdloqLduyMwhgj13/Mqk6Xslcmjrndk TltBvJufTCQ4spulvbcBNlCvcsM7oZt9MDCYLefaN6vUXoaYJVM+uIRTctehZvJUI6J3 idkQ== 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=J3GzFdrb4CGy9efYCd8VZEYP0gozHwzciEEOjzGh94c=; b=FNr0SqDovnjWRjE/DG1B6JqD+4yoZyhmfCMC208hsLiSbfYfY1laL635XEMw8JHB6D ZCByvHcVvgbn6Qkx/+cokqGvOwIkNDW6jD5AX2kVe7TgxQOtOCHaV0Ym5d1ZPA+ZXs2+ t1cZVH/oc4EBooBopl6oP5vJoLm33Iho0lIZqfrqdSzoAbLl9pP8FLspCI9XkiUWgR1j e1vy7G38Gk2gmQLN7orHzTEjwh+aCZ2gcidKZnDnbM4LMq/Kg5o4XUZJSFifuerIRimX b5xfQ00VTMmTFi0i0JBdYfmL+x2Qnt/M4cjcGW5J6MbgJBSjQ18sCzhZXwRIEAGc6aC1 A7kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ubw6AAdy; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si2342553pga.297.2018.11.29.08.52.53; Thu, 29 Nov 2018 08:53:11 -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=@gmail.com header.s=20161025 header.b=Ubw6AAdy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729990AbeK3D4p (ORCPT + 99 others); Thu, 29 Nov 2018 22:56:45 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38884 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729572AbeK3D4p (ORCPT ); Thu, 29 Nov 2018 22:56:45 -0500 Received: by mail-pf1-f194.google.com with SMTP id q1so1295324pfi.5; Thu, 29 Nov 2018 08:50:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=J3GzFdrb4CGy9efYCd8VZEYP0gozHwzciEEOjzGh94c=; b=Ubw6AAdyBuvUmVQJxJo8BEadrhBUMQUuxAAeYdhKwiMP7/Vvdx6cclRysfnmTudyRy ZXAjq2BXSlJrdCNGOgdwYK1cUVzZC2mCseDWMsWmym3znAd/KD6YbyMFqrH532Ik8gVY sPMX/kyG50tVsPRTtfE/vfmlRGo/dzW9co/dlWCb2YnOnVUqTIZmb7qsttHeo5khlFqK ybu8a3+o/ps+4wiKpm7vhi/bv2l0ZfhoNE1iA7PQkqH9EuJPmzFaNTt1Wgqlew7FvQHU QwxUdvhAZDtjUxyktf6NFAb4/ulqhLGTZrnAcNtz7ei0CA1OKb8HZC4yI1tBWzCg5Y3S tXog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=J3GzFdrb4CGy9efYCd8VZEYP0gozHwzciEEOjzGh94c=; b=FTsAoEHx+HkdFOVBI+ZlKw6Gh0vmkNOsYpblqIv96bR2aPbtGnJkKEX4QXukVCmXfN ePjt4oNfOGKEbIFklflVgsCCPc9+1UX0DyVJeSndLoviENmdeOsb9EG216NXwtWbYCks CrDDfP5NLO9+sVHtvV9BBHtothC4NrW+6UpdbdJOKdwc7Bp+PfjTJ5FvD33ZAVxHCXXk W4Oh6qpRYaTg+oKw9yLpYyzJOPDGFKCVgSsdCZSm7j1f2KOHy19oJsy31P2kFvtmXXTe AXsNJ+hHF/6BrLWweI14Zv70tAAt+3QQnpRwNmpO+fwg6TXgBxyB3MSgGqjBMBzMnV+D TQUA== X-Gm-Message-State: AA+aEWYWrVNmo9BDrS3xTIZP0eqtojsOGE3PMSfSC1k/I5WjJXSfOIAX rWD/0Kld44FTdwOZxywsG3k= X-Received: by 2002:a62:1541:: with SMTP id 62mr2111067pfv.230.1543510244695; Thu, 29 Nov 2018 08:50:44 -0800 (PST) Received: from localhost.localdomain ([2601:644:8201:32e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id 78sm3269921pft.184.2018.11.29.08.50.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 08:50:44 -0800 (PST) Date: Thu, 29 Nov 2018 08:50:41 -0800 From: Eduardo Valentin To: Anson Huang Cc: "rui.zhang@intel.com" , "daniel.lezcano@linaro.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Aisheng DONG , Andy Gross , "heiko@sntech.de" , "horms+renesas@verge.net.au" , "arnd@arndb.de" , "amit.kucheria@linaro.org" , "enric.balletbo@collabora.com" , "ezequiel@collabora.com" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "shawnguo@kernel.org" , "LW@KARO-electronics.de" , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx Subject: Re: [PATCH V4 4/4] ARM64: dts: imx: add i.MX8QXP thermal support Message-ID: <20181129165040.GD2688@localhost.localdomain> References: <1543458696-4741-1-git-send-email-Anson.Huang@nxp.com> <1543458696-4741-5-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1543458696-4741-5-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 02:37:47AM +0000, Anson Huang wrote: > Add i.MX8QXP CPU thermal zone support. > > Signed-off-by: Anson Huang > --- > ChangeLog: > V3->V4: > *move the tsens node to inside of SCU node as it is belonging to SCU. > --- > arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > index 9b08688..48f622c 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > > #include "imx8-ca35.dtsi" > > @@ -87,6 +88,12 @@ > rtc: rtc { > compatible = "fsl,imx8qxp-sc-rtc"; > }; > + > + tsens: thermal-sensor { > + compatible = "fsl,imx8qxp-sc-thermal"; > + tsens-num = <1>; > + #thermal-sensor-cells = <1>; > + }; > }; > > adma_subsys: bus@59000000 { > @@ -410,4 +417,24 @@ > #size-cells = <1>; > ranges = <0x5f000000 0x0 0x5f000000 0x1000000>; > }; > + > + thermal_zones: thermal-zones { > + cpu-thermal0 { > + polling-delay-passive = <250>; > + polling-delay = <2000>; > + thermal-sensors = <&tsens 355>; > + trips { > + cpu_alert0: trip0 { > + temperature = <107000>; > + hysteresis = <2000>; > + type = "passive"; Passive, but yet no cooling maps? > + }; > + cpu_crit0: trip1 { > + temperature = <127000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + }; > }; > -- > 2.7.4 >