Commit aa68e1b8 authored by Joey Gouly's avatar Joey Gouly Committed by Linus Walleij

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: default avatarJoey Gouly <joey.gouly@arm.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211026175815.52703-4-joey.gouly@arm.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 69533cd3
...@@ -34,6 +34,10 @@ properties: ...@@ -34,6 +34,10 @@ properties:
gpio-ranges: gpio-ranges:
maxItems: 1 maxItems: 1
apple,npins:
$ref: /schemas/types.yaml#/definitions/uint32
description: The number of pins in this GPIO controller.
interrupts: interrupts:
description: One interrupt for each of the (up to 7) interrupt description: One interrupt for each of the (up to 7) interrupt
groups supported by the controller sorted by interrupt group groups supported by the controller sorted by interrupt group
...@@ -69,6 +73,7 @@ required: ...@@ -69,6 +73,7 @@ required:
- gpio-controller - gpio-controller
- '#gpio-cells' - '#gpio-cells'
- gpio-ranges - gpio-ranges
- apple,npins
additionalProperties: false additionalProperties: false
...@@ -89,6 +94,7 @@ examples: ...@@ -89,6 +94,7 @@ examples:
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 212>; gpio-ranges = <&pinctrl 0 0 212>;
apple,npins = <212>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment