dt-bindings: pinctrl: semtech,sx150xq: fix match patterns for 16 GPIOs matching

Message ID 20221121-sx150xq_bindings_fixup-v1-0-e754f183b611@linaro.org
State New
Headers
Series dt-bindings: pinctrl: semtech,sx150xq: fix match patterns for 16 GPIOs matching |

Commit Message

Neil Armstrong Nov. 21, 2022, 2:11 p.m. UTC
  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>
---
To: Linus Walleij <linus.walleij@linaro.org>
To: Rob Herring <robh+dt@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Cc: linux-gpio@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Sander Vanheule <sander@svanheule.net>
---
 Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


---
base-commit: b6b904083dfcffadc06928b46f7a6416beba0031
change-id: 20221121-sx150xq_bindings_fixup-5ec9e5c2375c

Best regards,
  

Comments

Linus Walleij Nov. 22, 2022, 8:24 a.m. UTC | #1
On Mon, Nov 21, 2022 at 3:12 PM Neil Armstrong
<neil.armstrong@linaro.org> wrote:

> 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>

Patch applied, thanks for fixing this up so quickly!

Yours,
Linus Walleij
  

Patch

diff --git a/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
index df429a396ba3..0719c03d6f4b 100644
--- a/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
@@ -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