Skip to content

Commit

Permalink
dt-bindings: pinctrl: Add apple,npins property to apple,pinctrl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joey Gouly authored and Linus Walleij committed Oct 26, 2021
1 parent 69533cd commit aa68e1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ properties:
gpio-ranges:
maxItems: 1

apple,npins:
$ref: /schemas/types.yaml#/definitions/uint32
description: The number of pins in this GPIO controller.

interrupts:
description: One interrupt for each of the (up to 7) interrupt
groups supported by the controller sorted by interrupt group
Expand Down Expand Up @@ -69,6 +73,7 @@ required:
- gpio-controller
- '#gpio-cells'
- gpio-ranges
- apple,npins

additionalProperties: false

Expand All @@ -89,6 +94,7 @@ examples:
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 212>;
apple,npins = <212>;
interrupt-controller;
#interrupt-cells = <2>;
Expand Down

0 comments on commit aa68e1b

Please sign in to comment.