From patchwork Wed Mar 7 05:00:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 130839 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp4760985lja; Tue, 6 Mar 2018 21:00:12 -0800 (PST) X-Google-Smtp-Source: AG47ELu33cJBzpEcfTfMtIQj5YnkAiHPpA/R0BmrDvKAQ9sRJ0tAnYQl1yw2NNUGAWTS3gkE1YRz X-Received: by 2002:a17:902:a610:: with SMTP id u16-v6mr18267943plq.293.1520398812549; Tue, 06 Mar 2018 21:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520398812; cv=none; d=google.com; s=arc-20160816; b=f6D6opiF8upp23FfaICGn1w/3l6itCQcxAgLroJguCFndY5L0MvRdWjd56iJRAz4At t0kYFlPJPZI9RHyxa4oPbUmZuf9H6iXlGMnsgoyhOzJYuUEA4SDtQxQYFPFYeMfq1bAi vy2y7qkfpDsP9QqEH7uc8XnzMkIdU6d9mAZf/x+LimnmupfstNGov8u6Ipo6QAkGX4rQ +tWw3BoBNwb/xNcosN8z4L+5SgRVLazeoQNMhYG7XIL05TEKEnUVeTM/tl8BOTtDLgmu K1fI9QVKLfTaCx5ToOLDwRrnBp0MCAJ88l4AM3R1BK0FOB0oJWl6UAV+tNNupnqrQtG+ UYZA== 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=nfuo9RRbvNxXcK+UfXMUTOOCxpbrsX3qrVkdRiCy2jw=; b=qY+TO30E/38fYY6YoC47UX0oQkIOWjNjsn6op97OkqNVPBr0wRQ0f2mE5nCxjWvSFj zlqeS6hsWHtzmmrPKogmRO0TSZd7diqaSPxpqGe/ROaip+a/TrL9lRrga6lO1h/2qNCQ RGEZawqTk9Pxv3LLVbq0BhqZBb8TO0KBaElQO6RUCcrY1VyUUMo9NyrrrDuDiG4d7DIy g+6SccssKx38FxdUH6I6y+tbXwAMoxexiQjP7khcP/lxrwMYww/mhfyG0YLmhlTaWe95 GzmGvmtoREitc1GhzT625KBjFjmhqY2Q8WXD5QQ0P2jeHOX9rCkyxrkPlAQiFzSMA2OS l/eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iWRsnypg; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 r13si10796568pgp.504.2018.03.06.21.00.12; Tue, 06 Mar 2018 21:00:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iWRsnypg; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750959AbeCGFAK (ORCPT + 6 others); Wed, 7 Mar 2018 00:00:10 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:36910 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbeCGFAJ (ORCPT ); Wed, 7 Mar 2018 00:00:09 -0500 Received: by mail-qk0-f195.google.com with SMTP id y137so1210262qka.4 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=pGM2Vxjp6ODdZoNmKOO7L8VegQN7k2TmIs+RtCsPJVEgx3WeXr0tE9S6Od6v1IhjtL Fza43mLRx6/+Ux2L60pHYKb5r2d41Xp/nhk/Wd/HpdrMZBfr7H/XhY+taeuIYK6wytJB TxDdmX6rJ0xZTCtBs2eDxxXAu3/ArIXhoqrTh+Gl0DcklH2Kz8V6ZBBTCIMWRDUZJz3E cGlD4VIdm462kw/6BD2Mijn/T2N+R88Eec8TkcG5WFduNW03i8TzuZ6hHbyhKwTYJyYo MwyCMXBfOU8Jc3McukQ/KALZT4pARn8pjpUmpJQr0qH2mKEX5GEXfhEFpkaTemsB7zsB eUKA== X-Gm-Message-State: AElRT7EILcWJ3zDb59FSFh9HHuet1rVDcHYpEKlN+AbgpVtm+LfRPY5j DeLFbOqBc7w8bFnVjCZv6K+pUQ== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; + }; }; };