Skip to content

Commit 22fc857

Browse files
mriparddlezcano
authored andcommitted
dt-bindings: thermal: Make trips node optional
Even though the previous binding made it a required child node, the implementation in Linux never made it mandatory and just ignored thermal zones without trip points. This was even effectively encouraged, since the thermal core wouldn't allow a thermal sensor to probe without a thermal zone. In the case where you had a thermal device that had multiple sensors but with enough knowledge to provide trip points for only a few of them, this meant that the only way to make that driver probe was to provide a thermal zone without the trips node required by the binding. This obviously led to a fair number of device trees doing exactly that, making the initial binding requirement ineffective. Let's make it clear by dropping that requirement. Cc: Amit Kucheria <[email protected]> Cc: Daniel Lezcano <[email protected]> Cc: [email protected] Cc: Zhang Rui <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fb83610 commit 22fc857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ patternProperties:
215215
- polling-delay
216216
- polling-delay-passive
217217
- thermal-sensors
218-
- trips
218+
219219
additionalProperties: false
220220

221221
additionalProperties: false

0 commit comments

Comments
 (0)