Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1158003pxf; Fri, 9 Apr 2021 01:12:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO2OJDB9vtLI1utNdkAvS2BFDZ6fHrS5EeMZkUxwCi10RHyjPTCWPsczcJXxFm/48AjVTR X-Received: by 2002:a17:906:f9da:: with SMTP id lj26mr697573ejb.98.1617955924356; Fri, 09 Apr 2021 01:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617955924; cv=none; d=google.com; s=arc-20160816; b=xBIitGMyvKF6vDyvbO0q0EmJ0Fyst/hnmH0Iglv/T8CkBTTVy/WW2tcPK9zeiWFEwm 1Iku3dfb4LSK/rzxk8u3AM0kZXdfQW2tDlIz4PfEVdD+ejhj5eni4rvTbyJt4hk3v7dL ee/bFJfNMbA3AaGEDNLNIzvKAgJBbk7Ofgp5q+8mamOEUoDVC9QZ2qW8C3PC2x2dFmny h87jdD/rbyf9ThgWtqrp0KY8B3+aAR90kwzDw+ieZdzBR0TBZtBJ1q2Cg6UXZ8ar/xNQ 2ek0KDAQlbkV0QOyXD+7McJS8j00opmn6NXJVutqIuxUcbPp7i6zBXDNXAbsqbTwHdGt RqKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=KwLBWMBZRdz46SUCvmDH9Z5zZXCHk+G/HINFfQ17P4M=; b=k0JMZuvP0MGQPsUwkjW5ycYGzqUWNcq6KNPfxivmfnGNXA9QZp4ecaHVy+iMgF4ZLn kXmEDotlLCURTSrIuQirpTCegmBP7eB7WX6rSg6FxfOQ3+FIMqgBeEaNMeXHBN/KzmqL 5kSa+o93ZVfhtpgei/elEI3uDl3OhIkj6jrLx8U0LPo9nMYzMvrYQ6DWs5SSBuqpontn Pkm3vlWa23M4J6Sspk12Pb49/P8rkqGTdR5mfm4r1erINZfRgY3mOTTPT1a73dUlM6Gf 7v3jrVAq/KFbDpO+8PNDUUlHczOrqPTO88dpZG3oYG8Qy+V9sX4EMiNs5nkiU/+xINUO KzgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hNhtj/aN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n7si1501061ejl.155.2021.04.09.01.11.41; Fri, 09 Apr 2021 01:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hNhtj/aN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232583AbhDIIKT (ORCPT + 99 others); Fri, 9 Apr 2021 04:10:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232452AbhDIIKR (ORCPT ); Fri, 9 Apr 2021 04:10:17 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D536C061760 for ; Fri, 9 Apr 2021 01:10:03 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id q26so4688781wrz.9 for ; Fri, 09 Apr 2021 01:10:02 -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=KwLBWMBZRdz46SUCvmDH9Z5zZXCHk+G/HINFfQ17P4M=; b=hNhtj/aNpiqdIzZxP30CSRrlHSEJ+O8XRNC6jWPo79WZV4eucvGfZoZkKIdlEF6Khu N+SQeipigjG2DjlfUvoxpdaaHARK2jibT3Ojl+9fBLq90YpUiKiJZAFS1RkH4ZC07h/u p+WxjHZXM1FPv+9AWnAjECvuHh4dW66akPp3V7i2jJAzYNGjBOq8m91JKig8nHsDClHA wDszXITwkUa3he/ggRpNIGHI0P/qgrs0BYF4MpTe3Zf3zHBbK0XaSzRZw0rM1XdDtJmW MPsTCb833ukTW1aPV15PJuTaQOEw00OlZeSqY3JBQ3ltR1bsHn5hpL+mZzdfzF3fyw65 Ebfg== 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=KwLBWMBZRdz46SUCvmDH9Z5zZXCHk+G/HINFfQ17P4M=; b=APklUuCvpR5ak28KO9SUvljH7I89OQ0wE/1H6i58PjV4Zbv6TdOrMNZxOV3nFfyc1h xMMrMkO2S/5snAN5lDn2R2+i1vZDglSV5Mcf2x16LxqtdadiweiDjx3TyOD67Gy4sC7n cu63GoZKJhkxFdJmiH/JbfBsv4YFcwdLv/iIYLzWZ9m/y/uz64KvHmcGjU3cT4GdJ0fp ZT4BLNo5FD/vm+kSEWUjWUneccRUfJzAa5Nl2Q/YmFTq/4+pea5I57QATodMCZTtrWCY +tuRfsQXEZqARxGbxN7tgmRlQAZoCFWPaknweQC08jMBTdbGPDAwmBF0rQlPr85XLozg CF2w== X-Gm-Message-State: AOAM531fo4FtgbL9Z9nL88LI4muFgI4r2pH2RDbU2+UJkGGdY/hIDm5D cst7vp35tfOWo4PZbiJP2hYsDw== X-Received: by 2002:adf:dc4f:: with SMTP id m15mr16484222wrj.420.1617955801641; Fri, 09 Apr 2021 01:10:01 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:5d29:55c:ba8e:9bff? ([2a01:e34:ed2f:f020:5d29:55c:ba8e:9bff]) by smtp.googlemail.com with ESMTPSA id u9sm2677419wmc.38.2021.04.09.01.09.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Apr 2021 01:10:00 -0700 (PDT) Subject: Re: [v7,1/3] arm64: dts: mt8183: add thermal zone node To: Michael Kao , fan.chen@mediatek.com, Zhang Rui , linux-pm@vger.kernel.org, srv_heupstream@mediatek.com Cc: Eduardo Valentin , Rob Herring , Mark Rutland , Matthias Brugger , hsinyi@chromium.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20210316070144.28440-1-michael.kao@mediatek.com> <20210316070144.28440-2-michael.kao@mediatek.com> From: Daniel Lezcano Message-ID: Date: Fri, 9 Apr 2021 10:09:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210316070144.28440-2-michael.kao@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/03/2021 08:01, Michael Kao wrote: > From: "michael.kao" > > Add thermal zone node to Mediatek MT8183 dts file. > > Evaluate the thermal zone every 500ms while not cooling > and every 100ms when passive cooling is performed. > > Signed-off-by: Matthias Kaehlcke > Signed-off-by: Michael Kao > --- > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 85 ++++++++++++++++++++++++ > 1 file changed, 85 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi > index 5b782a4769e7..d3550af06408 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi > @@ -657,6 +657,87 @@ > status = "disabled"; > }; > > + thermal: thermal@1100b000 { > + #thermal-sensor-cells = <1>; > + compatible = "mediatek,mt8183-thermal"; > + reg = <0 0x1100b000 0 0x1000>; > + clocks = <&infracfg CLK_INFRA_THERM>, > + <&infracfg CLK_INFRA_AUXADC>; > + clock-names = "therm", "auxadc"; > + resets = <&infracfg MT8183_INFRACFG_AO_THERM_SW_RST>; > + interrupts = <0 76 IRQ_TYPE_LEVEL_LOW>; > + mediatek,auxadc = <&auxadc>; > + mediatek,apmixedsys = <&apmixedsys>; > + nvmem-cells = <&thermal_calibration>; > + nvmem-cell-names = "calibration-data"; > + }; > + > + thermal-zones { > + cpu_thermal: cpu_thermal { > + polling-delay-passive = <100>; > + polling-delay = <500>; > + thermal-sensors = <&thermal 0>; > + sustainable-power = <5000>; > + }; > + > + /* The tzts1 ~ tzts6 don't need to polling */ > + /* The tzts1 ~ tzts6 don't need to thermal throttle */ > + > + tzts1: tzts1 { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&thermal 1>; > + sustainable-power = <5000>; > + trips {}; > + cooling-maps {}; > + }; What is the point of defining the sustainable power with no cooling device associated ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog