-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: gpio: max22190: Add MAX22190 octal input with diagnostics
Add max22190 gpio driver with input functionality, since device support only input without output. Implemented diagnostic funcionality 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 of 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 prited in console. Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
- Loading branch information
Showing
6 changed files
with
814 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright (c) 2010-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. |
Oops, something went wrong.