* [PATCH v2 3/4] dt-bindings: thermal: Fix missing required property [not found] <20220809085629.509116-1-daniel.lezcano@linaro.org> @ 2022-08-09 8:56 ` Daniel Lezcano 2022-08-09 20:27 ` Rob Herring 0 siblings, 1 reply; 2+ messages in thread From: Daniel Lezcano @ 2022-08-09 8:56 UTC (permalink / raw) To: daniel.lezcano, rafael Cc: michael, dan.carpenter, linux, linux-kernel, linux-pm, Amit Kucheria, Zhang Rui, Rob Herring, Krzysztof Kozlowski, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS When the thermal zone description was converted to yaml schema, the required 'trips' property was forgotten. The initial text bindings was describing: " [ ... ] * Thermal zone nodes The thermal zone node is the node containing all the required info for describing a thermal zone, including its cooling device bindings. The thermal zone node must contain, apart from its own properties, one sub-node containing trip nodes and one sub-node containing all the zone cooling maps. Required properties: - polling-delay: The maximum number of milliseconds to wait between polls Type: unsigned when checking this thermal zone. Size: one cell - polling-delay-passive: The maximum number of milliseconds to wait Type: unsigned between polls when performing passive cooling. Size: one cell - thermal-sensors: A list of thermal sensor phandles and sensor specifier Type: list of used while monitoring the thermal zone. phandles + sensor specifier - trips: A sub-node which is a container of only trip point nodes Type: sub-node required to describe the thermal zone. Optional property: - cooling-maps: A sub-node which is a container of only cooling device Type: sub-node map nodes, used to describe the relation between trips and cooling devices. [ ... ] " Now the schema describes: " [ ... ] required: - polling-delay - polling-delay-passive - thermal-sensors [ ... ] " Add the missing 'trips' property in the required properties. Fixed: 1202a442a31fd ("dt-bindings: thermal: Add yaml bindings for thermal zones") Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index 2d34f3ccb257..8d2c6d74b605 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -214,6 +214,7 @@ patternProperties: - polling-delay - polling-delay-passive - thermal-sensors + - trips additionalProperties: false -- 2.34.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 3/4] dt-bindings: thermal: Fix missing required property 2022-08-09 8:56 ` [PATCH v2 3/4] dt-bindings: thermal: Fix missing required property Daniel Lezcano @ 2022-08-09 20:27 ` Rob Herring 0 siblings, 0 replies; 2+ messages in thread From: Rob Herring @ 2022-08-09 20:27 UTC (permalink / raw) To: Daniel Lezcano Cc: devicetree, Krzysztof Kozlowski, Amit Kucheria, Rob Herring, Zhang Rui, dan.carpenter, linux, linux-pm, rafael, michael, linux-kernel On Tue, 09 Aug 2022 10:56:28 +0200, Daniel Lezcano wrote: > When the thermal zone description was converted to yaml schema, the > required 'trips' property was forgotten. > > The initial text bindings was describing: > > " > [ ... ] > > * Thermal zone nodes > > The thermal zone node is the node containing all the required info > for describing a thermal zone, including its cooling device bindings. The > thermal zone node must contain, apart from its own properties, one sub-node > containing trip nodes and one sub-node containing all the zone cooling maps. > > Required properties: > - polling-delay: The maximum number of milliseconds to wait between polls > Type: unsigned when checking this thermal zone. > Size: one cell > > - polling-delay-passive: The maximum number of milliseconds to wait > Type: unsigned between polls when performing passive cooling. > Size: one cell > > - thermal-sensors: A list of thermal sensor phandles and sensor specifier > Type: list of used while monitoring the thermal zone. > phandles + sensor > specifier > > - trips: A sub-node which is a container of only trip point nodes > Type: sub-node required to describe the thermal zone. > > Optional property: > - cooling-maps: A sub-node which is a container of only cooling device > Type: sub-node map nodes, used to describe the relation between trips > and cooling devices. > [ ... ] > > " > > Now the schema describes: > > " > [ ... ] > > required: > - polling-delay > - polling-delay-passive > - thermal-sensors > > [ ... ] > " > > Add the missing 'trips' property in the required properties. > > Fixed: 1202a442a31fd ("dt-bindings: thermal: Add yaml bindings for thermal zones") > Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> > --- > Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-09 20:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220809085629.509116-1-daniel.lezcano@linaro.org>
2022-08-09 8:56 ` [PATCH v2 3/4] dt-bindings: thermal: Fix missing required property Daniel Lezcano
2022-08-09 20:27 ` Rob Herring
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).