zephyr/modules
Gerard Marull-Paretas f23b4fdb2d modules: hal_nordic: nrfx: use dt_nodelabel_exists
As of today, nrfx components are selectable depending if devicetree has
a certain compatible or not, and in case of IP that can operate in
multiple modes, nodelabel+compatible. An example of the later is:

```
config NRFX_SPI0
    bool "SPI0 driver instance"
    depends on $(dt_nodelabel_has_compat,spi0,$(DT_COMPAT_NORDIC_NRF_SPI))
    select NRFX_SPI

config NRFX_SPIM0
    bool "SPIM0 driver instance"
    depends on $(dt_nodelabel_has_compat,spi0,$(DT_COMPAT_NORDIC_NRF_SPIM))
    select NRFX_SPIM

config NRFX_SPIS0
    bool "SPIS0 driver instance"
    depends on $(dt_nodelabel_has_compat,spi0,$(DT_COMPAT_NORDIC_NRF_SPIS))
    select NRFX_SPIS
```

These symbols are later selected by e.g. SPI driver if `spi0` node is
enabled. While this works in the Zephyr context, it can be a problem in
applications using nrfx directly in the application layer, unless they
tweak devicetree. For example, if devicetree `spi0` node defaults to
`compatible = "nordic,nrf-spim"`, NRFX_SPI0 or NRFX_SPIS0 won't be
selectable, but an application using nrfx directly doesn't really care
about what is defined in devicetree as it is effectively bypassing it.
It just wants to select e.g. `CONFIG_NRFX_SPI0=y` and forget about the
rest.

This patch fixes this problem by just checking for the existence of
certain nodelabels.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2025-03-11 18:54:57 +01:00
..
acpica
canopennode modules: canopennode: add rxmsg callback 2024-10-16 12:26:40 +02:00
cmsis arch: arm: cleanup of soc flags in arch 2024-11-16 15:56:11 -05:00
cmsis-dsp cmake: compiler: Added property flag for optimization fast 2025-03-07 20:01:18 +01:00
cmsis-nn cmake: compiler: Added property flag for optimization fast 2025-03-07 20:01:18 +01:00
fatfs fs: fat_fs: fix spelling of "available" 2025-02-19 18:51:13 +01:00
hal_ambiq modules: hal_ambiq: fix cmake warning when no BLE 2025-03-07 19:45:40 +01:00
hal_ethos_u modules: hal_ethos_u: Update to latest Ethos-U rev 2025-01-07 10:10:05 +01:00
hal_gigadevice
hal_infineon hal: infineon: handle gcc flag 2025-03-07 19:56:10 +01:00
hal_nordic modules: hal_nordic: nrfx: use dt_nodelabel_exists 2025-03-11 18:54:57 +01:00
hal_nxp modules: hal_nxp: Add empty file to support CONFIG_BUILD_ONLY_NO_BLOBS 2025-02-19 14:49:44 +00:00
hal_rpi_pico pico-sdk: Exclude the watchdog driver. 2025-03-07 19:47:41 +01:00
hal_silabs drivers: bluetooth: silabs: Set maximum TX power 2025-02-13 16:44:21 +01:00
hal_st drivers/sensor: lis2dux12: add lis2duxs12 support 2024-12-27 19:34:46 +01:00
hal_tdk modules: hal_tdk: Add icm42370p support 2025-02-08 00:31:43 +01:00
hal_wch soc: wch: reorganize series directories by core 2025-01-15 11:58:58 +01:00
hostap modules: hostap: remove select FILE_SYSTEM 2025-03-07 20:27:12 +01:00
liblc3 audio: liblc3: Fix global include path issue 2025-01-27 13:26:02 +01:00
littlefs fs: littlefs: add littlefs disk version selection 2024-12-17 20:55:51 +01:00
loramac-node lorawan: services: frag transport: prepare for pluggable decoder 2024-06-11 16:09:23 +03:00
lvgl modules: lvgl: Update OSAL implementation 2025-02-07 02:22:52 +01:00
lz4 modules: lz4: add configurability 2024-11-22 22:46:59 +00:00
mbedtls modules: mbedtls: Provide CONFIG_MBEDTLS_ASN1_PARSE_C 2025-01-24 19:16:55 +01:00
nanopb
nrf_wifi modules: nrf_wifi: Include OSAL lib in buslib compilation 2025-03-07 19:42:10 +01:00
openthread modules: openthread: platform: optimize stack usage in crypto_psa 2025-03-07 19:59:00 +01:00
percepio modules: percepio: Fix python executable name 2024-08-28 06:49:27 -04:00
segger cmake: segger: linker_script: handle section rtt_buff_data 2025-02-21 18:03:29 +00:00
tflite-micro modules: tflite-micro: update cmakelists 2025-02-13 06:39:17 +01:00
thrift thrift: Define module-wide _POSIX_C_SOURCE feature test macro 2024-10-22 20:40:20 +02:00
trusted-firmware-a
trusted-firmware-m modules: avoid fetching external repo in TF-M 2025-01-24 19:16:08 +01:00
uoscore-uedhoc modules: Update uoscore-uedhoc revision to the latest 2025-02-13 20:12:18 +01:00
zcbor zcbor: Improve kconfig help text 2025-01-25 20:06:05 +01:00
Kconfig drivers: wifi: make WIFI_BUILD_ONLY_MODE global symbol 2024-12-18 18:17:16 +01:00
Kconfig.altera
Kconfig.atmel
Kconfig.chre
Kconfig.cypress
Kconfig.eos_s3
Kconfig.esp32 modules: Kconfig: Provide default definitions for modules with blobs 2024-09-16 10:07:13 +02:00
Kconfig.imx
Kconfig.infineon drivers: rtc: Add RTC driver for Infineon XMC4xxx devices 2024-09-04 09:54:52 +02:00
Kconfig.intel
Kconfig.libmetal
Kconfig.mcuboot dfu: Add support for new MCUboot swap using offset mode 2025-02-10 19:05:25 +01:00
Kconfig.mcux soc: imxrt: drop the ADC_MCUX_12B1MSPS_SAR overrides 2025-02-26 22:03:36 +00:00
Kconfig.microchip soc: microchip: mec: Add new HAL based MEC5 family chips 2024-05-21 16:45:30 -04:00
Kconfig.nuvoton drivers: usb_c: numaker: support Nuvoton's M2L31 series 2024-08-01 12:38:53 +02:00
Kconfig.nxp_s32
Kconfig.open-amp
Kconfig.picolibc
Kconfig.renesas_fsp drivers: mbox: Initial support for RZ/G3S 2025-03-07 19:45:30 +01:00
Kconfig.rust modules: Add placeholder for CONFIG_RUST 2024-09-26 17:46:27 -04:00
Kconfig.simplelink modules: simplelink: Add support for cc23x0 SoC 2025-02-04 11:56:05 +01:00
Kconfig.sof
Kconfig.stm32 modules: stm32: add stm32n6 cube modules 2025-01-28 18:14:45 +01:00
Kconfig.sysbuild
Kconfig.syst
Kconfig.telink
Kconfig.tinycrypt TinyCrypt: Deprecate the library 2024-12-12 11:05:59 +01:00
Kconfig.vega
Kconfig.wurthelektronik
Kconfig.xtensa
modules.cmake