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 <prabhakar.mahadev-lad.rj@bp.renesas.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20250625104526.101004-2-prabhakar.mahadev-lad.rj@bp.renesas.com
1 parent da4eb06 commit be22117

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

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 <chris.brandt@renesas.com>
1111
- Wolfram Sang <wsa+renesas@sang-engineering.com>
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)