Skip to content

Commit

Permalink
dt-bindings: pinctrl: add #interrupt-cells to apple,pinctrl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joey Gouly authored and Linus Walleij committed Oct 26, 2021
1 parent 5853fd5 commit 69533cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ properties:

interrupt-controller: true

'#interrupt-cells':
const: 2

patternProperties:
'-pins$':
type: object
Expand Down Expand Up @@ -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>,
Expand Down

0 comments on commit 69533cd

Please sign in to comment.