-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
dts: arm: rpi_pico: remove #define from dts #81196
dts: arm: rpi_pico: remove #define from dts #81196
Conversation
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.
Whilst the move for the defines is fine, how is this fixing the original issue of RPI_PICO_DEFAULT_IRQ_PRIORITY
?
Hi @nordicjm, Thank you for your input. This PR addresses just issue #79719 by removing direct #define usage in the DTS file and converting these definitions to use a dt-bindings header instead. Regarding RPI_PICO_DEFAULT_IRQ_PRIORITY, if you recommend, we could consider adding it to the Kconfig file for the RPI_PICO board. Alternatively, please let me know if you have any other suggestions on how to handle RPI_PICO_DEFAULT_IRQ_PRIORITY. |
Kconfig cannot be used from dts. Have spoken with Gerard who suggests to use the way it is done with nordic devices, the reset file change can stay but without the IRQ part, use the equivalent override here and define below it with the comment: https://github.com/zephyrproject-rtos/zephyr/blob/main/dts/common/nordic/nrf_common.dtsi#L15 add an override file similar to https://github.com/zephyrproject-rtos/zephyr/blob/main/dts/arm/nordic/override.dtsi then all should work |
okay
sure, will do |
11c4293
to
8fc2b6a
Compare
Hi @nordicjm, Could you please confirm if this change aligns with your requirements? I’d appreciate any feedback to ensure it meets your expectations. |
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.
Thanks
@Tarangraval21 can you check compliance and fix issues? |
ohh okay , The subject line "Update dts/arm/rpi_pico/rp2040.dtsi" is not in the correct format, and the patch is missing the signed-off-by tag. i will fix it. |
The merge commit needs to be removed, rebases are used for pulling in latest zephyr changes (which you only need to do if there is a file conflict) |
3e802a7
to
95eb08d
Compare
I am encountering build failures in the "Run tests with twister / twister-build(2) (pull_request_target)
I am unable to determine how these build failures are related to the current patch. Could you please help clarify or provide guidance on troubleshooting these issues? |
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.
Can you squash these commits? In rebase, mark the second as fixup. Also do a rebase on main
and hopefully CI should pass
Removing direct #define usage in the DTSI file and converting these definitions to use a dt-bindings header instead. Relocates the RPI_PICO_DEFAULT_IRQ_PRIORITY definition to a DTSI file and introduces an override.dtsi file. The override file is used when no other override file is present, allowing for better flexibility and compliance with Zephyr’s DTS structure. Fixes: zephyrproject-rtos#79719 Signed-off-by: Tarang Raval <[email protected]>
95eb08d
to
20e5c95
Compare
we can not use #define. Instead, include a dt-bindings header including the definitions.
Fixes: #79719