mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 06:51:56 +00:00
Add max22190 gpio driver with input functionality, since device support only input without output. Implemented diagnostic functionality for all 8 channels which include various check to over/under voltage and wire break. Filtering configuration is done from devicetree on per channel bases and is configured on chip start. In case some fault condition occure FAULT pin drive LOW which prop to FAULT registers to be read. Data is stored in data structure for furter analizes and ERR message is printed in console. Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
22 lines
504 B
Plaintext
22 lines
504 B
Plaintext
# Copyright (c) 2024 Analog Devices Inc.
|
|
# Copyright (c) 2024 BayLibre SAS
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# MAX22190 GPIO configuration options
|
|
|
|
menuconfig GPIO_MAX22190
|
|
bool "MAX22190 GPIO driver"
|
|
default y
|
|
depends on SPI
|
|
depends on DT_HAS_ADI_MAX22190_GPIO_ENABLED
|
|
help
|
|
Enabe MAX22190 Octal industrial digital
|
|
input with diagnostics
|
|
|
|
config GPIO_MAX22190_INIT_PRIORITY
|
|
int "Driver init priority"
|
|
default 99
|
|
depends on GPIO_MAX22190
|
|
help
|
|
Device driver initialization priority.
|