blob: 6765cb090cbd7c2e2cda23f18232f9b5af27e829 [file] [log] [blame]
# Copyright 2021 Google LLC
# SPDX-License-Identifier: Apache-2.0
description: Zephyr ADC Emulator
compatible: "zephyr,adc-emul"
include: adc-controller.yaml
properties:
nchannels:
type: int
required: true
description: Number of emulated ADC channels. Should be in 1-32 range.
ref-internal-mv:
type: int
default: 0
description:
Internal reference voltage in mV. If not provided or set to zero,
channel setup with ADC_REF_INTERNAL will fail.
ref-vdd-mv:
type: int
default: 0
description:
VDD reference voltage in mV. If not provided or set to zero,
channel setup with ADC_REF_VDD_X will fail.
ref-external0-mv:
type: int
default: 0
description:
External 0 reference voltage in mV. If not provided or set to zero,
channel setup with ADC_REF_EXTERNAL0 will fail.
ref-external1-mv:
type: int
default: 0
description:
External 1 reference voltage in mV. If not provided or set to zero,
channel setup with ADC_REF_EXTERNAL1 will fail.
io-channel-cells:
- input