devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/3] dt-bindings: thermal-zones: Document critical-action
@ 2023-08-28 19:59 Fabio Estevam
  2023-08-28 19:59 ` [PATCH v3 2/3] reboot: Introduce hw_protection_reboot() Fabio Estevam
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabio Estevam @ 2023-08-28 19:59 UTC (permalink / raw)
  To: daniel.lezcano
  Cc: rafael, amitk, rui.zhang, linux-pm, krzysztof.kozlowski+dt,
	robh+dt, conor+dt, devicetree, Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

Document the critical-action property to describe the thermal action
the OS should perform after the critical temperature is reached.

The possible values are "shutdown" and "reboot".

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v2:
- Improve the description. (Krzysztof)
- Don't repeat constraints in free form text. (Krzysztof)
- Remove the enum comments. (Krzysztof)

 .../devicetree/bindings/thermal/thermal-zones.yaml       | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
index 4f3acdc4dec0..c2e4d28f885b 100644
--- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
+++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
@@ -75,6 +75,15 @@ patternProperties:
           framework and assumes that the thermal sensors in this zone
           support interrupts.
 
+      critical-action:
+        $ref: /schemas/types.yaml#/definitions/string
+        description:
+          The action the OS should perform after the critical temperature is reached.
+
+        enum:
+          - shutdown
+          - reboot
+
       thermal-sensors:
         $ref: /schemas/types.yaml#/definitions/phandle-array
         maxItems: 1
-- 
2.34.1


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

end of thread, other threads:[~2023-08-29  6:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-28 19:59 [PATCH v3 1/3] dt-bindings: thermal-zones: Document critical-action Fabio Estevam
2023-08-28 19:59 ` [PATCH v3 2/3] reboot: Introduce hw_protection_reboot() Fabio Estevam
2023-08-28 19:59 ` [PATCH v3 3/3] thermal: thermal_core: Allow rebooting after critical temp Fabio Estevam
2023-08-29  6:41 ` [PATCH v3 1/3] dt-bindings: thermal-zones: Document critical-action Krzysztof Kozlowski

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