Message ID | 20230828195902.1645169-1-festevam@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | [v3,1/3] dt-bindings: thermal-zones: Document critical-action | expand |
On 28/08/2023 21:59, Fabio Estevam wrote: > 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. We see that from the diff. You should explain here why you need it, why this is good idea. You should provide here answers to my concerns on v1, so you do not get exactly the same question from Conor or Rob or anyone else. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
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