Received: by 10.223.185.116 with SMTP id b49csp2389967wrg; Mon, 12 Feb 2018 08:49:00 -0800 (PST) X-Google-Smtp-Source: AH8x226eeJavMCw7nowB+qCyx52oPM/pcSIFN9Emspl9rYh7QsGXPvOxJsCLDISsLYzHY6GR99TR X-Received: by 2002:a17:902:7808:: with SMTP id p8-v6mr10229029pll.161.1518454140454; Mon, 12 Feb 2018 08:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454140; cv=none; d=google.com; s=arc-20160816; b=NgIflsxnjSN7/wF3KoIg4OD2Bd07+pmjLDPedans7iynUVNLOR4ik2uidPSoMpJ2lJ nb3y6/ay5m2nMWng8LMBA6u3VrJQ7fS2dv1Y24NpxOv4woPjJT71puksWldm9D70aq6i v37Rugvi51UWPPG2dbBxbd/eRsENayG2UNoUBPBBFWbpOnfeCOEEFbmtUub9HFqyW4+a XahDmrqO5TU/FtzYwWXM30H1IBR0tuRkjF+skfZWFoby9PyBuE+OXDL23239fRnFSYW1 IUQbfVZvIaFjprpIcr+DYC63vAF3dPc7/UCzVjaDymi4xlHOrvoJlOD3H9Yw3RD0VfDI 0vyw== 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=G50E0Wf6ro4S7vd7zUU+Qen96KRk5KS85eUIwU9oTBk=; b=Sc0LDvVfpbP+RGlTOP0RXR2B+5QDXN9hlCTiosPcKgzLrEu4oTs/gwOo6TbIQoh0up oOMCg6mtfGUAqQgh/VDtbhb8Yhv2G47Wwxyd4wDwDaTWQ1DozdyfNrqnreGFo1jez8x9 CSymtxT0uLpMMBlUq9TzjXpGTpKIN2d5b7Syrd1Kh0RJgVZ8C33rKXCg2aREixNM0j3f TtVdm2y5hXxgsRLsvdrn9YG3keaY7XvTEAbVSKAjxcIkAjEnZYyTwZYynEcRz+OzaNnA +Yh5rQkzovjI0LVoW19M9y02aD/WmANJSFpPgnj9I9DRYXi4lQksdrR8S6F8ZDovpIcG JBuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eIc6F92R; 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 u1-v6si429687pls.625.2018.02.12.08.48.46; Mon, 12 Feb 2018 08:49:00 -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=eIc6F92R; 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 S934356AbeBLLzw (ORCPT + 99 others); Mon, 12 Feb 2018 06:55:52 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36605 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933898AbeBLLzs (ORCPT ); Mon, 12 Feb 2018 06:55:48 -0500 Received: by mail-wr0-f195.google.com with SMTP id y3so14899011wrh.3; Mon, 12 Feb 2018 03:55:47 -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=G50E0Wf6ro4S7vd7zUU+Qen96KRk5KS85eUIwU9oTBk=; b=eIc6F92RVS9Y8T2gwDAe6CErSQJewNVmIY3c8W07q7CS5MzCYyOJ6O2O8Jzh5vcDwx RRLZeD0mfVARwCHVvHQkSlIbDeGWGZVxJ72BCww1MPI5AmJ+yLD3/NrrKgpxCXqN8hSC hwBeVc1vBRzEIpX6P85pB6KuZyMbDoY4Kv1cGoOvl7kmvsXVk45NV6kb9ji1n9+HApXV f6Tjan/rdpcgE/DghzeLGXUgwcXU4CRx6Rl5lNeNwqqJSxc9cyVOr4XmrLMRaG4mWzdU oI5yku1M20SiN48fXmohTDTWFLfxchLBBuHO902jiaadj7meoJxTE8fezk1qLjtJsHKL AvFg== 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=G50E0Wf6ro4S7vd7zUU+Qen96KRk5KS85eUIwU9oTBk=; b=WsmvHy622eFFCUXezBNsNqdcDUTxyuscirpxq7D+JoSNyY1Oq4f+EiLDPWQ8vnT+Fv nFhSa8DieXOKJF9pCnvmYPB6h350gIAl6P3n/6dk8i8f8z0NoPJ5enIgFkDmUYjy8ZFV EqcqHymuNmgp25kAfnbFBlh0lDovpJ/XCZfdD47UCCfAC7b08HXpTBrq5L0F0aeCWuRy vOca3Z7nXDK2/5M7IxCWZQ9HyscB87O0gCX/qmpk7K5RaAB8DqkzZzhLClbXQO7AT4G8 xelz73/Qx1UpoId6uLRjLrdmPbCkIm+jMs73cou/2WM/n4RTAnhDqXIYZVrcmAiY4JEu WfMA== X-Gm-Message-State: APf1xPCbtoVvpK2QW/5aarw5lBATv+bAebeaPOHwFWCAyradMz1GdjOE bMlsZ1Ydml5sXjgYcam/cnooY1Is X-Received: by 10.223.187.20 with SMTP id r20mr9604752wrg.93.1518436546556; Mon, 12 Feb 2018 03:55:46 -0800 (PST) Received: from ziggy.stardust ([37.223.138.75]) by smtp.gmail.com with ESMTPSA id d73sm6925451wma.25.2018.02.12.03.55.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 03:55:45 -0800 (PST) Subject: Re: [PATCH v2 14/16] arm64: dts: mt7622: add thermal and related nodes To: Sean Wang Cc: robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <687a7c43e3e3260ebdf004a96d2cde143f563250.1517910489.git.sean.wang@mediatek.com> <4db5c81b-0e55-3676-d7c8-d1b6aefb99c4@gmail.com> <1518148312.9025.17.camel@mtkswgap22> From: Matthias Brugger Message-ID: Date: Mon, 12 Feb 2018 12:55:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1518148312.9025.17.camel@mtkswgap22> 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/09/2018 04:51 AM, Sean Wang wrote: > On Wed, 2018-02-07 at 12:43 +0100, Matthias Brugger wrote: >> >> 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? >> > > There's no strong reason wanting me to do that. patch 8 has contained a > lot of nodes and patch 16 is present just in v2. So, I felt it should be > a little bit easy that people reviews those patches if they are put into > separate patches. But, It's still fine to make them into one in the next > version. > Please add it to 8/16 as this is where you define the node in the first place. Thanks!