Skip to contentSkip to conversation

dt-bindings: opp: Add missing (unevaluated|additional)Properties on child nodes

PATCH Applied Rob Herring 2 participants 2 messages Aug 23, 2022 – Aug 24, 2022

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: opp: Add missing (unevaluated|additional)Properties on child nodes

In order to ensure only documented properties are present, node schemas must have unevaluatedProperties or additionalProperties set to false (typically).

---
 Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml   | 1 +
 Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml | 1 +
 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml +1 -0
index 59663e897dae..a202b6c6561d 100644
@@ -40,6 +40,7 @@ properties:
 patternProperties:
   '^opp-?[0-9]+$':
     type: object
+    additionalProperties: false
 
     properties:
       opp-hz: true
Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml +1 -0
index 14a7a689ad6d..df8442fb11f0 100644
@@ -19,6 +19,7 @@ properties:
 patternProperties:
   '^opp-?[0-9]+$':
     type: object
+    additionalProperties: false
 
     properties:
       opp-level: true
Signature · 1 line
2.34.1
Applied
#1 lore raw
Quoted 27 lines · Rob Herring

In order to ensure only documented properties are present, node schemas must have unevaluatedProperties or additionalProperties set to false (typically).

---
 Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml   | 1 +
 Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml | 1 +
 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml +1 -0
index 59663e897dae..a202b6c6561d 100644
@@ -40,6 +40,7 @@ properties:
 patternProperties:
   '^opp-?[0-9]+$':
     type: object
+    additionalProperties: false
 
     properties:
       opp-hz: true
Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml +0 -0
index 14a7a689ad6d..df8442fb11f0 100644

Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml properties: · line 25

Quoted 7 lines
Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml +1 -0
@@ -19,6 +19,7 @@ properties:
 patternProperties:
   '^opp-?[0-9]+$':
     type: object
+    additionalProperties: false
 
     properties:
       opp-level: true

Applied. Thanks.

Signature · 1 line
viresh