nxp,lpcmp

Description

NXP Low Power Comparator (LPCMP)

Properties

Properties not inherited from the base binding file.

Name

Type

Details

power-mode

string

Select comparator power/speed mode.

Legal values: low_speed, high_speed

hysteresis-mode

string

Comparator hysteresis level.

Legal values: LEVEL0, LEVEL1, LEVEL2, LEVEL3

enable-stop-mode

boolean

Allow the comparator to remain enabled in STOP/STANDBY mode.
NOTE: This property is not available on MCXN23x devices.

invert-output

boolean

Invert comparator output.

enable-pin-out

boolean

Drive comparator output on the associated pin.

use-unfiltered-output

boolean

Route unfiltered comparator output (COUTA) to the module output.
When false, the filtered output (COUT) is used and filter parameters
are taken from filter-count and filter-period.

filter-count

int

Number of consecutive samples that must agree before updating
the filtered output. Set to 0 to bypass the filter.

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

filter-period

int

Sampling period for the filter in bus clock cycles.
Valid range: 0 - 255.

dac-vref-source

string

DAC reference high-voltage source selection.

Legal values: VREFH0, VREFH1

dac-value

int

8-bit DAC code used when an input is set to DAC output.
Valid range: 0 - 255.

positive-mux-input

string

Positive input selection. "DAC" routes the internal DAC output.
NOTE: For MCXN/A devices, IN6 and IN7 are not available, only
IN0-IN5 and DAC.

This property is required.

Legal values: IN0, IN1, IN2, IN3, IN4, IN5, IN6, IN7, DAC

negative-mux-input

string

Negative input selection. "DAC" routes the internal DAC output.
NOTE: For MCXN/A devices, IN6 and IN7 are not available, only
IN0-IN5 and DAC.

This property is required.

Legal values: IN0, IN1, IN2, IN3, IN4, IN5, IN6, IN7, DAC

enable-output-pin

boolean

Enable the comparator in selected pin.

enable-output-invert

boolean

Invert the comparator output.

hysteresis-level

int

LPCMP hysteresis mode.
The default corresponds to the reset value of the register field.

Legal values: 0, 1, 2, 3

power-level

string

LPCMP power mode.
The default corresponds to the reset value of the register field.

Default value: low

Legal values: low, high, nano

function-clock

string

LPCMP function clock.
The default corresponds to the reset value of the register field.

Default value: Reserved

Legal values: Reserved, FRO_16K, XTAL32K, CMP_CLOCK

#io-channel-cells

int

Constant value: 2

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.

Specifier cell names

  • io-channel cells: positive, negative