Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2511974yba; Mon, 15 Apr 2019 13:15:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxo4LwvZUaQN4Zd6lCqi3w9srxgvgLCf5kZv3S29dRzM3RnUWoDuAjHua1HyH0nh7nJ5jcw X-Received: by 2002:a62:e418:: with SMTP id r24mr78056863pfh.52.1555359319742; Mon, 15 Apr 2019 13:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555359319; cv=none; d=google.com; s=arc-20160816; b=nunMAvc3YWL8fb2d89wYl8+EdTwBnJ24hg6vp/GPI2hhEuJgET8ic9ZuZcBzWk+Yod LAagMel+tpLstFovicmMnEAEk9Pd64VPW72YGFzPKIomGLnw9O+tk1mjUgMyClTewcpj ioKNijYhKml26wt756ZzoWEcgbBSDaHGWPAA5I5RlxKDqFmKVvObCR4lHx1m4zF2i1Hx XCgga19lLPBF3WZ+ORD1dN5+zFGraDzx2/wNFU5t8jLc6y4kx/Y66sp8/87uPazrNAcI hHSNQaAnvGyc12QxUD12Awwdme039IOhPCQtpCj6PL73I/zYqEXhbEV27Znd7G7UwYBC PvSA== 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=7Zz8Pw0IywdVZmLzpySUK8y6rx1aYgJaetDtTdtCR2A=; b=Lori6rwjBBlBfGEUBGZHZl2TA3MVlwBAgocDZ1WxqO8Itu9vn1rwHxiabEKwlpg1OJ IDkuHHPukLCgJNuOnBu8e9oXfsE7RDnRrNMpaku46hOMfSFJfRXZ6oOSFTIWyIhde1C9 Idv++Dfub7UMDA5480Q828r15TrWZDzo2swEadYqTrKC5CiqIMM+zelWRR2olCRRK+Kw lykJRAGKFXnlVOHpJPa6KSwgXdr7eDZ87hakE1N8R3I9pP+ewkymDdBDX75B/yfglrF1 PDDQ+h2aq6ImLA0OnD0dCZ4qroY3X0+nOwewOdnld7JKjNOKZSoOsfhnlaUGPIIsc2Hm 72OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=laVgbQDm; 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 k75si45631033pgc.515.2019.04.15.13.15.02; Mon, 15 Apr 2019 13:15:19 -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=laVgbQDm; 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 S1728429AbfDOUO0 (ORCPT + 99 others); Mon, 15 Apr 2019 16:14:26 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52005 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728215AbfDOUO0 (ORCPT ); Mon, 15 Apr 2019 16:14:26 -0400 Received: by mail-wm1-f68.google.com with SMTP id 4so22241503wmf.1 for ; Mon, 15 Apr 2019 13:14:24 -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=7Zz8Pw0IywdVZmLzpySUK8y6rx1aYgJaetDtTdtCR2A=; b=laVgbQDmn6rBRABo2BVuka1E8Rt00qmmM6nVwd7nll+IwZjktgdwjUqveKRB222SVk JcQe1HH5L51ykMuTExgq8UUt9VVpWpBIY2neOHvN7NpRSeDnOHMyoKfTmISXTad1Ll5a CAmMmdrU00jaIr89AE5Nisw3DbtawIXvd1bV9hmoGx8JDCJF+j+TZO4YHJxUAIagv6WY rDGmh96DgqOeAq8xUe57ClYPsIwxYuk0OA8sq8hSt2DyvCACtz2YkUsTswExi7/mW/Bb R+TkkoSk3Yp1fYoHX8f8yeALHB1OcjAAC5iqTebvXqzj8Vf6CB7bnkjALcz8qzToQgO9 MpoA== 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=7Zz8Pw0IywdVZmLzpySUK8y6rx1aYgJaetDtTdtCR2A=; b=WRPxpDkJKo9O9luy3X93XoZJbn1I/dzoai5R2BYJxjnGIxFSZBOVSPCZCzztMol1d3 dn4tdajnnpIUAJqtucbvcN5nQgjUavoX5Yby6+0wWmaheTXB5wdsQNpSfCKj3e88ZKUj sP6RrDcHcC/cvw4Aa7YOXcz8eloKTmozJ+Rolk42Zf5jIaWv2VxBViIa52GkximkGSmk FeSW/hQMMIUTKH+pbHFDDWXlDVE4i08gUcmMB9DWeywCbGyxCpk4IIkO++2zPcrsxywt CJWI3siJ9PQqM/69LE8MMVQyK/JkQRdoo6eofa4jqCFwu8Nc4gwL8V7iJB5O8iT8FWdT FliA== X-Gm-Message-State: APjAAAWCi7AoB2igaIruX5WYrIxWqrig1NXDIZeDwfpRlaLK6jxq8x7G KtmtWK1o4DqVkxKuPul6bZAQUg== X-Received: by 2002:a7b:c155:: with SMTP id z21mr23776423wmi.1.1555359263779; Mon, 15 Apr 2019 13:14:23 -0700 (PDT) Received: from [192.168.0.41] (4.112.130.77.rev.sfr.net. [77.130.112.4]) by smtp.googlemail.com with ESMTPSA id e1sm84213999wrw.66.2019.04.15.13.14.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Apr 2019 13:14:23 -0700 (PDT) Subject: Re: [PATCH RESEND V11 4/4] arm64: dts: imx: add i.MX8QXP thermal support To: Anson Huang , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "rui.zhang@intel.com" , "edubezval@gmail.com" , Aisheng Dong , "ulf.hansson@linaro.org" , Peng Fan , Daniel Baluta , "horms+renesas@verge.net.au" , "heiko@sntech.de" , Andy Gross , "maxime.ripard@bootlin.com" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "ezequiel@collabora.com" , "stefan.wahren@i2se.com" , "marc.w.gonzalez@free.fr" , "olof@lixom.net" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" Cc: dl-linux-imx References: <1554881866-26333-1-git-send-email-Anson.Huang@nxp.com> <1554881866-26333-4-git-send-email-Anson.Huang@nxp.com> From: Daniel Lezcano Message-ID: <13bc5836-cc0e-82f7-60ef-3ef544aa8ec2@linaro.org> Date: Mon, 15 Apr 2019 22:14:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1554881866-26333-4-git-send-email-Anson.Huang@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 10/04/2019 09:43, Anson Huang wrote: > Add i.MX8QXP CPU thermal zone support. > > Signed-off-by: Anson Huang > --- > Changes since V10: > - remove property "imx,sensor-resource-id" and put HW resource ID inside each > thermal-sensors' phandle argument. > --- > arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 33 ++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > index 70ef3db..cc1d877 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > > / { > interrupt-parent = <&gic>; > @@ -149,6 +150,11 @@ > rtc: rtc { > compatible = "fsl,imx8qxp-sc-rtc"; > }; > + > + tsens: thermal-sensor { > + compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; > + #thermal-sensor-cells = <1>; > + }; > }; > > timer { > @@ -484,4 +490,31 @@ > power-domains = <&pd IMX_SC_R_GPIO_7>; > }; > }; > + > + thermal_zones: thermal-zones { > + cpu-thermal0 { > + polling-delay-passive = <250>; > + polling-delay = <2000>; > + thermal-sensors = <&tsens IMX_SC_R_SYSTEM>; > + trips { > + cpu_alert0: trip0 { > + temperature = <107000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + cpu_crit0: trip1 { > + temperature = <127000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + cooling-maps { > + map0 { > + trip = <&cpu_alert0>; > + cooling-device = > + <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&A35_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&A35_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + }; > }; > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog