nxp,lptmr

Description

NXP LPTMR

Properties

Properties not inherited from the base binding file.

Name

Type

Details

clock-frequency

int

Counter clock frequency

This property is required.

clk-source

int

Selects the clock to be used by the LPMTR prescaler/glitch filter.
In time counter mode, this field selects the input clock to the prescaler.
In pulse counter mode, this field selects the input clock to the glitch filter.
The clock connections vary by device, see the device reference manual for
more details.

This property is required.

Legal values: 0, 1, 2, 3

input-pin

int

When LPTMR is in Pulse mode, this value
will be used to determine the "rising-edge
source pin" to increment the lptmr counter.

active-low

boolean

When LPTMR is in Pulse mode, this value
will set the counter to active low.

resolution

int

Represents the width of the counter in bits.

This property is required.

prescale-glitch-filter-bypass

boolean

Controls the clocking of Counter (CNR). If false, the output of the prescaler
or glitch filter clocks CNR. If true, the selected prescaler clock in Time
Counter mode, or the selected input source in Pulse Counter mode, directly
clocks CNR.

prescale-glitch-filter

int

Configures the size of the prescaler in Time Counter mode and the width of the
glitch filter in Pulse Counter mode.

Note: If ``prescale-glitch-filter-bypass`` is set, this property is ignored.
When in prescaler mode, prescaler divides the prescaler clock by
  2^(prescaler-glitch-filter + 1)
When in pulse mode, prescale-glitch-filter = 0 is not supported for glitch
  filtering. To request no filtering, set ``prescale-glitch-filter-bypass``.
  If prescale-glitch-filter is greater than 0, glitch filter recognizes change
  on input pin after 2^prescale-glitch-filter rising clock edges.

Legal values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

timer-mode-sel

int

This value determines rather the LPTMR is configured
for Time-Counter mode or for Pulse mode.
0 <- LPTMR is configured for Time Counter Mode.
1 <- LPTMR is configured for Pulse Mode.

Legal values: 0, 1

run-mode

string

Selects how the LPTMR counter behaves on compare events.
- restart(default): Counter resets after matching the compare value.
- free-run: Compare events do not reset the counter; it resets on overflow.

Default value: restart

Legal values: 'restart', 'free-run'