aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Gouly <[email protected]>2021-10-26 18:58:13 +0100
committerLinus Walleij <[email protected]>2021-10-27 00:16:44 +0200
commitaa68e1b80d8fd1be41cf2989e9af9620386be9be (patch)
treee8d8f8aaffd3140eaacd99a0dc57a4acf17388a0
parent69533cd3a1a9b155bdb151caf04bc176b5759696 (diff)
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]>
-rw-r--r--Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
index 0b3eb068fb12..07b00de79755 100644
--- a/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
@@ -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
@@ -69,6 +73,7 @@ required:
- gpio-controller
- '#gpio-cells'
- gpio-ranges
+ - apple,npins
additionalProperties: false
@@ -89,6 +94,7 @@ examples:
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 212>;
+ apple,npins = <212>;
interrupt-controller;
#interrupt-cells = <2>;