Commit d31dcf1f authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Linus Walleij

dt-bindings: pinctrl: qcom,pmic-gpio: add 'gpio-reserved-ranges'

'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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220508135932.132378-2-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 58819949
...@@ -79,6 +79,12 @@ properties: ...@@ -79,6 +79,12 @@ properties:
minItems: 2 minItems: 2
maxItems: 44 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': '#gpio-cells':
const: 2 const: 2
description: description:
...@@ -108,6 +114,8 @@ allOf: ...@@ -108,6 +114,8 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
gpio-reserved-ranges:
maxItems: 1
- if: - if:
properties: properties:
...@@ -125,6 +133,9 @@ allOf: ...@@ -125,6 +133,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 4 minItems: 4
maxItems: 4 maxItems: 4
gpio-reserved-ranges:
minItems: 1
maxItems: 2
- if: - if:
properties: properties:
...@@ -138,6 +149,9 @@ allOf: ...@@ -138,6 +149,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 6 minItems: 6
maxItems: 6 maxItems: 6
gpio-reserved-ranges:
minItems: 1
maxItems: 3
- if: - if:
properties: properties:
...@@ -151,6 +165,9 @@ allOf: ...@@ -151,6 +165,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 8 minItems: 8
maxItems: 8 maxItems: 8
gpio-reserved-ranges:
minItems: 1
maxItems: 4
- if: - if:
properties: properties:
...@@ -164,6 +181,9 @@ allOf: ...@@ -164,6 +181,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 9 minItems: 9
maxItems: 9 maxItems: 9
gpio-reserved-ranges:
minItems: 1
maxItems: 5
- if: - if:
properties: properties:
...@@ -183,6 +203,9 @@ allOf: ...@@ -183,6 +203,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 10 minItems: 10
maxItems: 10 maxItems: 10
gpio-reserved-ranges:
minItems: 1
maxItems: 5
- if: - if:
properties: properties:
...@@ -195,6 +218,9 @@ allOf: ...@@ -195,6 +218,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 11 minItems: 11
maxItems: 11 maxItems: 11
gpio-reserved-ranges:
minItems: 1
maxItems: 6
- if: - if:
properties: properties:
...@@ -213,6 +239,9 @@ allOf: ...@@ -213,6 +239,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 12 minItems: 12
maxItems: 12 maxItems: 12
gpio-reserved-ranges:
minItems: 1
maxItems: 6
- if: - if:
properties: properties:
...@@ -225,6 +254,9 @@ allOf: ...@@ -225,6 +254,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 13 minItems: 13
maxItems: 13 maxItems: 13
gpio-reserved-ranges:
minItems: 1
maxItems: 7
- if: - if:
properties: properties:
...@@ -237,6 +269,9 @@ allOf: ...@@ -237,6 +269,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 14 minItems: 14
maxItems: 14 maxItems: 14
gpio-reserved-ranges:
minItems: 1
maxItems: 7
- if: - if:
properties: properties:
...@@ -249,6 +284,9 @@ allOf: ...@@ -249,6 +284,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 16 minItems: 16
maxItems: 16 maxItems: 16
gpio-reserved-ranges:
minItems: 1
maxItems: 8
- if: - if:
properties: properties:
...@@ -262,6 +300,9 @@ allOf: ...@@ -262,6 +300,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 22 minItems: 22
maxItems: 22 maxItems: 22
gpio-reserved-ranges:
minItems: 1
maxItems: 11
- if: - if:
properties: properties:
...@@ -274,6 +315,9 @@ allOf: ...@@ -274,6 +315,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 26 minItems: 26
maxItems: 26 maxItems: 26
gpio-reserved-ranges:
minItems: 1
maxItems: 13
- if: - if:
properties: properties:
...@@ -286,6 +330,9 @@ allOf: ...@@ -286,6 +330,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 36 minItems: 36
maxItems: 36 maxItems: 36
gpio-reserved-ranges:
minItems: 1
maxItems: 18
- if: - if:
properties: properties:
...@@ -298,6 +345,9 @@ allOf: ...@@ -298,6 +345,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 38 minItems: 38
maxItems: 38 maxItems: 38
gpio-reserved-ranges:
minItems: 1
maxItems: 19
- if: - if:
properties: properties:
...@@ -311,6 +361,9 @@ allOf: ...@@ -311,6 +361,9 @@ allOf:
gpio-line-names: gpio-line-names:
minItems: 44 minItems: 44
maxItems: 44 maxItems: 44
gpio-reserved-ranges:
minItems: 1
maxItems: 22
patternProperties: patternProperties:
'-state$': '-state$':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment