linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature
@ 2021-06-03 15:12 Matthias Kaehlcke
  2021-06-04 21:51 ` Stephen Boyd
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matthias Kaehlcke @ 2021-06-03 15:12 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring
  Cc: Douglas Anderson, devicetree, Stephen Boyd, linux-kernel,
	linux-arm-msm, Matthias Kaehlcke

Add a thermal zone for the pm6150 on-die temperature. The system should
try to shut down orderly when the temperature reaches the critical trip
point at 115°C, otherwise the PMIC will perform a HW power off at 145°C.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---

Changes in v2:
- remove 'pm6150-' prefix from critical trip point
- updated commit message

 arch/arm64/boot/dts/qcom/pm6150.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi
index 8ab4f1f78bbf..8a4972e6a24c 100644
--- a/arch/arm64/boot/dts/qcom/pm6150.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi
@@ -7,6 +7,30 @@
 #include <dt-bindings/spmi/spmi.h>
 #include <dt-bindings/thermal/thermal.h>
 
+/ {
+	thermal-zones {
+		pm6150_thermal: pm6150-thermal {
+			polling-delay-passive = <100>;
+			polling-delay = <0>;
+			thermal-sensors = <&pm6150_temp>;
+
+			trips {
+				pm6150_trip0: trip0 {
+					temperature = <95000>;
+					hysteresis = <0>;
+					type = "passive";
+				};
+
+				pm6150_crit: crit {
+					temperature = <115000>;
+					hysteresis = <0>;
+					type = "critical";
+				};
+			};
+		};
+	};
+};
+
 &spmi_bus {
 	pm6150_lsid0: pmic@0 {
 		compatible = "qcom,pm6150", "qcom,spmi-pmic";
-- 
2.32.0.rc0.204.g9fa02ecfa5-goog


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature
  2021-06-03 15:12 [PATCH v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature Matthias Kaehlcke
@ 2021-06-04 21:51 ` Stephen Boyd
  2021-06-04 23:11 ` Doug Anderson
  2021-06-10 14:50 ` patchwork-bot+linux-arm-msm
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2021-06-04 21:51 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Matthias Kaehlcke, Rob Herring
  Cc: Douglas Anderson, devicetree, linux-kernel, linux-arm-msm

Quoting Matthias Kaehlcke (2021-06-03 08:12:34)
> Add a thermal zone for the pm6150 on-die temperature. The system should
> try to shut down orderly when the temperature reaches the critical trip
> point at 115°C, otherwise the PMIC will perform a HW power off at 145°C.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---

Reviewed-by: Stephen Boyd <swboyd@chromium.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature
  2021-06-03 15:12 [PATCH v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature Matthias Kaehlcke
  2021-06-04 21:51 ` Stephen Boyd
@ 2021-06-04 23:11 ` Doug Anderson
  2021-06-10 14:50 ` patchwork-bot+linux-arm-msm
  2 siblings, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2021-06-04 23:11 UTC (permalink / raw)
  To: Matthias Kaehlcke
  Cc: Andy Gross, Bjorn Andersson, Rob Herring,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Stephen Boyd, LKML, linux-arm-msm

Hi,

On Thu, Jun 3, 2021 at 8:12 AM Matthias Kaehlcke <mka@chromium.org> wrote:
>
> Add a thermal zone for the pm6150 on-die temperature. The system should
> try to shut down orderly when the temperature reaches the critical trip
> point at 115°C, otherwise the PMIC will perform a HW power off at 145°C.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
>
> Changes in v2:
> - remove 'pm6150-' prefix from critical trip point
> - updated commit message
>
>  arch/arm64/boot/dts/qcom/pm6150.dtsi | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)

Reviewed-by: Douglas Anderson <dianders@chromium.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature
  2021-06-03 15:12 [PATCH v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature Matthias Kaehlcke
  2021-06-04 21:51 ` Stephen Boyd
  2021-06-04 23:11 ` Doug Anderson
@ 2021-06-10 14:50 ` patchwork-bot+linux-arm-msm
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2021-06-10 14:50 UTC (permalink / raw)
  To: Matthias Kaehlcke; +Cc: linux-arm-msm

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

On Thu,  3 Jun 2021 08:12:34 -0700 you wrote:
> Add a thermal zone for the pm6150 on-die temperature. The system should
> try to shut down orderly when the temperature reaches the critical trip
> point at 115°C, otherwise the PMIC will perform a HW power off at 145°C.
> 
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> 
> [...]

Here is the summary with links:
  - [v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature
    https://git.kernel.org/qcom/c/eb59cd3e3983

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-10 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 15:12 [PATCH v2] arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature Matthias Kaehlcke
2021-06-04 21:51 ` Stephen Boyd
2021-06-04 23:11 ` Doug Anderson
2021-06-10 14:50 ` patchwork-bot+linux-arm-msm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).