Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Neil Armstrong and committed by
Linus Walleij
c8b2eb7a c21dd79e

+2 -2
+2 -2
Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
··· 140 140 properties: 141 141 pins: 142 142 items: 143 - pattern: '^gpio[0-15]$' 143 + pattern: '^(gpio[0-9]|gpio1[0-5])$' 144 144 - if: 145 145 properties: 146 146 compatible: ··· 176 176 properties: 177 177 pins: 178 178 items: 179 - pattern: '^(oscio|gpio[0-15])$' 179 + pattern: '^(oscio|gpio[0-9]|gpio1[0-5])$' 180 180 181 181 additionalProperties: false 182 182