Skip to contentSkip to conversation

dt-bindings: pinctrl: st,stm32: Correct 'resets' property name

PATCH In review Rob Herring 2 participants 2 messages Jul 19, 2022 – Jul 26, 2022

Subsystems (5)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: pinctrl: st,stm32: Correct 'resets' property name

The correct property name for the reset binding is 'resets', not 'reset'. Assuming actual users are correct, this error didn't show up due to missing 'additionalProperties: false'. Fix the name and add missing 'additionalProperties'.

---
 .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml +2 -2
index 335ffc1353b5..d35dcc4f0242 100644
@@ -59,6 +59,7 @@ properties:
 patternProperties:
   '^gpio@[0-9a-f]*$':
     type: object
+    additionalProperties: false
     properties:
       gpio-controller: true
       '#gpio-cells':
@@ -68,8 +69,7 @@ patternProperties:
         maxItems: 1
       clocks:
         maxItems: 1
-      reset:
-        minItems: 1
+      resets:
         maxItems: 1
       gpio-ranges:
         minItems: 1
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Rob Herring

The correct property name for the reset binding is 'resets', not 'reset'. Assuming actual users are correct, this error didn't show up due to missing 'additionalProperties: false'. Fix the name and add missing 'additionalProperties'.

Patch applied, thanks for hashing out this mess!

Yours,
Linus Walleij