Commit 96bef667 authored by Yangtao Li's avatar Yangtao Li Committed by Linus Walleij

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: default avatarYangtao Li <frank@allwinnertech.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarMaxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/229e4870dab1b34797304c384e68c7d04196423b.1595572867.git.frank@allwinnertech.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a68a7844
...@@ -155,8 +155,7 @@ allOf: ...@@ -155,8 +155,7 @@ allOf:
minItems: 5 minItems: 5
maxItems: 5 maxItems: 5
else: - if:
if:
properties: properties:
compatible: compatible:
enum: enum:
...@@ -170,8 +169,7 @@ allOf: ...@@ -170,8 +169,7 @@ allOf:
minItems: 4 minItems: 4
maxItems: 4 maxItems: 4
else: - if:
if:
properties: properties:
compatible: compatible:
enum: enum:
...@@ -187,8 +185,7 @@ allOf: ...@@ -187,8 +185,7 @@ allOf:
minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
else: - if:
if:
properties: properties:
compatible: compatible:
enum: enum:
...@@ -206,7 +203,22 @@ allOf: ...@@ -206,7 +203,22 @@ allOf:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
else: - 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: properties:
interrupts: interrupts:
minItems: 1 minItems: 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment