Skip to content

Commit 13aa792

Browse files
prabhakarladAndi Shyti
authored andcommitted
dt-bindings: i2c: renesas,riic: Document RZ/T2H and RZ/N2H support
Document support for the I2C Bus Interface (RIIC) found on the Renesas RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs. The RIIC IP on these parts is similar to that on RZ/V2H(P) but supports only four interrupts (including a combined error/event), lacks FM+ mode, and does not require reset. Introduce a new compatible string `renesas,riic-r9a09g077` for RZ/T2H and use it as a fallback for RZ/N2H. Unlike earlier SoCs that use eight distinct interrupts, the RZ/T2H uses only four. Update the binding schema to reflect this interrupt layout and skip the `resets` property check, as it is not required on these SoCs. Signed-off-by: Lad Prabhakar <[email protected]> Acked-by: Conor Dooley <[email protected]> Reviewed-by: Wolfram Sang <[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 be22117 commit 13aa792

File tree

1 file changed

+56
-19
lines changed

1 file changed

+56
-19
lines changed

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

Lines changed: 56 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,50 @@ properties:
2929
- renesas,riic-r9a09g056 # RZ/V2N
3030
- const: renesas,riic-r9a09g057 # RZ/V2H(P)
3131

32-
- const: renesas,riic-r9a09g057 # RZ/V2H(P)
32+
- enum:
33+
- renesas,riic-r9a09g057 # RZ/V2H(P)
34+
- renesas,riic-r9a09g077 # RZ/T2H
35+
36+
- items:
37+
- const: renesas,riic-r9a09g087 # RZ/N2H
38+
- const: renesas,riic-r9a09g077 # RZ/T2H
3339

3440
reg:
3541
maxItems: 1
3642

3743
interrupts:
38-
items:
39-
- description: Transmit End Interrupt
40-
- description: Receive Data Full Interrupt
41-
- description: Transmit Data Empty Interrupt
42-
- description: Stop Condition Detection Interrupt
43-
- description: Start Condition Detection Interrupt
44-
- description: NACK Reception Interrupt
45-
- description: Arbitration-Lost Interrupt
46-
- description: Timeout Interrupt
44+
oneOf:
45+
- items:
46+
- description: Transmit End Interrupt
47+
- description: Receive Data Full Interrupt
48+
- description: Transmit Data Empty Interrupt
49+
- description: Stop Condition Detection Interrupt
50+
- description: Start Condition Detection Interrupt
51+
- description: NACK Reception Interrupt
52+
- description: Arbitration-Lost Interrupt
53+
- description: Timeout Interrupt
54+
- items:
55+
- description: Transfer Error Or Event Generation
56+
- description: Receive Data Full Interrupt
57+
- description: Transmit Data Empty Interrupt
58+
- description: Transmit End Interrupt
4759

4860
interrupt-names:
49-
items:
50-
- const: tei
51-
- const: ri
52-
- const: ti
53-
- const: spi
54-
- const: sti
55-
- const: naki
56-
- const: ali
57-
- const: tmoi
61+
oneOf:
62+
- items:
63+
- const: tei
64+
- const: ri
65+
- const: ti
66+
- const: spi
67+
- const: sti
68+
- const: naki
69+
- const: ali
70+
- const: tmoi
71+
- items:
72+
- const: eei
73+
- const: rxi
74+
- const: txi
75+
- const: tei
5876

5977
clock-frequency:
6078
description:
@@ -84,6 +102,25 @@ required:
84102
allOf:
85103
- $ref: /schemas/i2c/i2c-controller.yaml#
86104

105+
- if:
106+
properties:
107+
compatible:
108+
contains:
109+
const: renesas,riic-r9a09g077
110+
then:
111+
properties:
112+
interrupts:
113+
maxItems: 4
114+
interrupt-names:
115+
maxItems: 4
116+
resets: false
117+
else:
118+
properties:
119+
interrupts:
120+
minItems: 8
121+
interrupt-names:
122+
minItems: 8
123+
87124
- if:
88125
properties:
89126
compatible:

0 commit comments

Comments
 (0)