st,stm32-timers

Vendor: STMicroelectronics

Description

STM32 timers

Properties

Properties not inherited from the base binding file.

Name

Type

Details

resets

phandle-array

Reset information

This property is required.

reset-names

string-array

Name of each reset

st,prescaler

int

Clock prescaler at the input of the timer
Could be in range [0 .. 0xFFFF] for STM32 General Purpose Timers (CLK/(prescaler+1) )

This property is required.

st,countermode

int

Sets timer counter mode.

Use constants defined in dt-bindings/timer/stm32-timer.h.

* STM32_TIM_COUNTERMODE_UP             - used as upcounter.
* STM32_TIM_COUNTERMODE_DOWN           - used as downcounter.
* STM32_TIM_COUNTERMODE_CENTER_DOWN    - counts up and down alternatively.
                                         Output compare interrupt flags of output channels
                                         are set only when the counter is counting down.
* STM32_TIM_COUNTERMODE_CENTER_UP      - counts up and down alternatively.
                                         Output compare interrupt flags of output channels
                                         are set only when the counter is counting up.
* STM32_TIM_COUNTERMODE_CENTER_UP_DOWN - counts up and down alternatively.
                                         Output compare interrupt flags of output channels
                                         are set only when the counter is counting up or
                                         down.

If absent, then STM32_TIM_COUNTERMODE_UP is used (reset state).