Skip to content

Commit a53643f

Browse files
hsdenxlinusw
authored andcommitted
dt-bindings: pinctrl: sx150xq: allow gpio line naming
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent ffb7474 commit a53643f

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ properties:
2626
reg:
2727
maxItems: 1
2828

29+
gpio-line-names:
30+
minItems: 5
31+
maxItems: 17
32+
2933
interrupts:
3034
maxItems: 1
3135

@@ -87,6 +91,45 @@ required:
8791

8892
allOf:
8993
- $ref: pinctrl.yaml#
94+
- if:
95+
properties:
96+
compatible:
97+
contains:
98+
enum:
99+
- semtech,sx1501q
100+
- semtech,sx1504q
101+
- semtech,sx1507q
102+
then:
103+
properties:
104+
gpio-line-names:
105+
minItems: 5
106+
maxItems: 5
107+
- if:
108+
properties:
109+
compatible:
110+
contains:
111+
enum:
112+
- semtech,sx1502q
113+
- semtech,sx1505q
114+
- semtech,sx1508q
115+
then:
116+
properties:
117+
gpio-line-names:
118+
minItems: 9
119+
maxItems: 9
120+
- if:
121+
properties:
122+
compatible:
123+
contains:
124+
enum:
125+
- semtech,sx1503q
126+
- semtech,sx1506q
127+
- semtech,sx1509q
128+
then:
129+
properties:
130+
gpio-line-names:
131+
minItems: 17
132+
maxItems: 17
90133
- if:
91134
not:
92135
properties:

0 commit comments

Comments
 (0)