nxp,imx-gpt

Description

NXP MCUX General-Purpose Timer (GPT)

Properties

Properties not inherited from the base binding file.

Name

Type

Details

gptfreq

int

Desired counter tick frequency in Hz. Required for all internal clock
sources (periph, high-freq, low-freq, osc).
Can be left out when clock-source = "ext" — the external clock
frequency is unknown; counter_get_freq() returns 0 and the prescaler
is fixed at 1.

run-mode

string

Selects how the GPT counter behaves on compare events.
- restart(default): When the counter reaches the Compare Channel 1 value,
  the counter resets to 0x00000000 and starts counting again.
- free-run: Compare events do not reset the counter.
Notes:
- This driver uses Compare Channel 1 for the Zephyr counter alarm.
- With restart, using alarms may cause the counter to reset at the
  alarm compare point.

Default value: restart

Legal values: restart, free-run

clock-source

string

GPT clock source. The enum order matches gpt_clock_source_t in fsl_gpt.h
exactly so DT_INST_ENUM_IDX can be cast directly to gpt_clock_source_t.

Default value: periph

Legal values: off, periph, high-freq, ext, low-freq, osc

high-freq

int

High-frequency reference clock in Hz. Only applies when clock-source = "high-freq".

low-freq

int

Low-frequency reference clock in Hz. Only applies when clock-source = "low-freq".

osc-freq

int

Oscillator frequency expressed in Hz. Only applies when clock-source = "osc".

osc-divider

int

Prescaler for the oscillator clock. Only applies when clock-source = "osc".

Default value: 1

Value range: 1 to 16

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.