From patchwork Tue Mar 6 13:05:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 130794 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3914365lja; Tue, 6 Mar 2018 05:05:25 -0800 (PST) X-Google-Smtp-Source: AG47ELssZzH2CjoP5KwYLgRqismVAuERWpNeEQEbol9XLcP0NQufL5u9Wcso8Ry01SLKXWkmQjF5 X-Received: by 10.99.120.5 with SMTP id t5mr14906065pgc.156.1520341525126; Tue, 06 Mar 2018 05:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520341525; cv=none; d=google.com; s=arc-20160816; b=nwJIiTKJO5JeOb3OMLANGTSzlxw2vvblF4el6yapaHVeopQ/e44fIQumFMDZLUFsdY /MxOKCBsWvLf/3NhC69jjxtqEtr6bdzXrzenFvHIcd4Wj7YvYNHR/TI+48gFteFTkUzS yWA2dXv3GKoKYDfA7E43wWY+YA8Kkh6S7eT3nL3c4wJbNm1+DoZ5l0WzRJQThHfxWeIm KHDthhHaObf4EiK4j6rjFXDKA4JUC39W7stxcXiRSRYNe9VAOUNwhINxE/gNVpmoAqCe obT9z1RIUxw0LhvdOV9+QVQyOQFUlVy37XfN7l+qUqiKp5i91ghPPucCM8xZGO8AaDnw lDtQ== 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=+qGqJcHPZnCK5G4SLWbd93z8GGv7A+XrhTJzOxSMXZU=; b=HmIsEbkPotLvt7WE34xa18lj9nL+mPD/0tzs3cQ+4l+ugBTiIyBSbckuVkCNQeB8lZ wQiryabR7dOBMsz/sBKdJMKe7eG9ns102qVCnU7ea9vO2aLbhZugDeGl6ovPZaYW8JRc gCYOKqwUgiyrMzw7tyLRsQ4OsARr650HeHiJmkR47vcdIUkxPl9xYscqE779e6sv1NSP yXxRUX08ra9i4muz9LCtKlJIA/A99yOORT/Thn+P5aOLexjGTz3JkVSoGvZ8lKNmPEAh 0V1AeS+ZdFwMkhN6R22hYjRKRYYIXUZZ+50xBfSyTUcdwPnmtIXnpgvGRGteSTGWJDjz 873A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hZUB7gEv; 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 z96-v6si11113391plh.35.2018.03.06.05.05.24; Tue, 06 Mar 2018 05:05:25 -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=hZUB7gEv; 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 S1753791AbeCFNFW (ORCPT + 28 others); Tue, 6 Mar 2018 08:05:22 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:45729 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753756AbeCFNFR (ORCPT ); Tue, 6 Mar 2018 08:05:17 -0500 Received: by mail-qt0-f194.google.com with SMTP id v90so24363917qte.12 for ; Tue, 06 Mar 2018 05:05:17 -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=+qGqJcHPZnCK5G4SLWbd93z8GGv7A+XrhTJzOxSMXZU=; b=hZUB7gEvpAQht08iCoW71IojRPmvBYEP2vd2Bln6GADcPtoTer5KUCq6fixjNX1CBG liAcs0zLl/hGWk/QrMsplTCINsn30B+NwHZLbyUfBepV4Px/+tjsXnyI8n9ZYqFqVZLY 4xMDg1mx228m1qL9oSptdnFv0oN6Fu18Jblac= 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=+qGqJcHPZnCK5G4SLWbd93z8GGv7A+XrhTJzOxSMXZU=; b=kVwyGDmj6gyFikqMwaMMnANUWe0Cevqnod57uspO4d+SLE8Tueo39d5OIh+wbX3RQd FctW+Do463lls3EE4DpBZNsr8J+JKhWhiT6coxLxnd0Zs2GDnCp9JDMpiHgYqNyiCci+ JiC8rYlco+bKSzQdGoTnM5XmVZNd55uh5zYElwrfcRj7Pyd/+ZwremINdGvuHC1LBngs U5DBI83OHNmlrBAw8KTqUheGzea1fM4z/rLY0ROPt7Rf4rRYCuUsHqO9vez9sXEL1OPS ODkyL1YXZ8dCYfatYHPio3nSrpxTpxsPEdS72sHAqAcyVJZvM0m8Iw9lR/1FarHggujX MB4g== X-Gm-Message-State: AElRT7E7goxLuLohquFCcfDsz3agP50g54iAwQjGZblFzx7R7VBfKq9p LKtBzw2SOZeoThaQypl03kEhTg== X-Received: by 10.200.46.210 with SMTP id i18mr29112473qta.157.1520341516866; Tue, 06 Mar 2018 05:05:16 -0800 (PST) Received: from localhost ([45.113.251.224]) by smtp.gmail.com with ESMTPSA id t38sm10478306qtb.4.2018.03.06.05.05.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 05:05:16 -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 1/3] arm64: dts: msm8916: Add cpu cooling maps Date: Tue, 6 Mar 2018 18:35:01 +0530 Message-Id: <9f7199f0027ef2382e5ccc61a5118d0a00fa2e63.1520340931.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: 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 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index e468277..acac9e3 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,10 @@ cpu-idle-states = <&CPU_SPC>; clocks = <&apcs 0>; operating-points-v2 = <&cpu_opp_table>; + /* cooling options */ + cooling-min-level = <0>; + cooling-max-level = <7>; + #cooling-cells = <2>; }; CPU1: cpu@1 { @@ -126,6 +131,10 @@ cpu-idle-states = <&CPU_SPC>; clocks = <&apcs 0>; operating-points-v2 = <&cpu_opp_table>; + /* cooling options */ + cooling-min-level = <0>; + cooling-max-level = <7>; + #cooling-cells = <2>; }; CPU2: cpu@2 { @@ -137,6 +146,10 @@ cpu-idle-states = <&CPU_SPC>; clocks = <&apcs 0>; operating-points-v2 = <&cpu_opp_table>; + /* cooling options */ + cooling-min-level = <0>; + cooling-max-level = <7>; + #cooling-cells = <2>; }; CPU3: cpu@3 { @@ -148,6 +161,10 @@ cpu-idle-states = <&CPU_SPC>; clocks = <&apcs 0>; operating-points-v2 = <&cpu_opp_table>; + /* cooling options */ + cooling-min-level = <0>; + cooling-max-level = <7>; + #cooling-cells = <2>; }; L2_0: l2-cache { @@ -196,6 +213,13 @@ type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu-thermal1 { @@ -216,6 +240,13 @@ type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu_alert1>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; };