Skip to content

Commit aa68e1b

Browse files
jgoulyLinus Walleij
authored andcommitted
dt-bindings: pinctrl: Add apple,npins property to apple,pinctrl
This property is used to describe the total number of pins on this particular pinctrl hardware block. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20211026175815.52703-4-joey.gouly@arm.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 69533cd commit aa68e1b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ properties:
3434
gpio-ranges:
3535
maxItems: 1
3636

37+
apple,npins:
38+
$ref: /schemas/types.yaml#/definitions/uint32
39+
description: The number of pins in this GPIO controller.
40+
3741
interrupts:
3842
description: One interrupt for each of the (up to 7) interrupt
3943
groups supported by the controller sorted by interrupt group
@@ -69,6 +73,7 @@ required:
6973
- gpio-controller
7074
- '#gpio-cells'
7175
- gpio-ranges
76+
- apple,npins
7277

7378
additionalProperties: false
7479

@@ -89,6 +94,7 @@ examples:
8994
gpio-controller;
9095
#gpio-cells = <2>;
9196
gpio-ranges = <&pinctrl 0 0 212>;
97+
apple,npins = <212>;
9298
9399
interrupt-controller;
94100
#interrupt-cells = <2>;

0 commit comments

Comments
 (0)