devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: imx8mm-thermal: Document 'nxp,reboot-on-critical'
@ 2023-08-23 17:33 Fabio Estevam
  2023-08-23 17:33 ` [PATCH 2/2] thermal: imx8mm: Allow reboot after critical temperature Fabio Estevam
  2023-08-24  7:18 ` [PATCH 1/2] dt-bindings: imx8mm-thermal: Document 'nxp,reboot-on-critical' Krzysztof Kozlowski
  0 siblings, 2 replies; 11+ messages in thread
From: Fabio Estevam @ 2023-08-23 17:33 UTC (permalink / raw)
  To: daniel.lezcano
  Cc: linux-pm, krzysztof.kozlowski+dt, robh+dt, conor+dt, devicetree,
	Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

Currently, after the board reaches the critical temperature, the system
goes through a poweroff mechanism.

In some cases, such behavior does not suit well, as the board may be
unattended in the field and rebooting may be a better approach.

The bootloader may also check the temperature and only allow the boot to
proceed when the temperature is below a certain threshold.

Introduce the 'nxp,reboot-on-critical' property to indicate that the
board will go through a reboot after the critical temperature is reached.

When this property is absent, the default behavior of forcing a shutdown
is kept.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 .../devicetree/bindings/thermal/imx8mm-thermal.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml
index d2c1e4573c32..9ac70360fd35 100644
--- a/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml
@@ -32,6 +32,12 @@ properties:
   clocks:
     maxItems: 1
 
+  nxp,reboot-on-critical:
+    description: Property to indicate that the system will go through a reboot
+      after the critical temperature is reached. If absent, the system will
+      go through shutdown after the critical temperature is reached.
+    type: boolean
+
   nvmem-cells:
     maxItems: 1
     description: Phandle to the calibration data provided by ocotp
-- 
2.34.1


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

end of thread, other threads:[~2023-08-24 16:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-23 17:33 [PATCH 1/2] dt-bindings: imx8mm-thermal: Document 'nxp,reboot-on-critical' Fabio Estevam
2023-08-23 17:33 ` [PATCH 2/2] thermal: imx8mm: Allow reboot after critical temperature Fabio Estevam
2023-08-24  7:18 ` [PATCH 1/2] dt-bindings: imx8mm-thermal: Document 'nxp,reboot-on-critical' Krzysztof Kozlowski
2023-08-24  9:57   ` Fabio Estevam
2023-08-24 10:34     ` Daniel Lezcano
2023-08-24 10:53       ` Fabio Estevam
2023-08-24 12:38         ` Krzysztof Kozlowski
2023-08-24 14:35           ` Fabio Estevam
2023-08-24 14:54           ` Daniel Lezcano
2023-08-24 15:43             ` Krzysztof Kozlowski
2023-08-24 16:46               ` Fabio Estevam

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).