From 79a44b80b6111f76bf6a574174c10cb22eb37df2 Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Tue, 5 Mar 2024 11:30:52 +0530 Subject: [PATCH] ARM: dts: qcom: update thermal zone shutdown trip type for sun Use "hot" trip type for thermal zone software shutdown trip for all thermal zones. It just notifies userspace thermal manager which in turn triggers a graceful shutdown. Change-Id: Icf7aa1f1da57a22b96ede18fcee75ebebb92830b Signed-off-by: Manaf Meethalavalappu Pallikunhi --- qcom/pm8010.dtsi | 6 +-- qcom/pm8550.dtsi | 4 +- qcom/pm8550ve.dtsi | 10 ++-- qcom/pm8550vs.dtsi | 14 +++--- qcom/pmd802x.dtsi | 4 +- qcom/pmih010x.dtsi | 4 +- qcom/pmr735d.dtsi | 4 +- qcom/sun-pmic-overlay.dtsi | 6 +++ qcom/sun-thermal.dtsi | 94 +++++++++++++++++++------------------- 9 files changed, 76 insertions(+), 70 deletions(-) diff --git a/qcom/pm8010.dtsi b/qcom/pm8010.dtsi index 555932f6..8f0821af 100644 --- a/qcom/pm8010.dtsi +++ b/qcom/pm8010.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -58,7 +58,7 @@ trip1 { temperature = <115000>; hysteresis = <0>; - type = "critical"; + type = "hot"; }; trip2 { @@ -85,7 +85,7 @@ trip1 { temperature = <115000>; hysteresis = <0>; - type = "critical"; + type = "hot"; }; trip2 { diff --git a/qcom/pm8550.dtsi b/qcom/pm8550.dtsi index 5fc0988f..db70a612 100644 --- a/qcom/pm8550.dtsi +++ b/qcom/pm8550.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -201,7 +201,7 @@ pm8550_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550_trip2: trip2 { diff --git a/qcom/pm8550ve.dtsi b/qcom/pm8550ve.dtsi index 49c75348..05649593 100644 --- a/qcom/pm8550ve.dtsi +++ b/qcom/pm8550ve.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -127,7 +127,7 @@ pm8550ve_d_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550ve_d_trip2: trip2 { @@ -155,7 +155,7 @@ pm8550ve_f_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550ve_f_trip2: trip2 { @@ -183,7 +183,7 @@ pm8550ve_g_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550ve_g_trip2: trip2 { @@ -211,7 +211,7 @@ pm8550ve_i_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550ve_i_trip2: trip2 { diff --git a/qcom/pm8550vs.dtsi b/qcom/pm8550vs.dtsi index b9ea3123..00e704cc 100644 --- a/qcom/pm8550vs.dtsi +++ b/qcom/pm8550vs.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -175,7 +175,7 @@ pm8550vs_c_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550vs_c_trip2: trip2 { @@ -203,7 +203,7 @@ pm8550vs_d_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550vs_d_trip2: trip2 { @@ -231,7 +231,7 @@ pm8550vs_e_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550vs_e_trip2: trip2 { @@ -259,7 +259,7 @@ pm8550vs_f_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550vs_f_trip2: trip2 { @@ -287,7 +287,7 @@ pm8550vs_g_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550vs_g_trip2: trip2 { @@ -315,7 +315,7 @@ pm8550vs_j_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pm8550vs_j_trip2: trip2 { diff --git a/qcom/pmd802x.dtsi b/qcom/pmd802x.dtsi index 665e9d31..4bfae0c3 100644 --- a/qcom/pmd802x.dtsi +++ b/qcom/pmd802x.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -111,7 +111,7 @@ pmd802x_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pmd802x_trip2: trip2 { diff --git a/qcom/pmih010x.dtsi b/qcom/pmih010x.dtsi index 840166db..fce2bdf1 100644 --- a/qcom/pmih010x.dtsi +++ b/qcom/pmih010x.dtsi @@ -274,7 +274,7 @@ pmih010x_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pmih010x_trip2: trip2 { @@ -301,7 +301,7 @@ pmih010x_lite_trip1: trip1 { temperature = <135000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pmih010x_lite_trip2: trip2 { diff --git a/qcom/pmr735d.dtsi b/qcom/pmr735d.dtsi index ab41ee13..9cbffcfe 100644 --- a/qcom/pmr735d.dtsi +++ b/qcom/pmr735d.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -53,7 +53,7 @@ pmr735d_trip1: trip1 { temperature = <115000>; hysteresis = <0>; - type = "passive"; + type = "hot"; }; pmr735d_trip2: trip2 { diff --git a/qcom/sun-pmic-overlay.dtsi b/qcom/sun-pmic-overlay.dtsi index f57bdfed..142c256a 100644 --- a/qcom/sun-pmic-overlay.dtsi +++ b/qcom/sun-pmic-overlay.dtsi @@ -370,6 +370,12 @@ type = "passive"; }; + shutdown-trip { + temperature = <90000>; + hysteresis = <0>; + type = "hot"; + }; + display_test_config1: display-test-config1 { temperature = <125000>; hysteresis = <1000>; diff --git a/qcom/sun-thermal.dtsi b/qcom/sun-thermal.dtsi index 0785eab7..1b0d4175 100644 --- a/qcom/sun-thermal.dtsi +++ b/qcom/sun-thermal.dtsi @@ -311,7 +311,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -348,7 +348,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -397,7 +397,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -446,7 +446,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -495,7 +495,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -544,7 +544,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -593,7 +593,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -642,7 +642,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -691,7 +691,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -740,7 +740,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -789,7 +789,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -838,7 +838,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -887,7 +887,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -918,7 +918,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -937,7 +937,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -956,7 +956,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -993,7 +993,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1042,7 +1042,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1091,7 +1091,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1140,7 +1140,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1171,7 +1171,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1190,7 +1190,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1215,7 +1215,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1240,7 +1240,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1265,7 +1265,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1290,7 +1290,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1315,7 +1315,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1340,7 +1340,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1365,7 +1365,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1390,7 +1390,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1416,7 +1416,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -1447,7 +1447,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1485,7 +1485,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1523,7 +1523,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1561,7 +1561,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1599,7 +1599,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1637,7 +1637,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1675,7 +1675,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1713,7 +1713,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1757,7 +1757,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1821,7 +1821,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1885,7 +1885,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1949,7 +1949,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; @@ -1995,7 +1995,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -2014,7 +2014,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -2033,7 +2033,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; }; @@ -2052,7 +2052,7 @@ reset-mon-cfg { temperature = <125000>; hysteresis = <5000>; - type = "passive"; + type = "hot"; }; }; };