# \[thermal: thermal/next\] dt-bindings: thermal: Make trips node optional

- From: thermal-bot for Maxime Ripard \<hidden\>
- Date: 2021-09-09 14:47:01 
- List: linux-pm
- Page: https://ratatoskr.run/linux-pm/2021/09/9311785
- Thread: https://ratatoskr.run/linux-pm/2021/07/8193136/t.md

```text
The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     22fc857538c3a256563bb796f978b6d4693f5aa3
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//22fc857538c3a256563bb796f978b6d4693f5aa3
Author:        Maxime Ripard [ref]
AuthorDate:    Wed, 21 Jul 2021 16:04:03 +02:00
Committer:     Daniel Lezcano [ref]
CommitterDate: Sat, 14 Aug 2021 15:42:30 +02:00

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 <amitk@kernel.org>
Cc: Daniel Lezcano <redacted>
Cc: <redacted>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Maxime Ripard <redacted>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Lezcano <redacted>
Link: https://lore.kernel.org/r/20210721140424.725744-34-maxime@cerno.tech
---
 Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
index 164f715..a07de5e 100644
--- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
+++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml
@@ -215,7 +215,7 @@ patternProperties:
       - polling-delay
       - polling-delay-passive
       - thermal-sensors
-      - trips
+
     additionalProperties: false
 
 additionalProperties: false
```
