Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4191465pxv; Tue, 27 Jul 2021 00:43:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza8Sd3FH5Iol1zrM7YSSwu+uZeVi5rBenqfNPGNtxaEP8njQaBhcjyMGDCN2IwPl9NHu4D X-Received: by 2002:a92:d0d2:: with SMTP id y18mr15993544ila.24.1627371796926; Tue, 27 Jul 2021 00:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627371796; cv=none; d=google.com; s=arc-20160816; b=YkjL+y4+Frav3h0qGja9Yr/j85tLrwct8DwINX/FyADmJdZ2ANW2RIc/wUQXdrF+p5 DAr4kQfMXTlM1m5vbw1cwTZvqwj7eC7vELjJQLJJiCo578IYuJt6rzhPNx+PjyanHv0k hYQ7w5FcWXjxEDABH9ozDHCYdkPfc/XIIJ25xk4sm5+qj1P4vERmYV6pqJNc/tv3Ytqv 9m3AYpRoo3UNd4V++xMSwEpzOfEP3vf/Hr55MjQf9t6+JlXcy4UrvWAWsEDzOdRULzhh Cq2XU2Fl31+qhAFzas+wxSfhGHNZrRuB61S2OPpdEUM94NptrTzZuas0tmiLjb/TjJpd yfgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=HiZPZfrpeXDNpkWKRFr9rPzKk6vLeH+/6Vh/isEMjz0=; b=eB539JEVgTIO0YOfMq2QhNh/anM9qCeu8j4c1V0dhji4uaBf+1axpnIMLdMANoXMtm OdlLetHDn71GCmiPmoNa+yKfgK6HaV9TU46aOmj02HxyKo7B4E25xii+e3DumrenLr7l KJamzjemB/H2rKZmdP/zMp6pmD7vq7yIJ8bIwVVBQ2ycpuBVoDAuazBRi62Ykr1nXg3C HYa0Gc+y0lov3G1orlb5PAbkLdJWnEX+qhMkbeFkGLkmE+e/8+NPdCXGlFMMazfQ/QTi jL2FUtSMHS8q0CH4PfqP3MQH/GKjyINyhJZKu6KoaUpBMquXceeI8Lphre9Q0XwToYho z+uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=PKTYaCQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si2285221jah.86.2021.07.27.00.43.04; Tue, 27 Jul 2021 00:43:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=PKTYaCQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235675AbhG0HmS (ORCPT + 99 others); Tue, 27 Jul 2021 03:42:18 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:53970 "EHLO mail-0301.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235731AbhG0HmR (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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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/qc= om/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 { =20 =09=09=09trips { =09=09=09=09cpu0_alert0: trip-point0 { -=09=09=09=09=09temperature =3D <75000>; +=09=09=09=09=09temperature =3D <85000>; +=09=09=09=09=09hysteresis =3D <2000>; +=09=09=09=09=09type =3D "passive"; +=09=09=09=09}; + +=09=09=09=09cpu0_alert1: trip-point1 { +=09=09=09=09=09temperature =3D <90000>; =09=09=09=09=09hysteresis =3D <2000>; =09=09=09=09=09type =3D "passive"; =09=09=09=09}; @@ -3602,6 +3608,19 @@ cpu0_crit: cpu_crit { =09=09=09=09=09type =3D "critical"; =09=09=09=09}; =09=09=09}; + +=09=09=09cooling-maps { +=09=09=09=09map0 { +=09=09=09=09=09trip =3D <&cpu0_alert0>; +=09=09=09=09=09cooling-device =3D <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT= >, +=09=09=09=09=09=09=09 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; +=09=09=09=09}; +=09=09=09=09map1 { +=09=09=09=09=09trip =3D <&cpu0_alert1>; +=09=09=09=09=09cooling-device =3D <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT= >, +=09=09=09=09=09=09=09 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; +=09=09=09=09}; +=09=09=09}; =09=09}; =20 =09=09cpu1-thermal { @@ -3612,7 +3631,13 @@ cpu1-thermal { =20 =09=09=09trips { =09=09=09=09cpu1_alert0: trip-point0 { -=09=09=09=09=09temperature =3D <75000>; +=09=09=09=09=09temperature =3D <85000>; +=09=09=09=09=09hysteresis =3D <2000>; +=09=09=09=09=09type =3D "passive"; +=09=09=09=09}; + +=09=09=09=09cpu1_alert1: trip-point1 { +=09=09=09=09=09temperature =3D <90000>; =09=09=09=09=09hysteresis =3D <2000>; =09=09=09=09=09type =3D "passive"; =09=09=09=09}; @@ -3623,6 +3648,19 @@ cpu1_crit: cpu_crit { =09=09=09=09=09type =3D "critical"; =09=09=09=09}; =09=09=09}; + +=09=09=09cooling-maps { +=09=09=09=09map0 { +=09=09=09=09=09trip =3D <&cpu1_alert0>; +=09=09=09=09=09cooling-device =3D <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT= >, +=09=09=09=09=09=09=09 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; +=09=09=09=09}; +=09=09=09=09map1 { +=09=09=09=09=09trip =3D <&cpu1_alert1>; +=09=09=09=09=09cooling-device =3D <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT= >, +=09=09=09=09=09=09=09 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; +=09=09=09=09}; +=09=09=09}; =09=09}; =20 =09=09cpu2-thermal { @@ -3633,7 +3671,13 @@ cpu2-thermal { =20 =09=09=09trips { =09=09=09=09cpu2_alert0: trip-point0 { -=09=09=09=09=09temperature =3D <75000>; +=09=09=09=09=09temperature =3D <85000>; +=09=09=09=09=09hysteresis =3D <2000>; +=09=09=09=09=09type =3D "passive"; +=09=09=09=09}; + +=09=09=09=09cpu2_alert1: trip-point1 { +=09=09=09=09=09temperature =3D <90000>; =09=09=09=09=09hysteresis =3D <2000>; =09=09=09=09=09type =3D "passive"; =09=09=09=09}; @@ -3644,6 +3688,19 @@ cpu2_crit: cpu_crit { =09=09=09=09=09type =3D "critical"; =09=09=09=09}; =09=09=09}; + +=09=09=09cooling-maps { +=09=09=09=09map0 { +=09=09=09=09=09trip =3D <&cpu2_alert0>; +=09=09=09=09=09cooling-device =3D <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT= >, +=09=09=09=09=09=09=09 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; +=09=09=09=09}; +=09=09=09=09map1 { +=09=09=09=09=09trip =3D <&cpu2_alert1>; +=09=09=09=09=09cooling-device =3D <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT= >, +=09=09=09=09=09=09=09 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; +=09=09=09=09}; +=09=09=09}; =09=09}; =20 =09=09cpu3-thermal { @@ -3654,7 +3711,13 @@ cpu3-thermal { =20 =09=09=09trips { =09=09=09=09cpu3_alert0: trip-point0 { -=09=09=09=09=09temperature =3D <75000>; +=09=09=09=09=09temperature =3D <85000>; +=09=09=09=09=09hysteresis =3D <2000>; +=09=09=09=09=09type =3D "passive"; +=09=09=09=09}; + +=09=09=09=09cpu3_alert1: trip-point1 { +=09=09=09=09=09temperature =3D <90000>; =09=09=09=09=09hysteresis =3D <2000>; =09=09=09=09=09type =3D "passive"; =09=09=09=09}; @@ -3665,6 +3728,19 @@ cpu3_crit: cpu_crit { =09=09=09=09=09type =3D "critical"; =09=09=09=09}; =09=09=09}; + +=09=09=09cooling-maps { +=09=09=09=09map0 { +=09=09=09=09=09trip =3D <&cpu3_alert0>; +=09=09=09=09=09cooling-device =3D <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT= >, +=09=09=09=09=09=09=09 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; +=09=09=09=09}; +=09=09=09=09map1 { +=09=09=09=09=09trip =3D <&cpu3_alert1>; +=09=09=09=09=09cooling-device =3D <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT= >, +=09=09=09=09=09=09=09 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; +=09=09=09=09}; +=09=09=09}; =09=09}; =20 =09=09gpu-thermal-top { --=20 2.32.0