The Analog Device AD5601, AD5611, and AD5621 devices are 8, 10 and 12 bits DAC respectively. These devices use a 16 bits SPI communication protocol. The 2 first bit encode the low power mode (this driver do not use the low power mode, it always run in the 'normal' mode). The next 14 bits contain the left aligned value. The 2, 4, or 6 remaining bits (depending on the resolution) are set to 0. Signed-off-by: Mickael Bosch <mickael.bosch@linux.com>
25 lines
558 B
Plaintext
25 lines
558 B
Plaintext
# DAC configuration options
|
|
|
|
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config DAC_AD56X1
|
|
bool "Analog Devices AD56x1 DAC driver"
|
|
default y
|
|
select SPI
|
|
depends on DT_HAS_ADI_AD5601_ENABLED \
|
|
|| DT_HAS_ADI_AD5611_ENABLED \
|
|
|| DT_HAS_ADI_AD5621_ENABLED
|
|
help
|
|
Enable the driver for the Analog Devices AD56x1 DAC
|
|
|
|
if DAC_AD56X1
|
|
|
|
config DAC_AD56X1_INIT_PRIORITY
|
|
int "Init priority"
|
|
default 80
|
|
help
|
|
Analog Devices AD56x1 DAC device driver initialization priority.
|
|
|
|
endif # DAC_AD56X1
|