1# SPDX-License-Identifier: Apache-2.0 2 3description: Atmel SAM Timer Counter (TC) node 4 5compatible: "atmel,sam-tc" 6 7include: 8 - name: base.yaml 9 - name: pinctrl-device.yaml 10 11properties: 12 reg: 13 required: true 14 15 interrupts: 16 required: true 17 18 clocks: 19 required: true 20 21 channel: 22 type: int 23 description: | 24 Timer / Counter channel to use, channel 0 is the default. 25 Valid range: 0 - 2 26 27 clk: 28 type: int 29 description: | 30 Clock source selection as defined by TCCLKS bit-field of TC_CMR 31 register. Consult the datasheet for the details. 32 33 nodivclk: 34 type: boolean 35 description: | 36 If set to true the `clk` property is ignored. Instead the TC module is 37 driven directly via MCLK. Only supported on sam4e, same70, same70b, 38 samv71, samv71b SoC series. 39 40 reg-cmr: 41 type: int 42 description: | 43 Alternate value of the CMR (Channel Mode Register) register. 44 If specified this value will be written to the register during driver 45 instance initialization instead of the default. It can be used to 46 configure the timer / counter in the custom mode. Together with other 47 properties like channel-num, pinctrl-0 this allows e.g. to configure 48 the driver to count events generated on the TIOA, TIOB signal connected 49 to the external pin. 50 51 reg-rc: 52 type: int 53 description: | 54 Register C compare/match value. RC can be used as compare/match unit 55 for an specific timer unit. Their use depends on how timer channel 56 is configured,see reg-cmr. It can be used as trigger for both input 57 capture or counter mode, or even as event source. The RC register 58 behavior is SoC dependent. For more information and use cases, 59 check SoC datasheet and application notes. 60