zephyr/drivers/spi
Martí Bolívar 87e1743ae0 devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH
Make drivers multi-instance wherever possible using DT_INST_FOREACH.
This allows removing DT_HAS_DRV_INST in favor of making drivers just
do the right thing regardless of how many instances there are.

There are a few exceptions:

- SoC drivers which use CMake input files (like i2c_dw.c) or otherwise
  would require more time to convert than I have at the moment. For the
  sake of expediency, just inline the DT_HAS_DRV_INST expansion for
  now in these cases.

- SoC drivers which are explicitly single-instance (like the nRF SAADC
  driver). Again for the sake of expediency, drop a BUILD_ASSERT in
  those cases to make sure the assumption that all supported SoCs have
  at most one available instance is valid, failing fast otherwise.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-06 17:35:08 -05:00
..
CMakeLists.txt
Kconfig
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.gecko
Kconfig.litex
Kconfig.mcux_dspi
Kconfig.mcux_flexcomm
Kconfig.mcux_lpspi
Kconfig.nrfx
Kconfig.oc_simple
Kconfig.rv32m1_lpspi
Kconfig.sam drivers: spi: spi_sam: rework device tree support 2020-04-25 09:29:54 -05:00
Kconfig.sam0
Kconfig.sifive
Kconfig.stm32 drivers: spi: Enable dma transfer for SPI on stm32 2020-05-04 09:46:07 -05:00
Kconfig.xec_qmspi
spi_cc13xx_cc26xx.c soc: arm: replace DT_CPU_CLOCK_FREQUENCY with new dt macros 2020-04-23 23:55:37 -05:00
spi_context.h
spi_dw_regs.h
spi_dw.c
spi_dw.h
spi_gecko.c
spi_handlers.c
spi_litespi.c
spi_litespi.h
spi_ll_stm32.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
spi_ll_stm32.h drivers: spi: Enable dma transfer for SPI on stm32 2020-05-04 09:46:07 -05:00
spi_mcux_dspi.c
spi_mcux_flexcomm.c
spi_mcux_lpspi.c
spi_nrfx_spi.c
spi_nrfx_spim.c
spi_nrfx_spis.c
spi_oc_simple.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
spi_oc_simple.h
spi_rv32m1_lpspi.c
spi_sam.c drivers: spi: spi_sam: rework device tree support 2020-04-25 09:29:54 -05:00
spi_sam0.c drivers: spi: spi_sam0: fix spi_sam0_fast_txrx() 2020-05-05 09:58:29 -05:00
spi_sifive.c drivers: spi: sifive: Fix bug with checking if tx fifo is full 2020-04-23 17:28:48 +02:00
spi_sifive.h
spi_xec_qmspi.c dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00