Skip to content

Commit

Permalink
dt-bindings: pinctrl: sx150xq: allow gpio line naming
Browse files Browse the repository at this point in the history
Adding gpio-line-names property works fine for this
device node, but dtb check drops warning:

'gpio-line-names' does not match any of the regexes: '-cfg$', 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/pinctrl/semtech,sx1501q.yaml#

Allow to add property gpio-line-names for this devices.

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/20241105064206.43626-3-hs@denx.de
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Heiko Schocher authored and Linus Walleij committed Nov 8, 2024
1 parent ffb7474 commit a53643f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ properties:
reg:
maxItems: 1

gpio-line-names:
minItems: 5
maxItems: 17

interrupts:
maxItems: 1

Expand Down Expand Up @@ -87,6 +91,45 @@ required:

allOf:
- $ref: pinctrl.yaml#
- if:
properties:
compatible:
contains:
enum:
- semtech,sx1501q
- semtech,sx1504q
- semtech,sx1507q
then:
properties:
gpio-line-names:
minItems: 5
maxItems: 5
- if:
properties:
compatible:
contains:
enum:
- semtech,sx1502q
- semtech,sx1505q
- semtech,sx1508q
then:
properties:
gpio-line-names:
minItems: 9
maxItems: 9
- if:
properties:
compatible:
contains:
enum:
- semtech,sx1503q
- semtech,sx1506q
- semtech,sx1509q
then:
properties:
gpio-line-names:
minItems: 17
maxItems: 17
- if:
not:
properties:
Expand Down

0 comments on commit a53643f

Please sign in to comment.