Skip to content

Commit d777960

Browse files
alexandrebellonidlezcano
authored andcommitted
dt-bindings: microchip: atmel,at91rm9200-tcb: add sama5d2 compatible
The sama5d2 TC block TIMER_CLOCK1 is different from the at91sam9x5 one. Instead of being MCK / 2, it is the TCB GCLK. Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8be8e7d commit d777960

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ properties:
1919
- enum:
2020
- atmel,at91rm9200-tcb
2121
- atmel,at91sam9x5-tcb
22+
- atmel,sama5d2-tcb
2223
- const: simple-mfd
2324
- const: syscon
2425

@@ -36,15 +37,6 @@ properties:
3637
description:
3738
List of clock names. Always includes t0_clk and slow clk. Also includes
3839
t1_clk and t2_clk if a clock per channel is available.
39-
oneOf:
40-
- items:
41-
- const: t0_clk
42-
- const: slow_clk
43-
- items:
44-
- const: t0_clk
45-
- const: t1_clk
46-
- const: t2_clk
47-
- const: slow_clk
4840
minItems: 2
4941
maxItems: 4
5042

@@ -75,6 +67,38 @@ patternProperties:
7567
- compatible
7668
- reg
7769

70+
allOf:
71+
- if:
72+
properties:
73+
compatible:
74+
contains:
75+
const: atmel,sama5d2-tcb
76+
then:
77+
properties:
78+
clocks:
79+
minItems: 3
80+
maxItems: 3
81+
clock-names:
82+
items:
83+
- const: t0_clk
84+
- const: gclk
85+
- const: slow_clk
86+
else:
87+
properties:
88+
clocks:
89+
minItems: 2
90+
maxItems: 4
91+
clock-names:
92+
oneOf:
93+
- items:
94+
- const: t0_clk
95+
- const: slow_clk
96+
- items:
97+
- const: t0_clk
98+
- const: t1_clk
99+
- const: t2_clk
100+
- const: slow_clk
101+
78102
required:
79103
- compatible
80104
- reg

0 commit comments

Comments
 (0)