Received: by 10.223.185.116 with SMTP id b49csp4635990wrg; Tue, 6 Mar 2018 21:01:32 -0800 (PST) X-Google-Smtp-Source: AG47ELv9jWdcpi7sDqWWuR85hWylqRUC9QGcklguplaLrbmn3lsTbRycNVgIhmh2k8ZjWkRy9viV X-Received: by 10.101.73.139 with SMTP id r11mr17284751pgs.322.1520398892603; Tue, 06 Mar 2018 21:01:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520398892; cv=none; d=google.com; s=arc-20160816; b=Tk8Pz6jagzzqqHiyDIfsD+qNsfLRBMoav14kNxYhv6Ln6y9w9CSHYWrg/AlYUVTWcC YrKFbczmBOvsN38qG2gcaHBsFlZYhWSyQ2a8d/4rIzVvobugF16Epj9v9/rS8BA5mQNS 0nH4lktYZDWG/sEczLOPxUaNBnb1WaGi6h3+MSAKvNApEPD9JOcQsJyge3rGC3VGXRLV ESAfJDB8YATel79BeXU9ukdclcXuzErBd0l4MJy5S91BCB+qIredj8DYEB/6r7SR6L+b XFLcPA8Jf9Coged4uzhBHQBKUi8PC2xCbTkSHaza1nvQXqd34/NjmsmNQktgDhpC4gX5 xfEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=z+gae73rn/5DwugDhtsDPpOr7oSiMylwl/aJtFsgb1s=; b=iJLMOOaDJKkSNI0plPmqa31vk062brBhcV+em8qx2pcyPIbRkh4YYSlLmgH0SHiWlr WK9CZm8lsO2qHL/xk3Zzgt6JG36g8Dn6pCS2qi6JzW8Asrqa3RYarEyPeX6PF/NPRPzS D+qUP8eMTSbCs0vOeOcTX5mwVEGJt01HuOSFTpobx9c99Y6FxP1lV9QbYt8r2DsVlq5h oRihwjaNGwO8uYIVVM54IjrhXpbcGWFLTaCGJGG+q4eeP3zIDpZz0UWxESuRnJIjS44J RB41vC8HQCSLOyHHrPgwqWi/9fesZ2zN7rAKWX1rGQos/wdvBWvQtpHq5zVHPGZlFnX/ h/9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iWRsnypg; 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 f33-v6si10797888plf.650.2018.03.06.21.01.15; Tue, 06 Mar 2018 21:01:32 -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=@linaro.org header.s=google header.b=iWRsnypg; 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 S1751011AbeCGFAM (ORCPT + 99 others); Wed, 7 Mar 2018 00:00:12 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:32953 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750830AbeCGFAJ (ORCPT ); Wed, 7 Mar 2018 00:00:09 -0500 Received: by mail-qk0-f195.google.com with SMTP id f25so1224729qkm.0 for ; Tue, 06 Mar 2018 21:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=z+gae73rn/5DwugDhtsDPpOr7oSiMylwl/aJtFsgb1s=; b=iWRsnypg4Ikx4NU6e6tb05QgITVG1uJ9GwKS5seBcb4Rg7iinb+dAsnGby/EDnl1e1 2TdZrMnwfYaHI9j+/8cznVUFtdj5zqxnwhjJRWzhonGzE7jLZcynVQmsdvhVTewBd6BW obuS/v++nfWEIF7/0RaAkcG0N/Jmz1zfzDfDk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=z+gae73rn/5DwugDhtsDPpOr7oSiMylwl/aJtFsgb1s=; b=azTDtEKvz6vxqdpl0Hed1EQPlD9Dk9R7btOr1oHa4RejY0BaX/7EtomWmtawJqzi0T XilSkpcu/bYUfrEbx9Xc6qmynfms22kP3RnTgLSQyHLyuD00ZciNESg6LeEMZvobUKme FGxnDpl4OEFJUElDaDtBQBunwzHQZv52oe26GH2Gv7AFbbN9y8WiJSo6CRB6jW5K7+Ek J8Ayuq+qMGnu/YeHuQQcGrJNJcibv3JhWE9fUMpnGpUUy/y0fFZvGxDzxGPuOGBRz1J7 O7nLsTFeTMMhEY1mucmbxQ+WrowVdOX1AmfSwgRIaUNCIFucqSS4YT4RpQlxAWpVEovs Xxag== X-Gm-Message-State: AElRT7H+MbunSerWTkrOoF3G45Zdx1vgu9/qpygATHxwuEqQrrX6hExm NPSNA6hzbr7HyBB0EwQ3gm5jHA== X-Received: by 10.55.150.199 with SMTP id y190mr7081518qkd.334.1520398808936; Tue, 06 Mar 2018 21:00:08 -0800 (PST) Received: from localhost ([45.113.251.224]) by smtp.gmail.com with ESMTPSA id q10sm12336679qtk.25.2018.03.06.21.00.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 21:00:08 -0800 (PST) From: Amit Kucheria To: linux-arm-msm@vger.kernel.org Cc: Rajendra Nayak , Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: msm8916: Add cpu cooling maps Date: Wed, 7 Mar 2018 10:30:02 +0530 Message-Id: <4d134dee2154ae3fa56b375aaed9568e21b1a777.1520398076.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <9f7199f0027ef2382e5ccc61a5118d0a00fa2e63.1520340931.git.amit.kucheria@linaro.org> References: <9f7199f0027ef2382e5ccc61a5118d0a00fa2e63.1520340931.git.amit.kucheria@linaro.org> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rajendra Nayak Add cpu cooling maps for cpu passive trip points. The cpu cooling device states are mapped to cpufreq based scaling frequencies. Signed-off-by: Rajendra Nayak Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index e468277..66b318e 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -15,6 +15,7 @@ #include #include #include +#include / { model = "Qualcomm Technologies, Inc. MSM8916"; @@ -115,6 +116,7 @@ cpu-idle-states = <&CPU_SPC>; clocks = <&apcs 0>; operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; }; CPU1: cpu@1 { @@ -126,6 +128,7 @@ cpu-idle-states = <&CPU_SPC>; clocks = <&apcs 0>; operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; }; CPU2: cpu@2 { @@ -137,6 +140,7 @@ cpu-idle-states = <&CPU_SPC>; clocks = <&apcs 0>; operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; }; CPU3: cpu@3 { @@ -148,6 +152,7 @@ cpu-idle-states = <&CPU_SPC>; clocks = <&apcs 0>; operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; }; L2_0: l2-cache { @@ -196,6 +201,13 @@ type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu-thermal1 { @@ -216,6 +228,13 @@ type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert1>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; }; -- 2.7.4