kconfig: treewide: use auto-generated Kconfig compatible macro variables

Replace some manually-defined DT_COMPAT_<> Kconfig macro variables with
their automatically generated counterparts. In most cases, this is
straightforward as the manually defined macro is named identically to the
one generated by the build system.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
This commit is contained in:
Mathieu Choplain
2025-11-28 14:10:57 +01:00
committed by Henrik Brix Andersen
parent e31140859d
commit 239fab93bc
10 changed files with 3 additions and 24 deletions

View File

@@ -277,14 +277,10 @@ 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 "SPIM driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIM))
DT_COMPAT_NORDIC_NRF_SPIS := nordic,nrf-spis
config NRFX_SPIS
bool "SPIS driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIS))

View File

@@ -4,12 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#
DT_COMPAT_NORDIC_NRF7002_QSPI := nordic,nrf7002-qspi
DT_COMPAT_NORDIC_NRF7002_SPI := nordic,nrf7002-spi
DT_COMPAT_NORDIC_NRF7001_QSPI := nordic,nrf7001-qspi
DT_COMPAT_NORDIC_NRF7001_SPI := nordic,nrf7001-spi
DT_COMPAT_NORDIC_NRF7000_QSPI := nordic,nrf7000-qspi
DT_COMPAT_NORDIC_NRF7000_SPI := nordic,nrf7000-spi
# TODO: Use DTS generated Kconfig once the board support is added
DT_COMPAT_NORDIC_WIFI71 := nordic,nrf7120
menuconfig NRF70_BUSLIB