-
Notifications
You must be signed in to change notification settings - Fork 7.8k
nordic_nrf: Kconfig.peripherals: Get Kconfig setting from DT #35398
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
nordic_nrf: Kconfig.peripherals: Get Kconfig setting from DT #35398
Conversation
9329d26
to
23a5ecd
Compare
fe5f1c2
to
cffc873
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.
My quick feedback is:
dt_compat_enabled()
is not quite right; we instead should adddt_has_compat()
to kconfigfunctions.py which tests if the compatible exists at all, not requiring it to be enabled- that would allow removing the
status = "okay";
in the gpiote node for arduino_nano_33_ble
could just usedef_bool $(dt_has_compat,$(DT_COMPAT_FOO))
- the missing nodes should probably be added with trivial bindings that just have a reg, except the RADIO case, which has a binding and just needs node definitions
cffc873
to
ca02a12
Compare
True when the compat exists in the tree regardless of status. Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
- For trivial cases where the name is directly translatable to the compat in DTS. - For multi-instance peripherals. Remove 'select' statements when the info is retrieved from DT. Anomalies: - NRF_POWER is missing from DTS for nRF52 and nRF51 SoCs. - A handful of peripherals are missing from DTS altogether, e.g. ACL/BPROT/MPU, PPI, CCM/ECB, RADIO. - The existing HAS_HW_NRF_TWI, SPI, etc that share a peripheral ID don't respect the compat assignment, so this this patch does not either, even though it now could. - EGU is not present in DTS for nRF51 and nRF52 SOCs. - SWI is not present (duplicate/renaming of EGU?). Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
Indicating the presence of the KMU peripheral. Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
ca02a12
to
59a324d
Compare
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Remove 'select' statements when the info is retrieved from DT.
Signed-off-by: Øyvind Rønningstad oyvind.ronningstad@nordicsemi.no