'gpio-reserved-ranges' property is already used and supported by common pinctrl
bindings, so add it also here to fix warnings like:
qrb5165-rb5.dtb: gpio@c000: 'gpio-reserved-ranges' does not match any of the regexes: '-state$', 'pinctrl-[0-9]+'
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220508135932.132378-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
minItems: 2
maxItems: 44
+ gpio-reserved-ranges:
+ minItems: 1
+ # maxItems as half of total number of GPIOs, as there has to be at
+ # least one usable GPIO between each reserved range.
+ maxItems: 22
+
'#gpio-cells':
const: 2
description:
gpio-line-names:
minItems: 2
maxItems: 2
+ gpio-reserved-ranges:
+ maxItems: 1
- if:
properties:
gpio-line-names:
minItems: 4
maxItems: 4
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 2
- if:
properties:
gpio-line-names:
minItems: 6
maxItems: 6
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 3
- if:
properties:
gpio-line-names:
minItems: 8
maxItems: 8
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 4
- if:
properties:
gpio-line-names:
minItems: 9
maxItems: 9
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 5
- if:
properties:
gpio-line-names:
minItems: 10
maxItems: 10
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 5
- if:
properties:
gpio-line-names:
minItems: 11
maxItems: 11
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 6
- if:
properties:
gpio-line-names:
minItems: 12
maxItems: 12
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 6
- if:
properties:
gpio-line-names:
minItems: 13
maxItems: 13
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 7
- if:
properties:
gpio-line-names:
minItems: 14
maxItems: 14
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 7
- if:
properties:
gpio-line-names:
minItems: 16
maxItems: 16
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 8
- if:
properties:
gpio-line-names:
minItems: 22
maxItems: 22
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 11
- if:
properties:
gpio-line-names:
minItems: 26
maxItems: 26
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 13
- if:
properties:
gpio-line-names:
minItems: 36
maxItems: 36
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 18
- if:
properties:
gpio-line-names:
minItems: 38
maxItems: 38
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 19
- if:
properties:
gpio-line-names:
minItems: 44
maxItems: 44
+ gpio-reserved-ranges:
+ minItems: 1
+ maxItems: 22
patternProperties:
'-state$':