diff mbox series

[2/4] dt-bindings: thermal: Document the values for the 'critical-action'

Message ID 20230825102453.836627-2-festevam@gmail.com
State New
Headers show
Series [1/4] dt-bindings: thermal-zones: Document critical-action | expand

Commit Message

Fabio Estevam Aug. 25, 2023, 10:24 a.m. UTC
From: Fabio Estevam <festevam@denx.de>

Document the possible values for the 'critical-action' property to make
it more readable in the devicetree.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 include/dt-bindings/thermal/thermal.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/include/dt-bindings/thermal/thermal.h b/include/dt-bindings/thermal/thermal.h
index bc7babb1a67c..f433b6b0ffb7 100644
--- a/include/dt-bindings/thermal/thermal.h
+++ b/include/dt-bindings/thermal/thermal.h
@@ -12,5 +12,9 @@ 
 /* On cooling devices upper and lower limits */
 #define THERMAL_NO_LIMIT		(~0)
 
+/* Possible values for the 'critical-action' property */
+#define THERMAL_CRITICAL_ACTION_SHUTDOWN	0
+#define THERMAL_CRITICAL_ACTION_REBOOT		1
+
 #endif