mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 04:35:17 +07:00
dt-bindings: pinctrl: sunxi: Get rid of continual nesting
Rather than a continual nesting of 'else' clauses, just make each 'if' a new entry under 'allOf' and get rid of the else. Signed-off-by: Yangtao Li <frank@allwinnertech.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Maxime Ripard <mripard@kernel.org> Link: https://lore.kernel.org/r/229e4870dab1b34797304c384e68c7d04196423b.1595572867.git.frank@allwinnertech.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
a68a784426
commit
96bef667dd
@ -155,62 +155,74 @@ allOf:
|
||||
minItems: 5
|
||||
maxItems: 5
|
||||
|
||||
else:
|
||||
if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- allwinner,sun6i-a31-pinctrl
|
||||
- allwinner,sun6i-a31s-pinctrl
|
||||
- allwinner,sun50i-h6-pinctrl
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- allwinner,sun6i-a31-pinctrl
|
||||
- allwinner,sun6i-a31s-pinctrl
|
||||
- allwinner,sun50i-h6-pinctrl
|
||||
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 4
|
||||
maxItems: 4
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 4
|
||||
maxItems: 4
|
||||
|
||||
else:
|
||||
if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- allwinner,sun8i-a23-pinctrl
|
||||
- allwinner,sun8i-a83t-pinctrl
|
||||
- allwinner,sun50i-a64-pinctrl
|
||||
- allwinner,sun50i-h5-pinctrl
|
||||
- allwinner,suniv-f1c100s-pinctrl
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- allwinner,sun8i-a23-pinctrl
|
||||
- allwinner,sun8i-a83t-pinctrl
|
||||
- allwinner,sun50i-a64-pinctrl
|
||||
- allwinner,sun50i-h5-pinctrl
|
||||
- allwinner,suniv-f1c100s-pinctrl
|
||||
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 3
|
||||
maxItems: 3
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 3
|
||||
maxItems: 3
|
||||
|
||||
else:
|
||||
if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- allwinner,sun6i-a31-r-pinctrl
|
||||
- allwinner,sun8i-a33-pinctrl
|
||||
- allwinner,sun8i-h3-pinctrl
|
||||
- allwinner,sun8i-v3-pinctrl
|
||||
- allwinner,sun8i-v3s-pinctrl
|
||||
- allwinner,sun9i-a80-r-pinctrl
|
||||
- allwinner,sun50i-h6-r-pinctrl
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- allwinner,sun6i-a31-r-pinctrl
|
||||
- allwinner,sun8i-a33-pinctrl
|
||||
- allwinner,sun8i-h3-pinctrl
|
||||
- allwinner,sun8i-v3-pinctrl
|
||||
- allwinner,sun8i-v3s-pinctrl
|
||||
- allwinner,sun9i-a80-r-pinctrl
|
||||
- allwinner,sun50i-h6-r-pinctrl
|
||||
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 2
|
||||
maxItems: 2
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 2
|
||||
maxItems: 2
|
||||
|
||||
else:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 1
|
||||
maxItems: 1
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- allwinner,sun4i-a10-pinctrl
|
||||
- allwinner,sun5i-a10s-pinctrl
|
||||
- allwinner,sun5i-a13-pinctrl
|
||||
- allwinner,sun7i-a20-pinctrl
|
||||
- allwinner,sun8i-a23-r-pinctrl
|
||||
- allwinner,sun8i-a83t-r-pinctrl
|
||||
- allwinner,sun8i-h3-r-pinctrl
|
||||
- allwinner,sun8i-r40-pinctrl
|
||||
- allwinner,sun50i-a64-r-pinctrl
|
||||
- nextthing,gr8-pinctrl
|
||||
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
minItems: 1
|
||||
maxItems: 1
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user