Commit ef42a8da authored by Serge Semin's avatar Serge Semin Committed by Linus Walleij

dt-bindings: gpio: dwapb: Add ngpios property support

It's redundant to have a vendor-specific property describing a number of
GPIOS while there is a generic one. Let's mark the former one as
deprecated and define the "ngpios" property supported with constraints
of being within [1; 32] range.
Signed-off-by: default avatarSerge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200730152808.2955-2-Sergey.Semin@baikalelectronics.ruSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9123e3a7
...@@ -61,8 +61,14 @@ patternProperties: ...@@ -61,8 +61,14 @@ patternProperties:
'#gpio-cells': '#gpio-cells':
const: 2 const: 2
ngpios:
default: 32
minimum: 1
maximum: 32
snps,nr-gpios: snps,nr-gpios:
description: The number of GPIO pins exported by the port. description: The number of GPIO pins exported by the port.
deprecated: true
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
default: 32 default: 32
minimum: 1 minimum: 1
......
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