diff mbox series

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

Message ID 20220719214955.1875020-1-robh@kernel.org
State Accepted
Commit e79368b15d7735cbc1dff86bb414847d697487c5
Headers show
Series dt-bindings: pinctrl: st,stm32: Correct 'resets' property name | expand

Commit Message

Rob Herring July 19, 2022, 9:49 p.m. UTC
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'.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Linus Walleij July 26, 2022, 7:40 a.m. UTC | #1
On Tue, Jul 19, 2022 at 11:50 PM Rob Herring <robh@kernel.org> wrote:

> 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'.
>
> Signed-off-by: Rob Herring <robh@kernel.org>

Patch applied, thanks for hashing out this mess!

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
index 335ffc1353b5..d35dcc4f0242 100644
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
@@ -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