Browse Source

drivers: spi: Support spim01/spis01 instances for nordic devices

Extend SPI driver to support spims01 and spim01.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
pull/74835/merge
David Jewsbury 3 weeks ago committed by Benjamin Cabé
parent
commit
c237253fe7
  1. 2
      drivers/spi/Kconfig.nrfx
  2. 10
      modules/hal_nordic/nrfx/Kconfig
  3. 6
      modules/hal_nordic/nrfx/nrfx_kconfig.h
  4. 6
      soc/nordic/common/Kconfig.peripherals
  5. 1
      soc/nordic/validate_base_addresses.c

2
drivers/spi/Kconfig.nrfx

@ -28,6 +28,7 @@ config SPI_NRFX_SPIM @@ -28,6 +28,7 @@ config SPI_NRFX_SPIM
select NRFX_SPIM3 if HAS_HW_NRF_SPIM3
select NRFX_SPIM4 if HAS_HW_NRF_SPIM4
select NRFX_SPIM00 if HAS_HW_NRF_SPIM00
select NRFX_SPIM01 if HAS_HW_NRF_SPIM01
select NRFX_SPIM20 if HAS_HW_NRF_SPIM20
select NRFX_SPIM21 if HAS_HW_NRF_SPIM21
select NRFX_SPIM22 if HAS_HW_NRF_SPIM22
@ -54,6 +55,7 @@ config SPI_NRFX_SPIS @@ -54,6 +55,7 @@ config SPI_NRFX_SPIS
select NRFX_SPIS2 if HAS_HW_NRF_SPIS2
select NRFX_SPIS3 if HAS_HW_NRF_SPIS3
select NRFX_SPIS00 if HAS_HW_NRF_SPIS00
select NRFX_SPIS01 if HAS_HW_NRF_SPIS01
select NRFX_SPIS20 if HAS_HW_NRF_SPIS20
select NRFX_SPIS21 if HAS_HW_NRF_SPIS21
select NRFX_SPIS22 if HAS_HW_NRF_SPIS22

10
modules/hal_nordic/nrfx/Kconfig

@ -547,6 +547,11 @@ config NRFX_SPIM00 @@ -547,6 +547,11 @@ config NRFX_SPIM00
depends on $(dt_nodelabel_exists,spi00)
select NRFX_SPIM
config NRFX_SPIM01
bool "SPIM01 driver instance"
depends on $(dt_nodelabel_exists,spi01)
select NRFX_SPIM
config NRFX_SPIM20
bool "SPIM20 driver instance"
depends on $(dt_nodelabel_exists,spi20)
@ -655,6 +660,11 @@ config NRFX_SPIS00 @@ -655,6 +660,11 @@ config NRFX_SPIS00
depends on $(dt_nodelabel_exists,spi00)
select NRFX_SPIS
config NRFX_SPIS01
bool "SPIS01 driver instance"
depends on $(dt_nodelabel_exists,spi01)
select NRFX_SPIS
config NRFX_SPIS20
bool "SPIS20 driver instance"
depends on $(dt_nodelabel_exists,spi20)

6
modules/hal_nordic/nrfx/nrfx_kconfig.h

@ -503,6 +503,9 @@ @@ -503,6 +503,9 @@
#ifdef CONFIG_NRFX_SPIM00
#define NRFX_SPIM00_ENABLED 1
#endif
#ifdef CONFIG_NRFX_SPIM01
#define NRFX_SPIM01_ENABLED 1
#endif
#ifdef CONFIG_NRFX_SPIM20
#define NRFX_SPIM20_ENABLED 1
#endif
@ -573,6 +576,9 @@ @@ -573,6 +576,9 @@
#ifdef CONFIG_NRFX_SPIS00
#define NRFX_SPIS00_ENABLED 1
#endif
#ifdef CONFIG_NRFX_SPIS01
#define NRFX_SPIS01_ENABLED 1
#endif
#ifdef CONFIG_NRFX_SPIS20
#define NRFX_SPIS20_ENABLED 1
#endif

6
soc/nordic/common/Kconfig.peripherals

@ -271,6 +271,9 @@ config HAS_HW_NRF_SPIM4 @@ -271,6 +271,9 @@ config HAS_HW_NRF_SPIM4
config HAS_HW_NRF_SPIM00
def_bool $(dt_nodelabel_enabled_with_compat,spi00,$(DT_COMPAT_NORDIC_NRF_SPIM))
config HAS_HW_NRF_SPIM01
def_bool $(dt_nodelabel_enabled_with_compat,spi01,$(DT_COMPAT_NORDIC_NRF_SPIM))
config HAS_HW_NRF_SPIM20
def_bool $(dt_nodelabel_enabled_with_compat,spi20,$(DT_COMPAT_NORDIC_NRF_SPIM))
@ -334,6 +337,9 @@ config HAS_HW_NRF_SPIS3 @@ -334,6 +337,9 @@ config HAS_HW_NRF_SPIS3
config HAS_HW_NRF_SPIS00
def_bool $(dt_nodelabel_enabled_with_compat,spi00,$(DT_COMPAT_NORDIC_NRF_SPIS))
config HAS_HW_NRF_SPIS01
def_bool $(dt_nodelabel_enabled_with_compat,spi01,$(DT_COMPAT_NORDIC_NRF_SPIS))
config HAS_HW_NRF_SPIS20
def_bool $(dt_nodelabel_enabled_with_compat,spi20,$(DT_COMPAT_NORDIC_NRF_SPIS))

1
soc/nordic/validate_base_addresses.c

@ -265,6 +265,7 @@ CHECK_SPI_REG(spi2, 2); @@ -265,6 +265,7 @@ CHECK_SPI_REG(spi2, 2);
CHECK_DT_REG(spi3, NRF_SPIM3);
CHECK_DT_REG(spi4, NRF_SPIM4);
CHECK_DT_REG(spi00, NRF_SPIM00);
CHECK_DT_REG(spi01, NRF_SPIM01);
CHECK_DT_REG(spi20, NRF_SPIM20);
CHECK_DT_REG(spi21, NRF_SPIM21);
CHECK_DT_REG(spi22, NRF_SPIM22);

Loading…
Cancel
Save