-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[RFC] [DNM] dts: bindings: remove nordic,nrf-uarte from dts/dtsi/overlays/bindings #8735
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
compatible = "nordic,nrf-uarte" is never actually used and adds complexity to the DTS and build system. Also there are no fixup files that can handle NORDIC_NRF_UARTE_40002000_BASE_ADDRESS so using uarte in device tree leads to compilation errors. Signed-off-by: Bartosz Sokolski <[email protected]>
@barsok I have no objections to this as long as the selection of UART vs UARTE in SoCs where both are available can be done easily through some means. What would that be, Kconfig? |
@carlescufi PR #8640 introduces new settings in Kconfig which let the user select whether they want to use UART or UARTE, depending on availibility of both |
Codecov Report
@@ Coverage Diff @@
## master #8735 +/- ##
=======================================
Coverage 52.36% 52.36%
=======================================
Files 195 195
Lines 24696 24696
Branches 5128 5128
=======================================
Hits 12931 12931
Misses 9695 9695
Partials 2070 2070 Continue to review full report at Codecov.
|
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.
Nack. This shouldn't be handled via Kconfig, it should be handled via DT like it is.
I don't understand what issue you are running into when the compatible is set to "nordic,nrf-uarte"
At some point we will be able to remove the port selection from Kconfig, and it will just be the driver. So doing this with DT to start with is the way to go. Its pretty straight forward to get the UARTE driver to use DT. |
Closing this as the proper way is to fixup #8640 to handle DTS generation for UARTE. |
@galak (@jarz-nordic, @carlescufi ) Hi Kumar. I appreciate your strong opinion about the DT and drivers. I also think that the device tree is the way to go and I believe that my PR did not counter this approach. Therefore I am surprised you have closed the PR without even asking "why" I had opened it. I am going to provide the "why" anyways and I will appreciate your comments and further discussion. The facts for now:
Discussion about the future:
My conclusion is to "scrap" what we have now to prepare for the future with great and easy device tree. and hence this Pull Request. What is your opinon, again? |
This is done once in the SOC dts fixup so the user isn't going to
I agree they aren't the same device and there for not the same compatible. We can remove the compatible property from the SoC dtsi and force the user / board dtsi to explicitly set it, the idea of "compatible = nordic,nrf-uart, nordic,nrf-uarte" was to convey that it should be one or the other.
I don't see why we need to take the Kconfig option. |
Take a look at #8761 |
This is what we cover in #8758 |
I have a suggestion to remove string: "nordic,nrf-uarte" from compatible and related .yaml file and would like to ask for comments.
The reasons are:
Signed-off-by: Bartosz Sokolski [email protected]