mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
dt-bindings: writing-schema: Explain sub-nodes with additionalProperties:true
Document recently introduced pattern of using additionalProperties: true for sub-nodes with their own schema. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250331081345.37103-1-krzysztof.kozlowski@linaro.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
This commit is contained in:
committed by
Rob Herring (Arm)
parent
0af2f6be1b
commit
af134b1145
@@ -117,9 +117,14 @@ additionalProperties / unevaluatedProperties
|
||||
should be allowed.
|
||||
|
||||
* additionalProperties: true
|
||||
Rare case, used for schemas implementing common set of properties. Such
|
||||
schemas are supposed to be referenced by other schemas, which then use
|
||||
'unevaluatedProperties: false'. Typically bus or common-part schemas.
|
||||
- Top-level part:
|
||||
Rare case, used for schemas implementing common set of properties. Such
|
||||
schemas are supposed to be referenced by other schemas, which then use
|
||||
'unevaluatedProperties: false'. Typically bus or common-part schemas.
|
||||
- Nested node:
|
||||
When listing only the expected compatible of the nested node and there
|
||||
is an another schema matching that compatible which ends with one of
|
||||
two above cases ('false').
|
||||
|
||||
examples
|
||||
Optional. A list of one or more DTS hunks implementing this binding only.
|
||||
|
||||
Reference in New Issue
Block a user