dt-bindings: pinctrl: semtech,sx150xq: fix match patterns for 16 GPIOs matching
authorNeil Armstrong <neil.armstrong@linaro.org>
Mon, 21 Nov 2022 14:11:57 +0000 (15:11 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Nov 2022 08:24:03 +0000 (09:24 +0100)
The current pattern for SX1503 and SX1509Q with 16 GPIOs only matches
"gpio0", "gpio1", and "gpio5" instead of "gpio0" to "gpio15" included.

Fix these patterns to match the whole 16 GPIO line names.

Fixes: 29c10bcec50a ("dt-bindings: pinctrl: convert semtech,sx150xq bindings to dt-schema")
Reported-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20221121-sx150xq_bindings_fixup-v1-0-e754f183b611@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml

index df429a396ba3ef03b4f35dae6194833cc006f162..0719c03d6f4bc067bc879ab79c9a20e7c0832eda 100644 (file)
@@ -140,7 +140,7 @@ allOf:
           properties:
             pins:
               items:
-                pattern: '^gpio[0-15]$'
+                pattern: '^(gpio[0-9]|gpio1[0-5])$'
   - if:
       properties:
         compatible:
@@ -176,7 +176,7 @@ allOf:
           properties:
             pins:
               items:
-                pattern: '^(oscio|gpio[0-15])$'
+                pattern: '^(oscio|gpio[0-9]|gpio1[0-5])$'
 
 additionalProperties: false