nxp,lptmr

Vendor: NXP Semiconductors

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.

prescaler

int

The frequency of the counter is divided by this value.

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

int

When in prescaler mode, the counter is incremented every
  2 ^ [prescaler-glitch-filter] clock cycles.
When in pulse mode, the counter is incremented every
  2 ^ [prescaler-glitch-filter] rising edges detected
  by the pin configured from the input-pin value.
  Note, that the pulse mode cannot be 2 ^ 16.

Default value: 1

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

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