dt-bindings: pinctrl: add #interrupt-cells to apple,pinctrl
authorJoey Gouly <joey.gouly@arm.com>
Tue, 26 Oct 2021 17:58:12 +0000 (18:58 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Oct 2021 22:16:36 +0000 (00:16 +0200)
The GPIO/pinctrl hardware can act as an interrupt-controller, so add
the #interrupt-cells property to the binding.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211026175815.52703-3-joey.gouly@arm.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml

index d50571affd1f24a4b5bd2c42fd026d2acd574eda..0b3eb068fb123d03fdf13f55c8c918d8c4ba36ab 100644 (file)
@@ -43,6 +43,9 @@ properties:
 
   interrupt-controller: true
 
+  '#interrupt-cells':
+    const: 2
+
 patternProperties:
   '-pins$':
     type: object
@@ -88,6 +91,7 @@ examples:
         gpio-ranges = <&pinctrl 0 0 212>;
 
         interrupt-controller;
+        #interrupt-cells = <2>;
         interrupt-parent = <&aic>;
         interrupts = <AIC_IRQ 16 IRQ_TYPE_LEVEL_HIGH>,
                      <AIC_IRQ 17 IRQ_TYPE_LEVEL_HIGH>,