1# Copyright (c) 2022 ITE Technology Corporation. 2# SPDX-License-Identifier: Apache-2.0 3 4description: ITE, it8xxx2 Voltage Comparator node 5 6compatible: "ite,it8xxx2-vcmp" 7 8include: sensor-device.yaml 9 10properties: 11 reg: 12 required: true 13 14 interrupts: 15 required: true 16 17 vcmp-ch: 18 type: int 19 required: true 20 description: Voltage comparator channel. 21 22 scan-period: 23 type: int 24 required: true 25 description: | 26 Select the scan interval for all comparator channel. 27 Check include/zephyr/dt-bindings/sensor/it8xxx2_vcmp.h file for 28 pre-defined values. 29 30 comparison: 31 type: int 32 required: true 33 description: | 34 Determines the condition to be met between ADC data and 35 threshold assert value that will trigger comparator interrupt. 36 Check include/zephyr/dt-bindings/sensor/it8xxx2_vcmp.h file for 37 pre-defined values. 38 39 threshold-mv: 40 type: int 41 required: true 42 description: | 43 16-bit value in milli-volts present on ADC data as threshold assert. 44 Check include/zephyr/dt-bindings/sensor/it8xxx2_vcmp.h file for 45 pre-defined values. 46 47 io-channels: 48 type: phandle-array 49 required: true 50 description: | 51 ADC channel that will perform measurement. 52