nxp,lpacmp

Description

NXP Low-Power Analog Comparator (LPACMP)

Properties

Properties not inherited from the base binding file.

Name

Type

Details

positive-input

string

Positive input selection for channel 0 (SEL0[INP_SEL]).

The list is ordered by the register encoding, not by input number: the
hardware encodes 0 as comp_in4 and 1 as comp_in5 before continuing with
comp_in0 through comp_in3. The driver writes the enum index straight into
SEL0[INP_SEL], so entries must stay in this order and must not be sorted.

This property is required.

Legal values: comp_in4, comp_in5, comp_in0, comp_in1, comp_in2, comp_in3

negative-input

int

Negative (reference) input selection for channel 0 (SEL0[INN_SEL]).
Values 0-13 select an internal reference of (value + 1) x AVDD / 15.
Value 14 selects external input comp_in4 and value 15 selects external
input comp_in5.

This property is required.

Value range: 0 to 15

sample-delay

int

Channel 0 sample delay counter value (DELAY0[DEL]) in AON_CLK cycles.
The comparator output is sampled every time this counter reaches zero,
so the value sets the sampling period and must give the output enough
time to become steady. The default is the register reset value; in the
Continuous mode used by this driver the comparator is always powered,
so sampling at every AON_CLK cycle is functional, but a non-zero value
adds settling margin between samples.

Default value: 0

Value range: 0 to 65535