-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Drivers: interrupt: Add NXP GINT driver #100240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Drivers: interrupt: Add NXP GINT driver #100240
Conversation
The GINT peripheral provides grouped GPIO interrupt functionality, allowing multiple pins to be combined into a single interrupt source. Support the peripheral in interrupt controller Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
Add dts nodes in SOC dts files Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
Enable GINT clock during SOC init Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
The test cases cover: 1. Pin enable and disable 2. Edge trigger and level trigger for single pin 3. OR combination and AND combination for multiple pins Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
Set the DTS node to okay status Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
Enable the test case for NXP boards Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
|
The DTS compliance fail needs this fix: #100133 |
|
|
|
||
| /* Clear interrupt flag */ | ||
| ctrl = gint_read_reg(config, GINT_CTRL_OFFSET); | ||
| gint_write_reg(config, GINT_CTRL_OFFSET, ctrl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we firstly check if (ctrl & GINT_CTRL_INT_BIT), then gint_write_reg(config, GINT_CTRL_OFFSET, ctrl); to clear the flag?
| { | ||
| atomic_inc(&gint_callback_count); | ||
|
|
||
| nxp_gint_disable_pin(gint_dev, TEST_PORT_0, TEST_PIN_0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disable the same port pin twice.



Add NXP GINT driver
Add the test
Enable driver and test for NXP boards