microchip,tcc-g1-counter

Description

Microchip TCC G1 counter peripheral.

Microchip TCC G1 counter peripheral.

This driver is used for configuring and managing TCC
(Timer/Counter for Control Applications) peripheral in Microchip microcontrollers.
This peripherals support counting events, measuring time intervals, and generating
periodic interrupts.
The supported peripheral IP versions :
 - TCC id="U2213" version="3.1.0"
The supported families are:
 - SAM_E5X_D5X

Properties

Properties not inherited from the base binding file.

Name

Type

Details

prescaler

int

Timer prescaler values.

The prescaler divides the input clock frequency to
achieve the desired timer frequency.

Legal values: 1, 2, 4, 8, 16, 64, 256, 1024

channels

int

This specifies the maximum number of channels available for the peripheral instance.

This property is required.

max-bit-width

int

Maximum bit width supported by the counter.

This property specifies the resolution of the counter. The value provided in the device tree
should reflect the maximum supported by the hardware instance. It should only be overridden
after consulting the relevant family datasheet to ensure compatibility.

This property is required.

Legal values: 16, 24

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.