Skip to content

Commit 3ca5cf5

Browse files
bogdanovscarlescufi
authored andcommitted
drivers: gpio: Add MAX14916 industrial output
Industrial 8 channel output with advanced diagnostics. Allowing giagnostic configuration both on per channel or global bases In SPI communication diagnostic status transmitted on every READ/WRITE which includes generic status of chip. Diagnostics includes : * Oveload * Open Wire * Over current * Short to VDD * Thermal Shutdown * VDD Warn * Watch Dog Error * Communication Error * VDD under voltage Add app.overlay for MAX14916 driver. Tested with adopted basic/blinky example. Signed-off-by: Stoyan Bogdanov <[email protected]>
1 parent fe8f5d3 commit 3ca5cf5

File tree

6 files changed

+642
-0
lines changed

6 files changed

+642
-0
lines changed

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ 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)
4343
zephyr_library_sources_ifdef(CONFIG_GPIO_MAX14906 gpio_max14906.c)
44+
zephyr_library_sources_ifdef(CONFIG_GPIO_MAX14916 gpio_max14916.c)
4445
zephyr_library_sources_ifdef(CONFIG_GPIO_MAX32 gpio_max32.c)
4546
zephyr_library_sources_ifdef(CONFIG_GPIO_MCHP_MSS gpio_mchp_mss.c)
4647
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
@@ -132,6 +132,7 @@ source "drivers/gpio/Kconfig.litex"
132132
source "drivers/gpio/Kconfig.lmp90xxx"
133133
source "drivers/gpio/Kconfig.lpc11u6x"
134134
source "drivers/gpio/Kconfig.max14906"
135+
source "drivers/gpio/Kconfig.max14916"
135136
source "drivers/gpio/Kconfig.max32"
136137
source "drivers/gpio/Kconfig.mchp_mss"
137138
source "drivers/gpio/Kconfig.mcp23xxx"

drivers/gpio/Kconfig.max14916

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+
# MAX14916 GPIO configuration options
6+
7+
menuconfig GPIO_MAX14916
8+
bool "MAX14916 GPIO driver"
9+
default y
10+
depends on DT_HAS_ADI_MAX14916_GPIO_ENABLED && SPI
11+
help
12+
Enabe MAX1416 octal industrial digital
13+
output with diagnostics
14+
15+
config GPIO_MAX14916_INIT_PRIORITY
16+
int "Driver init priority"
17+
default 99
18+
depends on GPIO_MAX14916
19+
help
20+
Device driver initialization priority.

0 commit comments

Comments
 (0)