-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: gpio: add MAX22017 gpio support
MAX22017 is a DAC with support for 6 GPIOs Signed-off-by: Guillaume Ranquet <[email protected]>
- Loading branch information
Showing
6 changed files
with
475 additions
and
0 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,33 @@ | ||
# Copyright (c) 2024 Analog Devices Inc. | ||
# Copyright (c) 2024 BayLibre SAS | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config GPIO_MAX22017 | ||
bool "Analog Devices MAX22017 GPIO support" | ||
default y | ||
depends on DT_HAS_ADI_MAX22017_GPIO_ENABLED | ||
select MFD | ||
help | ||
Enable GPIO support for the Analog Devices MAX22017 | ||
|
||
if GPIO_MAX22017 | ||
|
||
config GPIO_MAX22017_INIT_PRIORITY | ||
int "Init priority" | ||
default 81 | ||
help | ||
Analog Devices MAX22017 gpio device driver initialization priority. | ||
|
||
config GPIO_MAX22017_INT_QUIRK | ||
bool "MAX22017 GPIO Interrupt quirk" | ||
default n | ||
help | ||
The GPIO controller will not report any new GPI interrupt as long as its interrupt status | ||
register hasn't been read. | ||
Reading the interrupt status register happens on a falling edge of the INT pin. | ||
There seems to be a condition when the GPIO controller detects an interrupt but it's INT | ||
pin stays high which masks any subsequent interrupts. | ||
To avoid being stuck in that state, fire a timer to periodically check the interrupt status | ||
register. | ||
|
||
endif # GPIO_MAX22017 |
Oops, something went wrong.