nxp,mcux-eqdc

Description

NXP MCUX Enhanced Quadrature Decoder (EQDC)

Properties

Properties not inherited from the base binding file.

Name

Type

Details

counts-per-revolution

int

Number of encoder counts per full revolution (360 degrees).
This is used to convert position to angle. The value is scaled
internally by the count multiplier of the active decode mode, so the
effective modulus is (counts-per-revolution * multiplier - 1):
- Quadrature X4 (default): multiplier 4
- single-phase-mode: multiplier 1

This property is required.

Minimum value: 1

input-filter-count

int

Input filter sample count
The Input Filter Sample Count represents the number of consecutive samples
that must agree, before the input filter accepts an input transition:
- A value of 0x0 represents 3 samples
- A value of 0x7 represents 10 samples
The value of the Input Filter Sample Count (FILT_CNT) affects the
input latency.

Default value: 0

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

input-filter-period

int

The Input Filter Sample Period represents the sampling period
(in IPBus clock cycles) of the decoder input signals. Each input
is sampled multiple times at the rate specified by the Input Filter
Sample Period.
- If it is set to 0x0(default), then the input filter is bypassed.
The value of the Input Filter Sample Period (FILT_PER) affects the
input latency.

Default value: 0

Value range: 0 to 255

prescaler

int

The Prescaler field is used to prescale the peripheral clock that
is used by the LASTEDGE and POSDPER counters as well as watchdog timer
and Input Filter.
The clock is prescaled by a value of 2^PRSC. For example:
prescaler = 0, divide by 1
prescaler = 1, divide by 2
...
prescaler = 15, divide by 32768

Default value: 0

Value range: 0 to 15

reverse-direction

boolean

Selects the direction of the count and position counter initial value.
false: Count normally.
true: Count in the reverse direction.

single-phase-mode

boolean

Bypass the quadrature decoder and use single-phase decode mode. A
transition on the PHASEA input generates a count; PHASEB and the
reverse-direction setting control the count direction. In this mode the
controller counts one edge per pulse (no X4 quadrature multiply), so
counts-per-revolution is the raw pulse count per revolution.
When unset (default), standard quadrature X4 decoding is used.

revolution-count-mode

int

0: Use INDEX pulse to increment/decrement revolution counter.
1: Use modulus counting roll-over or roll-under events instead of the
INDEX pulse.

Default value: 1

Legal values: 0, 1

inputmux-connections

phandle-array

INPUTMUX routing for the EQDC PHASEA/PHASEB inputs. Each phandle-array
entry is <&inputmuxN channel connection> where:
  - &inputmuxN is the INPUTMUX node providing the route
  - channel is the INPUTMUX destination index
  - connection is an inputmux_connection_t value from the NXP HAL
    header fsl_inputmux_connections.h

Example (MCXA153: route TRIG_IN10 to EQDC PHASEA and TRIG_IN5 to
EQDC PHASEB via INPUTMUX0):
  inputmux-connections = <&inputmux0 0 0x37000022>, /* TrigIn10ToQdc0Phasea */
                         <&inputmux0 0 0x36c0001d>; /* TrigIn5ToQdc0Phaseb */

friendly-name

string

Human readable string describing the sensor. It can be used to
distinguish multiple instances of the same model (e.g., lid accelerometer
vs. base accelerometer in a laptop) to a host operating system.

This property is defined in the Generic Sensor Property Usages of the HID
Usage Tables specification
(https://usb.org/sites/default/files/hut1_3_0.pdf, section 22.5).

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.