mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-10 07:44:23 +08:00
dt-bindings: pinctrl: sunxi: Make interrupts optional
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 <andre.przywara@arm.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Samuel Holland <samuel@sholland.org> Link: https://lore.kernel.org/r/20220708105235.3983266-3-andre.przywara@arm.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
4528a0cf79
commit
ee84131b43
@ -130,14 +130,11 @@ 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
|
||||
@ -145,6 +142,19 @@ allOf:
|
||||
# warnings.
|
||||
|
||||
- $ref: "pinctrl.yaml#"
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- allwinner,sun50i-h616-r-pinctrl
|
||||
|
||||
then:
|
||||
required:
|
||||
- "#interrupt-cells"
|
||||
- interrupts
|
||||
- interrupt-controller
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
|
Loading…
Reference in New Issue
Block a user