This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

zephyr,adc-emul

Vendor: Zephyr-specific binding

Description

Zephyr ADC Emulator

Properties

Properties not inherited from the base binding file.

Name

Type

Details

nchannels

int

Number of emulated ADC channels. Should be in 1-32 range.

This property is required.

ref-internal-mv

int

Internal reference voltage in mV. If not provided or set to zero, channel setup with ADC_REF_INTERNAL will fail.

ref-vdd-mv

int

VDD reference voltage in mV. If not provided or set to zero, channel setup with ADC_REF_VDD_X will fail.

ref-external0-mv

int

External 0 reference voltage in mV. If not provided or set to zero, channel setup with ADC_REF_EXTERNAL0 will fail.

ref-external1-mv

int

External 1 reference voltage in mV. If not provided or set to zero, channel setup with ADC_REF_EXTERNAL1 will fail.

#io-channel-cells

int

This property is required.