1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/soc/microchip/atmel,at91rm9200-tcb.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Atmel Timer Counter Block
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
13 The Atmel (now Microchip) SoCs have timers named Timer Counter Block. Each
14 timer has three channels with two counters each.
20 - atmel,at91rm9200-tcb
21 - atmel,at91sam9x5-tcb
31 List of interrupts. One interrupt per TCB channel if available or one
32 interrupt for the TC block
38 List of clock names. Always includes t0_clk and slow clk. Also includes
39 t1_clk and t2_clk if a clock per channel is available.
55 description: The timer block channels that are used as timers or counters.
57 additionalProperties: false
64 - microchip,tcb-capture
67 List of channels to use for this particular timer. In Microchip TCB capture
68 mode channels are registered as a counter devices, for the qdec mode TCB0's
69 channel <0> and <1> are required.
78 description: The timer block channels that are used as PWMs.
79 $ref: /schemas/pwm/pwm.yaml#
86 TCB channel to use for this PWM.
91 The only third cell flag supported by this binding is
92 PWM_POLARITY_INVERTED.
100 additionalProperties: false
108 const: atmel,sama5d2-tcb
144 additionalProperties: false
148 /* One interrupt per TC block: */
149 tcb0: timer@fff7c000 {
150 compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
151 #address-cells = <1>;
153 reg = <0xfff7c000 0x100>;
155 clocks = <&tcb0_clk>, <&clk32k>;
156 clock-names = "t0_clk", "slow_clk";
159 compatible = "atmel,tcb-timer";
164 compatible = "atmel,tcb-timer";
169 /* One interrupt per TC channel in a TC block: */
170 tcb1: timer@fffdc000 {
171 compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
172 #address-cells = <1>;
174 reg = <0xfffdc000 0x100>;
175 interrupts = <26 4>, <27 4>, <28 4>;
176 clocks = <&tcb1_clk>, <&clk32k>;
177 clock-names = "t0_clk", "slow_clk";
180 compatible = "atmel,tcb-timer";
185 compatible = "atmel,tcb-timer";
190 compatible = "atmel,tcb-pwm";
195 /* TCB0 Capture with QDEC: */
197 compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
198 #address-cells = <1>;
200 reg = <0xfff7c000 0x100>;
202 clocks = <&tcb0_clk>, <&clk32k>;
203 clock-names = "t0_clk", "slow_clk";
206 compatible = "microchip,tcb-capture";
211 compatible = "atmel,tcb-timer";