Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp19011imp; Tue, 19 Feb 2019 17:10:10 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib8uQMSqUVGE41euf1yTdX+iIZhVw1pjZYZSs88UmOG3JHNaU/AAP7j+lpVuH2h1mm8xqeE X-Received: by 2002:a63:fa48:: with SMTP id g8mr26674937pgk.203.1550625010559; Tue, 19 Feb 2019 17:10:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550625010; cv=none; d=google.com; s=arc-20160816; b=Ta0bbtr1tHyI7vvjG35lpIe3fIx2TQaLa3/gJ27Cxqhis9hADL5DkjiDkvReYZJCTe kU/eaxp76Kca5VedPddpNLW95seRp0WeVnkuKidSvmNF1/kDJlidS07LW9DsoEfDH/Bj +pHYVNtzzGquNrykGHR5gwapX6wUkpayA59W7psAoaYRkO80p5YsiQR6Ba4gkyk1JxUP J6e/J33cwovLFBNIH0wDrL1Ebcr0t1qyXBkV2q+ggLiDZTqaTDxeRCb+Tu6uGiyRMtse 0l8NeuvNZfLtXIsQOTzWTRv5cha4egCFMua3rr8Nf85T/oh9Nxm524cfkESlwdAN57IS ZRLA== 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=ukCdnsbnEkGThnCjEEhNHPUZjRnEHIOKiIkN6gE+pOc=; b=F3bkshEZhILD6VCN7LFZe76Yro+M8Qc7eXLM0pYQ+d2gQKZ3liZxcY5xGMZQfvVNAj YCXOxn/weSqaBX7+zdkFHboVCZL36Mp0fRk3ENREarWL+VBqBHtmR5vQyPror5KqtW9e gkhUVGVpQiF50kFClITg1SLq+XwvsYc5L1vPQB3wCzZTCXr5/+s/y6iiV7yj6cUSq2Ss iN/07hvxPjkIADmMtk9UTpYYPbVCDk5mgPMUDGNA5QOsEcKXyA2CjoZ/BAfDeNiyTrGX qkr4+dRiyKb9K1pXB17kM2fGx70wnUzzm09ZA0iTh9FAKdkptkPYY0GhN2IIQOoPXNiM sG1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="hWIDD/U2"; 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 g4si17866877pfm.85.2019.02.19.17.09.55; Tue, 19 Feb 2019 17:10:10 -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="hWIDD/U2"; 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 S1728652AbfBTBJU (ORCPT + 99 others); Tue, 19 Feb 2019 20:09:20 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45976 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbfBTBJT (ORCPT ); Tue, 19 Feb 2019 20:09:19 -0500 Received: by mail-pl1-f196.google.com with SMTP id r14so11290143pls.12; Tue, 19 Feb 2019 17:09:19 -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=ukCdnsbnEkGThnCjEEhNHPUZjRnEHIOKiIkN6gE+pOc=; b=hWIDD/U2jB0DRz7keDeFOg0MFOMoFq4jH8g1uYf/TrEFjLtInMS5m2DR/EHMe0KDVW SbxLBL20yEFOb/v10m+7D183J3JBS+8dkc0U8fwIak3Zlr+COKI6uURkKUnrJAVM/Kcs GzpT77iIL6E8LRIPvEhQ3Uefbss8xZYbmSa4Labk2nnft/r/pGsupuD7mxV2FhY3ewag lhonEh0SEq6Kt2XpewBY1DjYycWCE84xNBEYxLeXjYkSPJrTPsXTeCmilmbgfPufIRjk fhQiZ4ncKMoajStNdyLACxrcklONOAHDkZ4NoCPAHL0jFqZZvI4mtwE5CjRIHArgfDdn pfJQ== 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=ukCdnsbnEkGThnCjEEhNHPUZjRnEHIOKiIkN6gE+pOc=; b=Tp6Q4rxeoVC8bZQiYIN6EnwSHKMfcfSuhGjC0IKEmXt6oMvjuwEy8sspwu+hDrCRHp YAkENxlH5MB/GMaEW1DVuEB1L24v0byNq9UK0pUQh98lSqSVRk8rpUeycq9DKb+Rfa1p ijjfySMX+7IkZ5e7wOyHeAWHg/QkB3USTVWVQVmo7Jx/gaeqEL1kpNNp/xX4D0aVeG9T 3fB8zl6PU5hPocswipEFMd+STpM1/nuiHTp836jlz+p4AIpqg/qa54lm6JUW1zYGgI/F e+eq6yrNnH1Wmo1TmD5Od8lDPdwcpegQ9Lzx3APxQkiYdd7lM7ZCK3n8qFLlkBRpar/l nppQ== X-Gm-Message-State: AHQUAuY/W+S/TqOTLMR9r/2nBfLaNRm1vZ7Xk0hukfja+yPlze5qthWY mT6Jg8gLbKbnNbNTWQuLmFs= X-Received: by 2002:a17:902:10e:: with SMTP id 14mr26761693plb.14.1550624958618; Tue, 19 Feb 2019 17:09:18 -0800 (PST) Received: from localhost.localdomain ([2601:644:8201:32e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id j14sm7219371pfe.12.2019.02.19.17.09.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 17:09:17 -0800 (PST) Date: Tue, 19 Feb 2019 17:09:15 -0800 From: Eduardo Valentin To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui , devicetree@vger.kernel.org Subject: Re: [PATCH v1 23/24] arm64: dts: qcom: qcs404: Add thermal zones for each sensor Message-ID: <20190220010913.GB2811@localhost.localdomain> References: <42fd6c63c58db82088924c70d016e03a2b6fa9fe.1549525708.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42fd6c63c58db82088924c70d016e03a2b6fa9fe.1549525708.git.amit.kucheria@linaro.org> 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, Feb 07, 2019 at 04:19:41PM +0530, Amit Kucheria wrote: > qcs404 has 10 sensors connected to the single TSENS IP. Define a thermal > zone for each of those sensors to expose the temperature of each zone. > > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/qcs404.dtsi | 243 +++++++++++++++++++++++++++ > 1 file changed, 243 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi > index 57d14d8f0c90..ca99c45864df 100644 > --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi > +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi > @@ -3,6 +3,7 @@ > > #include > #include > +#include > > / { > interrupt-parent = <&intc>; > @@ -30,6 +31,7 @@ > reg = <0x100>; > enable-method = "psci"; > next-level-cache = <&L2_0>; > + #cooling-cells= <2>; > }; > > CPU1: cpu@101 { > @@ -38,6 +40,7 @@ > reg = <0x101>; > enable-method = "psci"; > next-level-cache = <&L2_0>; > + #cooling-cells= <2>; > }; > > CPU2: cpu@102 { > @@ -46,6 +49,7 @@ > reg = <0x102>; > enable-method = "psci"; > next-level-cache = <&L2_0>; > + #cooling-cells= <2>; > }; > > CPU3: cpu@103 { > @@ -54,6 +58,7 @@ > reg = <0x103>; > enable-method = "psci"; > next-level-cache = <&L2_0>; > + #cooling-cells= <2>; > }; > > L2_0: l2-cache { > @@ -507,4 +512,242 @@ > #interrupt-cells = <2>; > }; > }; > + > + thermal-zones { There are several zones with passive trips and no cooling maps. > + aoss-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 0>; > + > + trips { > + aoss_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + aoss_crit: aoss_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + > + dsp-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 1>; > + > + trips { > + dsp_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + dsp_crit: dsp_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + > + lpass-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 2>; > + > + trips { > + lpass_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + lpass_crit: lpass_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + > + wlan-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 3>; > + > + trips { > + wlan_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + wlan_crit: wlan_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + > + cluster-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 4>; > + > + trips { > + cluster_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + cluster_crit: cluster_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu0-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 5>; > + > + trips { > + cpu0_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + cpu0_crit: cpu_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + cooling-maps { > + map0 { > + trip = <&cpu0_alert0>; > + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + > + cpu1-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 6>; > + > + trips { > + cpu1_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + cpu1_crit: cpu_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + cooling-maps { > + map0 { > + trip = <&cpu1_alert0>; > + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + > + cpu2-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 7>; > + > + trips { > + cpu2_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + cpu2_crit: cpu_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + cooling-maps { > + map0 { > + trip = <&cpu2_alert0>; > + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + > + cpu3-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 8>; > + > + trips { > + cpu3_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + cpu3_crit: cpu_crit { > + temperature = <110000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + cooling-maps { > + map0 { > + trip = <&cpu3_alert0>; > + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + > + gpu-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens 9>; > + > + trips { > + gpu_alert0: trip-point@0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + gpu_crit: gpu_crit { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + }; > }; > -- > 2.17.1 >