- 
                Notifications
    You must be signed in to change notification settings 
- Fork 719
[nrf fromlist] modules: hal_nordic: nrfx: make NRFX_SPI(M/S) selectable #3420
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
base: collab-nrfx-4.0
Are you sure you want to change the base?
[nrf fromlist] modules: hal_nordic: nrfx: make NRFX_SPI(M/S) selectable #3420
Conversation
1f91ab6    to
    35d7df0      
    Compare
  
    35d7df0    to
    492a422      
    Compare
  
    Since selectable per-instance configs are removed, allow selecting the general symbol for driver. Upstream PR #: 96792 Signed-off-by: Michał Stasiak <[email protected]>
492a422    to
    2667add      
    Compare
  
    | bool "SPIM driver" | ||
| depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIM)) | ||
|  | ||
| DT_COMPAT_NORDIC_NRF_SPIS := nordic,nrf-spis | 
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.
Why can't it be passed directly?
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.
Comma probably
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.
I believe it is due to commas in compat name, it is the recommended way https://github.com/zephyrproject-rtos/zephyr/blob/a8bf08bf4e2f43ab915ae35b0a4e7418f7f978a8/scripts/dts/gen_driver_kconfig_dts.py#L25-L29
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.
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
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.
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.
Since selectable per-instance configs are removed, allow selecting the general symbol for driver.
Upstream PR #: 96792