Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <robh@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200710230813.1005150-3-alexandre.belloni@bootlin.com

authored by

Alexandre Belloni and committed by
Daniel Lezcano
d777960e 8be8e7de

+33 -9
+33 -9
Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml
··· 19 19 - enum: 20 20 - atmel,at91rm9200-tcb 21 21 - atmel,at91sam9x5-tcb 22 + - atmel,sama5d2-tcb 22 23 - const: simple-mfd 23 24 - const: syscon 24 25 ··· 37 36 description: 38 37 List of clock names. Always includes t0_clk and slow clk. Also includes 39 38 t1_clk and t2_clk if a clock per channel is available. 40 - oneOf: 41 - - items: 42 - - const: t0_clk 43 - - const: slow_clk 44 - - items: 45 - - const: t0_clk 46 - - const: t1_clk 47 - - const: t2_clk 48 - - const: slow_clk 49 39 minItems: 2 50 40 maxItems: 4 51 41 ··· 66 74 required: 67 75 - compatible 68 76 - reg 77 + 78 + allOf: 79 + - if: 80 + properties: 81 + compatible: 82 + contains: 83 + const: atmel,sama5d2-tcb 84 + then: 85 + properties: 86 + clocks: 87 + minItems: 3 88 + maxItems: 3 89 + clock-names: 90 + items: 91 + - const: t0_clk 92 + - const: gclk 93 + - const: slow_clk 94 + else: 95 + properties: 96 + clocks: 97 + minItems: 2 98 + maxItems: 4 99 + clock-names: 100 + oneOf: 101 + - items: 102 + - const: t0_clk 103 + - const: slow_clk 104 + - items: 105 + - const: t0_clk 106 + - const: t1_clk 107 + - const: t2_clk 108 + - const: slow_clk 69 109 70 110 required: 71 111 - compatible