Skip to content

Commit aa68e1b

Browse files
jgoulylinusw
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 <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Acked-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 69533cd commit aa68e1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)