zephyr/dts/bindings/sensor/ite,it8xxx2-vcmp.yaml
Maureen Helm 45ffc2397a dts: bindings: Migrate ITE sensors to inherit base sensor properties
Migrates all ITE sensors to inherit base sensor device properties. This
will allow us to define properties shared by multiple sensors in one
place.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-10-17 10:15:13 +02:00

52 lines
1.2 KiB
YAML

# Copyright (c) 2022 ITE Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
description: ITE, it8xxx2 Voltage Comparator node
compatible: "ite,it8xxx2-vcmp"
include: sensor-device.yaml
properties:
reg:
required: true
interrupts:
required: true
vcmp-ch:
type: int
required: true
description: Voltage comparator channel.
scan-period:
type: int
required: true
description: |
Select the scan interval for all comparator channel.
Check include/zephyr/dt-bindings/sensor/it8xxx2_vcmp.h file for
pre-defined values.
comparison:
type: int
required: true
description: |
Determines the condition to be met between ADC data and
threshold assert value that will trigger comparator interrupt.
Check include/zephyr/dt-bindings/sensor/it8xxx2_vcmp.h file for
pre-defined values.
threshold-mv:
type: int
required: true
description: |
16-bit value in milli-volts present on ADC data as threshold assert.
Check include/zephyr/dt-bindings/sensor/it8xxx2_vcmp.h file for
pre-defined values.
io-channels:
type: phandle-array
required: true
description: |
ADC channel that will perform measurement.