Skip to content

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

Closed

Conversation

oyvindronningstad
Copy link
Contributor

Remove 'select' statements when the info is retrieved from DT.

Signed-off-by: Øyvind Rønningstad oyvind.ronningstad@nordicsemi.no

@oyvindronningstad oyvindronningstad force-pushed the dt-kconfig branch 2 times, most recently from 9329d26 to 23a5ecd Compare May 19, 2021 09:17
@oyvindronningstad oyvindronningstad force-pushed the dt-kconfig branch 2 times, most recently from fe5f1c2 to cffc873 Compare May 19, 2021 09:41
Copy link
Contributor

@mbolivar-nordic mbolivar-nordic left a 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 add dt_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 use def_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

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>
@github-actions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants