nuvoton,adc-cmp

Vendor: Nuvoton Technology Corporation

Note

An implementation of a driver matching this compatible is available in drivers/sensor/nuvoton/nuvoton_adc_cmp_npcx/adc_cmp_npcx.c.

Description

This will perform signal comparison with threshold established.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

threshold-mv

int

Value in millivolts present on ADC data as threshold assert.

comparison

string

Determines the condition to be met between ADC data and
threshold assert value that will trigger comparator event.

Legal values: 'ADC_CMP_NPCX_GREATER', 'ADC_CMP_NPCX_LESS_OR_EQUAL'

thr-sel

string

Determines the register for threshold control and event.

Legal values: 'ADC_CMP_NPCX_THRCTL1', 'ADC_CMP_NPCX_THRCTL2', 'ADC_CMP_NPCX_THRCTL3', 'ADC_CMP_NPCX_THRCTL4', 'ADC_CMP_NPCX_THRCTL5', 'ADC_CMP_NPCX_THRCTL6'

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).