]> Git Repo - linux.git/commitdiff
dt-bindings: gpio: dwapb: Add ngpios property support
authorSerge Semin <[email protected]>
Thu, 30 Jul 2020 15:27:58 +0000 (18:27 +0300)
committerLinus Walleij <[email protected]>
Thu, 27 Aug 2020 08:32:57 +0000 (10:32 +0200)
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]>
Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml

index 1240f6289249160c513068fbcae81c99c0f59dc5..b391cc1b4590676483d73e6f8141ec059522a86b 100644 (file)
@@ -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
This page took 0.056804 seconds and 4 git commands to generate.