st,stm32-timers

Description

STM32 timers

Properties

Properties not inherited from the base binding file.

Name

Type

Details

resets

phandle-array

Reset information

This property is required.

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).

Default value: 0

st,deadtime

int

Sets the dead-time configuration on the associated timer which will add
a delay between the rising edge of the reference signal and the rising
edge of both the OCx and OCxN signals. This is commonly used and required
with bridge circuits to prevent shoot-through currents.

This feature is supported only by certain timer instances. Refer
to your product's Reference Manual for more information about this
feature's availability. (In particular, certain series such as
STM32L0/STM32L1 have no instance supporting this feature).

Default value: 0

Value range: 0 to 255

st,mastermode

string

Selects master mode (trigger output TRGO source selection)
of the timer instance. Only available for timer instances
with master function - property is ignored otherwise.

For details, refer to your device's Reference Manual.

* RESET   - The UG bit from the TIMx_EGR register is used
            as TRGO.
* ENABLE  - The Counter enable signal, CNT_EN, is used as TRGO.
* UPDATE  - The update event is used as TRGO.
* CC1IF   - The CC1IF set event is used as TRGO.
* OC1REF - OC1REF signal is used as TRGO.
* OC2REF - OC2REF signal is used as TRGO.
* OC3REF - OC3REF signal is used as TRGO.
* OC4REF - OC4REF signal is used as TRGO.

Default value: RESET

Legal values: RESET, ENABLE, UPDATE, CC1IF, OC1REF, OC2REF, OC3REF, OC4REF

st,slavemode

string

Selects the slave mode behavior of the timer instance.
Only available for timer instances with slave function - property is ignored otherwise.
Only compatible with CONFIG_PWM_CAPTURE in `four-channel-capture-support` mode.

For details, refer to your device's Reference Manual.

* disabled              - Slave mode disabled
* reset                 - Rising edge of trigger input (TRGI see `st,trigger-selection`)
                          reinitializes the counter and generates an update of the registers.
* gated                 - The counter clock is enabled when TRGI is high. The counter stops
                          (but is not reset) as soon as the trigger becomes low. Both start
                          and stop of the counter are controlled.
* trigger               - The counter starts at a rising edge of TRGI (but it is not reset).
                          Only the start of the counter is controlled.
* combined_resettrigger - Rising edge of (TRGI) reinitializes the counter, generates an
                          update of the registers and starts the counter.
                          Not available on all series.
* combined_gatedreset   - The counter clock is enabled when TRGI is high. The counter stops
                          and is reset as soon as the trigger becomes low. Both start and
                          stop of the counter are controlled.
                          Not available on all series.

Default value: disabled

Legal values: disabled, reset, gated, trigger, combined_resettrigger, combined_gatedreset

st,trigger-selection

string

Selects the input trigger (TRGI) source for slave mode operation.
Only available for timer instances with slave function - property is ignored otherwise.
ITR4-15 options are not available on all series.

For details, refer to your device's Reference Manual.

Default value: ITR0

Legal values: ITR0, ITR1, ITR2, ITR3, ITR4, ITR5, ITR6, ITR7, ITR8, ITR9, ITR10, ITR11, ITR12, ITR13, ITR14, ITR15, TI1F_ED, TI1FP1, TI1FP2, ETRF

reset-names

string-array

Name of each reset