Received: by 10.223.176.5 with SMTP id f5csp550205wra; Wed, 7 Feb 2018 03:46:04 -0800 (PST) X-Google-Smtp-Source: AH8x227ZpIY7fcYRSaJDv1o/Jk+WPBwFnKpCWk1tGi0Np2yfCuGRxniI464v15DgnkVbONRqtpri X-Received: by 2002:a17:902:9a04:: with SMTP id v4-v6mr5689471plp.252.1518003964700; Wed, 07 Feb 2018 03:46:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518003964; cv=none; d=google.com; s=arc-20160816; b=xBAVH02cJ/oC8SovMeWvrb7oJWF3eRvlV9NrWjRVV/w4PlYhCZW6L3VudDXk/0of7J m5+EETYZbtAy+Xj+dSZoqo6h1Di60/RETxoZZXWMKzzQpqnHR9/2DsnU7mRQRPIeFTnN DbwKBltgIqAdkLE+eNxzTjykOr9OJ91q8QJPVG77dtspoYBLHzA87CQmNd87wpIHjG6B 1UvqnDqQ2yvVr5WDA+uItAabhWrs0yY/edjNRHz67j3kbp2OedZCMgYGkJShPO2DgPti /91/Y9AeGwJPmshkscVoV2k1rMd2qiKjlxTKdUYipSw/xTgtCRubGt725GZLIdJ9b/zs Kb7w== 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 :arc-authentication-results; bh=H3fm02Z1ZguPgh4be+XfnaCe5UoYbFkTHsUYysvMeOI=; b=pDTi2+EXCZJ3ePfoj46cS2qTzjoPm0JpglJUmM2djB95KxoiwTiyy5OcD2h02JxZeM 6/eicnKiAa80TRqXLYDu/rDpzpNS5ogfSRLY9ClOC6mR75CmS4Rt+vZPtPswjcquCakQ 7FqteD+O2IfJsxmyzkytEktbjcMQlt7fjrc74DNesDFeUYZIptkAeAoV+X27ZVB3Tz3S iBa0PXNuqwbhhNhp/vL78roLpMx0fezsQnXK0U7SoaAhLUq7AYDd1BB/B2X3QkrRIu1Y Rj9M7kzPsSOBQfNTxMnI4tDNTmblgoWF2QGb+adR+zjFPLlJr7YPYlp4R1q95QgMtHRi McpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q0z2WpYg; 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 k3si1003987pff.157.2018.02.07.03.45.50; Wed, 07 Feb 2018 03:46:04 -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=Q0z2WpYg; 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 S1753926AbeBGLoD (ORCPT + 99 others); Wed, 7 Feb 2018 06:44:03 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:41295 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753736AbeBGLoB (ORCPT ); Wed, 7 Feb 2018 06:44:01 -0500 Received: by mail-io0-f193.google.com with SMTP id f4so1678343ioh.8; Wed, 07 Feb 2018 03:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=H3fm02Z1ZguPgh4be+XfnaCe5UoYbFkTHsUYysvMeOI=; b=Q0z2WpYg45QjK6KtkaceUAipD3p/r10AXJcRdmGhzUqUAJpaMDkh/8LyUxQwRfWzxw yc/v+fXGC/9NPDARQhXHfKU24yCteFYfzYtYNMCe2CUMlhSa4Un+iRZ8h9FSK8DxWHU5 ujJPkVyaHTsq7qW8kk9scHlYbY0QXin1aBGFjY3scO+LqXeZB0tTxLCIiuZFKWDLs80j l/lQLU2H88DQr/bkHxmeKPU6hUsUSxX0DjOr/HsfAy7w2zUdQfCjNWfglU0ZEV8Z71hR dT/hrLuvLXcNCSrHMUImoZGPRNrggnp4QAtEs2esahVkfRhyxsL03iSKxeccOlmhBzso lz2w== 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=H3fm02Z1ZguPgh4be+XfnaCe5UoYbFkTHsUYysvMeOI=; b=EzlyVeu8DJhdDxipH8LtB3LFVEUzso/Y6E5HLCcERSzdo8jf2F4CFmcKL+tzWDih6O 0pyeO1uVAby67wOzY+sYXKEXdWr/zEj+fxDQv225wYPKGQd6XdrG03rPoQwPBlEfyAe4 7TEixMeFFS8dA3H5jUyfN7eg9VrFUOFaCEHPS6Wf/x/KA/Om994SNln0Bxn21vlcnRdW wdiELYMl8WO1iAT75b9z1XV/9lbAAmxToOGVnd9pVN+S/19FSW6fRwRH0K/5c0qnXdPF em+WXj0Nmlnx8TysQVKaD9QywmaW1dmZR6TsWw+Et3TG3jEekB9eOQ9oSndUTwqxW0cA BNYA== X-Gm-Message-State: APf1xPBHzxPoyTP2wUUnYPDFfvamC+aBvcsqVZgUY8AaucCOgeEX9sKi hq2VbgHNuQ4O2FqwFVzn971awxTy X-Received: by 10.107.137.104 with SMTP id l101mr7094483iod.179.1518003840200; Wed, 07 Feb 2018 03:44:00 -0800 (PST) Received: from ziggy.stardust ([37.223.139.174]) by smtp.gmail.com with ESMTPSA id u196sm1998906itc.2.2018.02.07.03.43.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 03:43:59 -0800 (PST) Subject: Re: [PATCH v2 14/16] arm64: dts: mt7622: add thermal and related nodes To: sean.wang@mediatek.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <687a7c43e3e3260ebdf004a96d2cde143f563250.1517910489.git.sean.wang@mediatek.com> From: Matthias Brugger Message-ID: <4db5c81b-0e55-3676-d7c8-d1b6aefb99c4@gmail.com> Date: Wed, 7 Feb 2018 12:43:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <687a7c43e3e3260ebdf004a96d2cde143f563250.1517910489.git.sean.wang@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/06/2018 10:53 AM, sean.wang@mediatek.com wrote: > From: Sean Wang > > add nodes for the thermal controller and associated thermal zone using > CPU as the cooling device for each trip point. In addition, add a fixup > for thermal_calibration on nvmem should be 12 bytes as the minimal > requirement. > > Signed-off-by: Sean Wang > --- > arch/arm64/boot/dts/mediatek/mt7622.dtsi | 72 +++++++++++++++++++++++++++++++- > 1 file changed, 71 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > index e6dd4f6..6cf67dd 100644 > --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > > / { > compatible = "mediatek,mt7622"; > @@ -75,6 +76,7 @@ > <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>; > clock-names = "cpu", "intermediate"; > operating-points-v2 = <&cpu_opp_table>; > + #cooling-cells = <2>; > enable-method = "psci"; > clock-frequency = <1300000000>; > }; > @@ -119,6 +121,58 @@ > }; > }; > > + thermal-zones { > + cpu_thermal: cpu-thermal { > + polling-delay-passive = <1000>; > + polling-delay = <1000>; > + > + thermal-sensors = <&thermal 0>; > + > + trips { > + cpu_passive: cpu-passive { > + temperature = <47000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_active: cpu-active { > + temperature = <67000>; > + hysteresis = <2000>; > + type = "active"; > + }; > + > + cpu_hot: cpu-hot { > + temperature = <87000>; > + hysteresis = <2000>; > + type = "hot"; > + }; > + > + cpu-crit { > + temperature = <107000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map0 { > + trip = <&cpu_passive>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + > + map1 { > + trip = <&cpu_active>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + > + map2 { > + trip = <&cpu_hot>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + }; > + > timer { > compatible = "arm,armv8-timer"; > interrupt-parent = <&gic>; > @@ -201,7 +255,7 @@ > #size-cells = <1>; > > thermal_calibration: calib@198 { > - reg = <0x198 0x8>; > + reg = <0x198 0xc>; Any reason why this is not part of patch 8/16? Regards, Matthias