Skip to content

Commit ef42a8d

Browse files
fancerlinusw
authored andcommitted
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]>
1 parent 9123e3a commit ef42a8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,14 @@ patternProperties:
6161
'#gpio-cells':
6262
const: 2
6363

64+
ngpios:
65+
default: 32
66+
minimum: 1
67+
maximum: 32
68+
6469
snps,nr-gpios:
6570
description: The number of GPIO pins exported by the port.
71+
deprecated: true
6672
$ref: /schemas/types.yaml#/definitions/uint32
6773
default: 32
6874
minimum: 1

0 commit comments

Comments
 (0)