Skip to content

Commit 87f67d1

Browse files
Fabio Estevamdlezcano
authored andcommitted
dt-bindings: thermal-zones: Document critical-action
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". The motivation for introducing the critical-action property is that different systems may need different thermal actions when the critical temperature is reached. For example, in a desktop PC, it is desired that a shutdown happens after the critical temperature is reached. However, in some embedded 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 benefit from this new property as it can check the SoC temperature and in case the temperature is above the critical point, it can trigger a shutdown or reboot accordingly. Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 748b49c commit 87f67d1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Documentation/devicetree/bindings/thermal/thermal-zones.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@ patternProperties:
7575
framework and assumes that the thermal sensors in this zone
7676
support interrupts.
7777

78+
critical-action:
79+
$ref: /schemas/types.yaml#/definitions/string
80+
description: |
81+
The action the OS should perform after the critical temperature is reached.
82+
By default the system will shutdown as a safe action to prevent damage
83+
to the hardware, if the property is not set.
84+
The shutdown action should be always the default and preferred one.
85+
Choose 'reboot' with care, as the hardware may be in thermal stress,
86+
thus leading to infinite reboots that may cause damage to the hardware.
87+
Make sure the firmware/bootloader will act as the last resort and take
88+
over the thermal control.
89+
90+
enum:
91+
- shutdown
92+
- reboot
93+
7894
thermal-sensors:
7995
$ref: /schemas/types.yaml#/definitions/phandle-array
8096
maxItems: 1

0 commit comments

Comments
 (0)