Skip to content

Commit 489c773

Browse files
NXP-CarlosSongalexandrebelloni
authored andcommitted
dt-bindings: i3c: silvaco,i3c-master: add i.MX94 and i.MX95 I3C
Add compatible string "nxp,imx94-i3c" and "nxp,imx95-i3c" for the i.MX94 chip and i.MX95 chip. Backward is compatible with "silvaco,i3c-master-v1". Also i.MX94 and i.MX95 I3C only need two clocks and Legacy I3C needs three clocks. So add restrictions for clock and clock-names properties for different Socs. Signed-off-by: Carlos Song <[email protected]> Reviewed-by: Frank Li <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 12cbd15 commit 489c773

File tree

1 file changed

+39
-6
lines changed

1 file changed

+39
-6
lines changed

Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ title: Silvaco I3C master
99
maintainers:
1010
- Conor Culhane <[email protected]>
1111

12-
allOf:
13-
- $ref: i3c.yaml#
14-
1512
properties:
1613
compatible:
17-
enum:
18-
- nuvoton,npcm845-i3c
19-
- silvaco,i3c-master-v1
14+
oneOf:
15+
- enum:
16+
- nuvoton,npcm845-i3c
17+
- silvaco,i3c-master-v1
18+
- items:
19+
- enum:
20+
- nxp,imx94-i3c
21+
- nxp,imx95-i3c
22+
- const: silvaco,i3c-master-v1
2023

2124
reg:
2225
maxItems: 1
@@ -25,12 +28,14 @@ properties:
2528
maxItems: 1
2629

2730
clocks:
31+
minItems: 2
2832
items:
2933
- description: system clock
3034
- description: bus clock
3135
- description: other (slower) events clock
3236

3337
clock-names:
38+
minItems: 2
3439
items:
3540
- const: pclk
3641
- const: fast_clk
@@ -46,6 +51,34 @@ required:
4651
- clock-names
4752
- clocks
4853

54+
allOf:
55+
- $ref: i3c.yaml#
56+
- if:
57+
properties:
58+
compatible:
59+
enum:
60+
- nuvoton,npcm845-i3c
61+
- silvaco,i3c-master-v1
62+
then:
63+
properties:
64+
clocks:
65+
minItems: 3
66+
clock-names:
67+
minItems: 3
68+
- if:
69+
properties:
70+
compatible:
71+
contains:
72+
enum:
73+
- nxp,imx94-i3c
74+
- nxp,imx95-i3c
75+
then:
76+
properties:
77+
clocks:
78+
maxItems: 2
79+
clock-names:
80+
maxItems: 2
81+
4982
unevaluatedProperties: false
5083

5184
examples:

0 commit comments

Comments
 (0)