nxp,cmp

Vendor: NXP Semiconductors

Note

An implementation of a driver matching this compatible is available in drivers/comparator/comparator_nxp_cmp.c.

Description

NXP Comparator

Properties

Properties not inherited from the base binding file.

Name

Type

Details

enable-high-speed-mode

boolean

Enable CMP high speed mode.
False: In this mode, CMP has slower output propagation
       delay and lower current consumption.
True: CMP has faster output propagation delay and
      higher current consumption.

hysteresis-mode

string

Select CMP Hysteresis level.

Legal values: 'LEVEL0', 'LEVEL1', 'LEVEL2', 'LEVEL3'

invert-output

boolean

Invert CMP output.

enable-pin-out

boolean

Enable CMP output to associated pin.

use-unfiltered-output

boolean

Use unfiltered output as the final result.
If users need unfiltered output, enable this property, and
do not need to configure 'filter-count' and 'filter-period'.
If users need filtered output, disbable this property, and
configure 'filter-count' >= 1, 'filter-period' >= 1.

filter-count

int

Represents the number of consecutive samples that must agree
prior to the comparator output filter accepting a new output state.
0: Filter is disabled, setting 'use-unfiltered-output' to enable
   or disable has the same effect.
1: One sample must agree. The comparator output is simply sampled.
2: 2 consecutive samples must agree.
3: 3 consecutive samples must agree.
4: 4 consecutive samples must agree.
5: 5 consecutive samples must agree.
6: 6 consecutive samples must agree.
7: 7 consecutive samples must agree.

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

filter-period

int

Specifies the sampling period, in bus clock cycles.
Valid range: 0 - 255.

dac-vref-source

string

DAC reference source select.

Legal values: 'VIN1', 'VIN2'

dac-value

int

Selects an output voltage from one of 64 distinct levels.
DACO = (Vin / 64) * (dac-value + 1) , so the DACO range is
from Vin/64 to Vin .

positive-mux-input

string

Positive input mux, determines which input is selected for
positive minus input of the comparator.
IN0: Input 0
IN1: Input 1
IN2: Input 2
IN3: Input 3
IN4: Input 4
IN5: Input 5
IN6: Input 6
IN7: Input 7, DACO

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

negative-mux-input

string

Positive input mux, determines which input is selected for
positive minus input of the comparator.
IN0: Input 0
IN1: Input 1
IN2: Input 2
IN3: Input 3
IN4: Input 4
IN5: Input 5
IN6: Input 6
IN7: Input 7, DACO

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

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.