zephyr/drivers/mfd/Kconfig.ad559x
Jeppe Odgaard 17b1912bc3 drivers: ad559x: add i2c bus support
Rename ad5592 files in dts, driver and include to ad559x and add support
for I2C bus which is required for AD5593.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-04-01 12:18:47 -05:00

26 lines
597 B
Plaintext

# Copyright (c) 2023 Grinn
# SPDX -License-Identifier: Apache-2.0
menuconfig MFD_AD559X
bool "Analog AD559x I2C/SPI configurable ADC/DAC/GPIO chip"
default y
depends on DT_HAS_ADI_AD559X_ENABLED
help
Enable driver for Analog AD5592 or Analog AD5593.
if MFD_AD559X
config MFD_AD559X_BUS_I2C
bool "Analog AD559x I2C bus support"
default y
depends on $(dt_compat_on_bus,$(DT_COMPAT_ADI_AD559X),i2c)
depends on I2C
config MFD_AD559X_BUS_SPI
bool "Analog AD559x SPI bus support"
default y
depends on $(dt_compat_on_bus,$(DT_COMPAT_ADI_AD559X),spi)
depends on SPI
endif # MFD_AD559X