1# Copyright (c) 2022 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3description: |
4    This will perform signal comparison with threshold established.
5
6compatible: "nuvoton,adc-cmp"
7
8include: sensor-device.yaml
9
10properties:
11  io-channels:
12    type: phandle-array
13    required: true
14    description: |
15      ADC channel that will perform measurement.
16
17  threshold-mv:
18    type: int
19    description: |
20      Value in millivolts present on ADC data as threshold assert.
21
22  comparison:
23    type: string
24    description: |
25      Determines the condition to be met between ADC data and
26      threshold assert value that will trigger comparator event.
27    enum:
28      - ADC_CMP_NPCX_GREATER
29      - ADC_CMP_NPCX_LESS_OR_EQUAL
30
31  thr-sel:
32    type: string
33    description: |
34        Determines the register for threshold control and event.
35    enum:
36      - ADC_CMP_NPCX_THRCTL1
37      - ADC_CMP_NPCX_THRCTL2
38      - ADC_CMP_NPCX_THRCTL3
39      - ADC_CMP_NPCX_THRCTL4
40      - ADC_CMP_NPCX_THRCTL5
41      - ADC_CMP_NPCX_THRCTL6
42