Skip to content

Commit 71149fd

Browse files
bogdanovscarlescufi
authored andcommitted
drivers: gpio: Add MAX14906 industrial input/output
MAX14906 in 4 channel I/O with advanced diagnostic. In SPI communication diagnostic status transmitted on every READ/WRITE which includes generic status of chip. Configuration both on global level and on per channel bases. Diagnostics includes : * Thermal overload * current limit * open wire detection * short to VDD * Above VDD * Safe DEmagnitization fault * VDD warning * VDD low * SPI/CRC Error * WDog Error * Loss GND Add app.overlay for MAX14906 driver. Tested with adopted basic/button and basic/blinky sample. Signed-off-by: Stoyan Bogdanov <[email protected]>
1 parent 47c8815 commit 71149fd

File tree

7 files changed

+1016
-0
lines changed

7 files changed

+1016
-0
lines changed

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_KSCAN_ITE_IT8XXX2 gpio_kscan_ite_it8xxx
4040
zephyr_library_sources_ifdef(CONFIG_GPIO_LITEX gpio_litex.c)
4141
zephyr_library_sources_ifdef(CONFIG_GPIO_LMP90XXX gpio_lmp90xxx.c)
4242
zephyr_library_sources_ifdef(CONFIG_GPIO_LPC11U6X gpio_lpc11u6x.c)
43+
zephyr_library_sources_ifdef(CONFIG_GPIO_MAX14906 gpio_max14906.c)
4344
zephyr_library_sources_ifdef(CONFIG_GPIO_MAX32 gpio_max32.c)
4445
zephyr_library_sources_ifdef(CONFIG_GPIO_MCHP_MSS gpio_mchp_mss.c)
4546
zephyr_library_sources_ifdef(CONFIG_GPIO_MCP230XX gpio_mcp230xx.c)

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ source "drivers/gpio/Kconfig.it8xxx2"
131131
source "drivers/gpio/Kconfig.litex"
132132
source "drivers/gpio/Kconfig.lmp90xxx"
133133
source "drivers/gpio/Kconfig.lpc11u6x"
134+
source "drivers/gpio/Kconfig.max14906"
134135
source "drivers/gpio/Kconfig.max32"
135136
source "drivers/gpio/Kconfig.mchp_mss"
136137
source "drivers/gpio/Kconfig.mcp23xxx"

drivers/gpio/Kconfig.max14906

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) 2024 Analog Devices Inc.
2+
# Copyright (c) 2024 BayLibre SAS
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# MAX14906 GPIO configuration options
6+
7+
menuconfig GPIO_MAX14906
8+
bool "MAX14906 GPIO driver"
9+
default y
10+
depends on DT_HAS_ADI_MAX14906_GPIO_ENABLED && SPI
11+
help
12+
Enabe MAX14906 quad industrial digital
13+
input/output with diagnostics
14+
15+
config GPIO_MAX14906_INIT_PRIORITY
16+
int "Driver init priority"
17+
default 99
18+
depends on GPIO_MAX14906
19+
help
20+
Device driver initialization priority.

0 commit comments

Comments
 (0)