]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dt-bindings: thermal: Fix false warning with 'phandle' in trips nodes
authorRob Herring (Arm) <robh@kernel.org>
Fri, 10 Apr 2026 22:17:53 +0000 (17:17 -0500)
committerRob Herring (Arm) <robh@kernel.org>
Thu, 16 Apr 2026 12:27:18 +0000 (07:27 -0500)
commit5d0e969c4e6ab4c4693f7a4c381e30125106f73d
tree2dcfacf3ca6fc398cf9a89d28fbbdd652f453645
parent07fd339b2c253205794bea5d9b4b7548a4546c56
dt-bindings: thermal: Fix false warning with 'phandle' in trips nodes

A pattern property matching essentially anything doesn't work if there
are implicit properties such as 'phandle' which can occur on any node.
One such example popped up recently:

arch/arm64/boot/dts/qcom/sm8650-hdk.dtb: thermal-zones: gpuss0-thermal:trips:phandle: 531 is not of type 'object'
        from schema $id: http://devicetree.org/schemas/thermal/thermal-zones.yaml

Instead of a pattern property, use an "additionalProperties" schema
instead which is the fallback in case of no matching property.

Link: https://patch.msgid.link/20260410223601.1487473-2-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/thermal/thermal-zones.yaml