Skip to content

Commit e297293

Browse files
granquetkartben
authored andcommitted
drivers: mfd: add MAX22017 DAC/GPIO MFD
The MAX22017 DAC provides two 16 Channel Analog outputs and 6 GPIOs. Signed-off-by: Guillaume Ranquet <[email protected]>
1 parent 38131af commit e297293

File tree

6 files changed

+586
-0
lines changed

6 files changed

+586
-0
lines changed

drivers/mfd/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ zephyr_library_sources_ifdef(CONFIG_MFD_ITE_IT8801 mfd_ite_it8801.c)
2121
zephyr_library_sources_ifdef(CONFIG_MFD_ITE_IT8801_ALTCTRL mfd_it8801_altctrl.c)
2222
zephyr_library_sources_ifdef(CONFIG_MFD_AW9523B mfd_aw9523b.c)
2323
zephyr_library_sources_ifdef(CONFIG_MFD_DS3231 mfd_ds3231.c)
24+
zephyr_library_sources_ifdef(CONFIG_MFD_MAX22017 mfd_max22017.c)

drivers/mfd/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ source "drivers/mfd/Kconfig.aw9523b"
2525
source "drivers/mfd/Kconfig.bd8lb600fs"
2626
source "drivers/mfd/Kconfig.ds3231"
2727
source "drivers/mfd/Kconfig.max20335"
28+
source "drivers/mfd/Kconfig.max22017"
2829
source "drivers/mfd/Kconfig.max31790"
2930
source "drivers/mfd/Kconfig.nct38xx"
3031
source "drivers/mfd/Kconfig.npm1300"

drivers/mfd/Kconfig.max22017

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2024 Analog Devices Inc.
2+
# Copyright (c) 2024 BayLibre SAS
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
config MFD_MAX22017
6+
bool "Analog Devices MAX22017 DAC/GPIO chip"
7+
default y
8+
depends on SPI
9+
select CRC
10+
depends on DT_HAS_ADI_MAX22017_ENABLED
11+
help
12+
Enable the driver for the Analog Devices MAX22017 DAC/GPIO chip

0 commit comments

Comments
 (0)