Commit 3f07899f authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Jonathan Cameron

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.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: default avatarKamel Bouhara <kamel.bouhara@bootlin.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 4b88c673
...@@ -19,6 +19,7 @@ properties: ...@@ -19,6 +19,7 @@ properties:
- enum: - enum:
- atmel,at91rm9200-tcb - atmel,at91rm9200-tcb
- atmel,at91sam9x5-tcb - atmel,at91sam9x5-tcb
- atmel,sama5d2-tcb
- const: simple-mfd - const: simple-mfd
- const: syscon - const: syscon
...@@ -36,15 +37,6 @@ properties: ...@@ -36,15 +37,6 @@ properties:
description: description:
List of clock names. Always includes t0_clk and slow clk. Also includes List of clock names. Always includes t0_clk and slow clk. Also includes
t1_clk and t2_clk if a clock per channel is available. t1_clk and t2_clk if a clock per channel is available.
oneOf:
- items:
- const: t0_clk
- const: slow_clk
- items:
- const: t0_clk
- const: t1_clk
- const: t2_clk
- const: slow_clk
minItems: 2 minItems: 2
maxItems: 4 maxItems: 4
...@@ -75,6 +67,38 @@ patternProperties: ...@@ -75,6 +67,38 @@ patternProperties:
- compatible - compatible
- reg - reg
allOf:
- if:
properties:
compatible:
contains:
const: atmel,sama5d2-tcb
then:
properties:
clocks:
minItems: 3
maxItems: 3
clock-names:
items:
- const: t0_clk
- const: gclk
- const: slow_clk
else:
properties:
clocks:
minItems: 2
maxItems: 4
clock-names:
oneOf:
- items:
- const: t0_clk
- const: slow_clk
- items:
- const: t0_clk
- const: t1_clk
- const: t2_clk
- const: slow_clk
required: required:
- compatible - compatible
- reg - reg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment