-
Notifications
You must be signed in to change notification settings - Fork 8.2k
LPC SoC family GPIO interrupts #16589
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
Conversation
|
Found the following issues, please fix and resubmit: License issuesIn most cases you do not need to do anything here, especially if the files
|
5ff5a7e to
f5a6122
Compare
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.
This change is in the wrong commit
dts/bindings/gpio/nxp,lpc-gpio.yaml
Outdated
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.
Include base.yaml and remove the properties that are now defined there.
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.
@MaureenHelm I revisited this pull yesterday, and realized after a rebase that I need to do some rework on this pull, including this .yaml.
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.
@MaureenHelm i've reworked this pull, please review it again.
e30b595 to
f58c493
Compare
drivers/gpio/gpio_mcux_lpc.c
Outdated
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.
Using DT_ALIAS_SW0_GPIOS_PIN here means that gpio interrupts will only work for the aliased buttons/switches. It will not work in the general case.
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.
@MaureenHelm What do you mean by "It will not work in the general case."?
InputMux device will map one pin to one interrupt (manual 19.6.3/4).
Analyzing the way I allocate PINT association, I'm not happy with the way I did it.
I'd rather have a static dts allocation, or even better, deduce PINT allocation according to isr no.
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.
You're always using the SW0 pin. What if I want to use a sensor pin for data ready interrupts?
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.
@MaureenHelm okay, I will change SW to something generic
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.
@MaureenHelm made the changes required, please review it again.
Thank you for your reviews!
55e187f to
5d988a7
Compare
NXP's LPC family of MCU's GPIOs parameters is udated. Boards LPC54xxx and LPC55xxx have updated values according pin and interrupt layout. Signed-off-by: Andrei Gansari <[email protected]>
Board is refactored to use DTS generated value, not use magic numbers. Signed-off-by: Andrei Gansari <[email protected]>
LPC GPIO architecture uses multiple devices. GPIO input is routed via INPUTMUX to the PINT device which roots the interrupt to NVIC. Signed-off-by: Andrei Gansari <[email protected]>
PINT device is enabled when SoC is booting up. Applies to LPC54xxx and LPC55xxx families. Signed-off-by: Andrei Gansari <[email protected]>
Get separate LPC pint devices and GPIO includes. Signed-off-by: Andrei Gansari <[email protected]>
|
@MaureenHelm I rebased and done the west split for this issue, please review. |
|
We should have this target the new GPIO APIs and such. I'd say lets pend on this til the initial commit is in the However it probably makes sense to review zephyrproject-rtos/hal_nxp#11 and have that merged ASAP. |
LPC54xxx and LPC55xxx GPIO interrupts enables.
PINT and INPUTMUX devices enabled to route interrupt signal from pin to NVIC.
Tested with GPIO driver sample.
Fixes #16167