diff options
author | Serge Semin <[email protected]> | 2020-07-30 18:27:58 +0300 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2020-08-27 10:32:57 +0200 |
commit | ef42a8da3cf3c5984ccb88c83d0f3eca0d93d1ea (patch) | |
tree | 64d65730cb9012c1bac8023afbb74fcc98c67c9b | |
parent | 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff) |
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: Serge Semin <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
-rw-r--r-- | Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml index 1240f6289249..b391cc1b4590 100644 --- a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml @@ -61,8 +61,14 @@ patternProperties: '#gpio-cells': const: 2 + ngpios: + default: 32 + minimum: 1 + maximum: 32 + snps,nr-gpios: description: The number of GPIO pins exported by the port. + deprecated: true $ref: /schemas/types.yaml#/definitions/uint32 default: 32 minimum: 1 |