Device and firmware record

nxp,tpm-qdec

NXP Timer/PWM Module (TPM) Quadrature Decoder Mode driver. This driver uses tpm_chn0 (phase A) and tpm_chn1 (phase B) input signals to control the TPM counter increment and decrement. The Zephyr Sensor API exposes the rotational position as SENSOR_CHAN_ROTATION by dividing the counter by counts-per revolution definition. To use the NXP TPM module you've to override the compatible string to use the QDEC mode driver with 'nxp,tpm-qdec' &tpm4 { compatible = "nxp,tpm-qdec"; status = "okay"; pinctrl-0 = <&tpm4_pwm2_pwm3>; pinctrl-names = "default"; micro-ticks-per-rev = <685440000>; }; When inheriting from an existing TPM instance you might want to remove the prescaler property Since the QDEC mode doesn't use the prescaler, you do this using: /delete-property/ prescaler;

About nxp,tpm-qdec

NXP Timer/PWM Module (TPM) Quadrature Decoder Mode driver. This driver uses tpm_chn0 (phase A) and tpm_chn1 (phase B) input signals to control the TPM counter increment and decrement. The Zephyr Sensor API exposes the rotational position as SENSOR_CHAN_ROTATION by dividing the counter by counts-per revolution definition. To use the NXP TPM module you've to override the compatible string to use the QDEC mode driver with 'nxp,tpm-qdec' &tpm4 { compatible = "nxp,tpm-qdec"; status = "okay"; pinctrl-0 = <&tpm4_pwm2_pwm3>; pinctrl-names = "default"; micro-ticks-per-rev = <685440000>; }; When inheriting from an existing TPM instance you might want to remove the prescaler property Since the QDEC mode doesn't use the prescaler, you do this using: /delete-property/ prescaler;

Device identity

Manufacturer
NXP Semiconductors
Model
nxp,tpm-qdec
Category
Sensor Family

Specifications

Series
tpm-qdec

Hardware and board identifiers

NamespaceValue
zephyr_idbinding:nxp,tpm-qdec

Operating-system and firmware evidence

Source listings, compiled firmware and physical hardware tests are recorded separately.

Listed By Source

Oct 19, 2026

Operating system: zephyr. Imported from the named source; not an OpenFactory hardware test.

Source: Zephyr

Sources and provenance

  • ZephyrOct 19, 2026

    Curated source, revision d849fd4b82567cf25bac8b34b1cb7229dcea9b2f0c497b7670807a6efc549836

    No repository signature was supplied for this metadata.