From patchwork Tue Jul 27 07:42:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 12402061 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FCA4C4320A for ; Tue, 27 Jul 2021 07:42:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DCB1361221 for ; Tue, 27 Jul 2021 07:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235829AbhG0HmS (ORCPT ); Tue, 27 Jul 2021 03:42:18 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:45327 "EHLO mail-0301.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235675AbhG0HmR (ORCPT ); Tue, 27 Jul 2021 03:42:17 -0400 Date: Tue, 27 Jul 2021 07:42:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1627371734; bh=HiZPZfrpeXDNpkWKRFr9rPzKk6vLeH+/6Vh/isEMjz0=; h=Date:To:From:Cc:Reply-To:Subject:From; b=PKTYaCQ5sXNMylG/ql9dF/fScBSqVDnjze4z3aNKjvnXRM7irdkuv9WsezL2YXrs+ tBxCmeAamVY4HUq2KUVW4OQphZ0xPyoC0TVVps5Il9Hu+Nc/HqrW99rAc7xX/Nh3vt dzX2qc7JE0JJzFK4XR/enGA2tSC/inZzSQtyLKGE= To: linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson From: Yassine Oudjana Cc: Yassine Oudjana , devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org Reply-To: Yassine Oudjana Subject: [PATCH] arm64: dts: qcom: msm8996: Add CPU cooling support Message-ID: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add second trip points and cooling maps for all CPUs. Signed-off-by: Yassine Oudjana --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 84 +++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index bfd0acfcce7e..0327e6f19fcb 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -3591,7 +3591,13 @@ cpu0-thermal { trips { cpu0_alert0: trip-point0 { - temperature = <75000>; + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu0_alert1: trip-point1 { + temperature = <90000>; hysteresis = <2000>; type = "passive"; }; @@ -3602,6 +3608,19 @@ cpu0_crit: cpu_crit { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu0_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + map1 { + trip = <&cpu0_alert1>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu1-thermal { @@ -3612,7 +3631,13 @@ cpu1-thermal { trips { cpu1_alert0: trip-point0 { - temperature = <75000>; + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu1_alert1: trip-point1 { + temperature = <90000>; hysteresis = <2000>; type = "passive"; }; @@ -3623,6 +3648,19 @@ cpu1_crit: cpu_crit { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu1_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + map1 { + trip = <&cpu1_alert1>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu2-thermal { @@ -3633,7 +3671,13 @@ cpu2-thermal { trips { cpu2_alert0: trip-point0 { - temperature = <75000>; + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu2_alert1: trip-point1 { + temperature = <90000>; hysteresis = <2000>; type = "passive"; }; @@ -3644,6 +3688,19 @@ cpu2_crit: cpu_crit { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu2_alert0>; + cooling-device = <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + map1 { + trip = <&cpu2_alert1>; + cooling-device = <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; cpu3-thermal { @@ -3654,7 +3711,13 @@ cpu3-thermal { trips { cpu3_alert0: trip-point0 { - temperature = <75000>; + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu3_alert1: trip-point1 { + temperature = <90000>; hysteresis = <2000>; type = "passive"; }; @@ -3665,6 +3728,19 @@ cpu3_crit: cpu_crit { type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&cpu3_alert0>; + cooling-device = <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + map1 { + trip = <&cpu3_alert1>; + cooling-device = <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; gpu-thermal-top {