Skip to content

Commit

Permalink
dt-bindings: pinctrl: sunxi: Make interrupts optional
Browse files Browse the repository at this point in the history
The R_PIO pinctrl device on the Allwinner H616 SoC does not have an
interrupt (it features only two pins).
However the binding requires at least naming one upstream interrupt,
plus the #interrupt-cells and interrupt-controller properties.

Drop the unconditional requirement for the interrupt properties, and
make them dependent on being not this particular pinctrl device.

Signed-off-by: Andre Przywara <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Acked-by: Samuel Holland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
Andre-ARM authored and linusw committed Jul 11, 2022
1 parent 4528a0c commit ee84131
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,21 +130,31 @@ patternProperties:

required:
- "#gpio-cells"
- "#interrupt-cells"
- compatible
- reg
- interrupts
- clocks
- clock-names
- gpio-controller
- interrupt-controller

allOf:
# FIXME: We should have the pin bank supplies here, but not a lot of
# boards are defining it at the moment so it would generate a lot of
# warnings.

- $ref: "pinctrl.yaml#"
- if:
not:
properties:
compatible:
enum:
- allwinner,sun50i-h616-r-pinctrl

then:
required:
- "#interrupt-cells"
- interrupts
- interrupt-controller

- if:
properties:
compatible:
Expand Down

0 comments on commit ee84131

Please sign in to comment.