Skip to content

Commit be22117

Browse files
prabhakarladAndi Shyti
authored andcommitted
dt-bindings: i2c: renesas,riic: Move ref for i2c-controller.yaml to the end
In preparation for adding more validation checks, move the `$ref` for 'i2c-controller.yaml' to the end of the file. Also, relocate the conditional check for 'resets' into the 'allOf' block. Signed-off-by: Lad Prabhakar <[email protected]> Acked-by: Conor Dooley <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent da4eb06 commit be22117

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Documentation/devicetree/bindings/i2c/renesas,riic.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ maintainers:
1010
- Chris Brandt <[email protected]>
1111
- Wolfram Sang <[email protected]>
1212

13-
allOf:
14-
- $ref: /schemas/i2c/i2c-controller.yaml#
15-
1613
properties:
1714
compatible:
1815
oneOf:
@@ -84,18 +81,21 @@ required:
8481
- '#address-cells'
8582
- '#size-cells'
8683

87-
if:
88-
properties:
89-
compatible:
90-
contains:
91-
enum:
92-
- renesas,riic-r9a07g043
93-
- renesas,riic-r9a07g044
94-
- renesas,riic-r9a07g054
95-
- renesas,riic-r9a09g057
96-
then:
97-
required:
98-
- resets
84+
allOf:
85+
- $ref: /schemas/i2c/i2c-controller.yaml#
86+
87+
- if:
88+
properties:
89+
compatible:
90+
contains:
91+
enum:
92+
- renesas,riic-r9a07g043
93+
- renesas,riic-r9a07g044
94+
- renesas,riic-r9a07g054
95+
- renesas,riic-r9a09g057
96+
then:
97+
required:
98+
- resets
9999

100100
unevaluatedProperties: false
101101

0 commit comments

Comments
 (0)