Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions modules/hal_nordic/nrfx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,17 @@ config NRFX_SPI2
depends on $(dt_nodelabel_exists,spi2) && SOC_SERIES_NRF52X
select NRFX_SPI

DT_COMPAT_NORDIC_NRF_SPIM := nordic,nrf-spim

config NRFX_SPIM
bool
bool "SPIM driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIM))

DT_COMPAT_NORDIC_NRF_SPIS := nordic,nrf-spis
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't it be passed directly?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comma probably

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, an alternative to dt_has_compat would be dt_compat_enabled. We allow using NRFX driver if the HW is there (indicated by presence of node with compat) but IMO the node does not have to be enabled

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am looking at the definitions of HAS_HW_NRF and I see they use DT_COMPAT_NORDIC_NRF_ without it being defined (probably because of what you sent). Maybe those symbols do not need to be defined?
I will approve anyway; I do not want to block it, but I have a feeling someone might comment on this when we try to merge the collab into main.


config NRFX_SPIS
bool
bool "SPIS driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIS))

config NRFX_SYSTICK
bool "SYSTICK driver"
Expand Down
Loading