Listed By Source
Oct 19, 2026Operating system: zephyr. Imported from the named source; not an OpenFactory hardware test.
Source: Zephyr

Device and firmware record
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;
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;
| Namespace | Value |
|---|---|
| zephyr_id | binding:nxp,tpm-qdec |
Source listings, compiled firmware and physical hardware tests are recorded separately.
Operating system: zephyr. Imported from the named source; not an OpenFactory hardware test.
Source: Zephyr
Curated source, revision d849fd4b82567cf25bac8b34b1cb7229dcea9b2f0c497b7670807a6efc549836
No repository signature was supplied for this metadata.