drivers: boards: Merge HAS_DTS_SPI_PINS with HAS_DTS_SPI
Every board that uses dts-enabled spi drivers has a board-level dts, so there is no need to have separate configs HAS_DTS_SPI_PINS and HAS_DTS_SPI. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
eeb4411de7
commit
ad32e3b543
9 changed files with 5 additions and 28 deletions
|
@ -8,4 +8,3 @@
|
||||||
config BOARD_96B_CARBON
|
config BOARD_96B_CARBON
|
||||||
bool "96Boards Carbon (STM32F401)"
|
bool "96Boards Carbon (STM32F401)"
|
||||||
depends on SOC_STM32F401XE
|
depends on SOC_STM32F401XE
|
||||||
select HAS_DTS_SPI_PINS
|
|
||||||
|
|
|
@ -8,4 +8,3 @@
|
||||||
config BOARD_DISCO_L475_IOT1
|
config BOARD_DISCO_L475_IOT1
|
||||||
bool "Discovery IoT L475 Development Board"
|
bool "Discovery IoT L475 Development Board"
|
||||||
depends on SOC_STM32L475XG
|
depends on SOC_STM32L475XG
|
||||||
select HAS_DTS_SPI_PINS
|
|
||||||
|
|
|
@ -3,4 +3,3 @@ config BOARD_FRDM_K64F
|
||||||
bool "Freescale FRDM-K64F"
|
bool "Freescale FRDM-K64F"
|
||||||
depends on SOC_SERIES_KINETIS_K6X
|
depends on SOC_SERIES_KINETIS_K6X
|
||||||
select SOC_PART_NUMBER_MK64FN1M0VLL12
|
select SOC_PART_NUMBER_MK64FN1M0VLL12
|
||||||
select HAS_DTS_SPI_PINS
|
|
||||||
|
|
|
@ -9,4 +9,3 @@ config BOARD_USB_KW24D512
|
||||||
bool "NXP USB-KW24D512"
|
bool "NXP USB-KW24D512"
|
||||||
depends on SOC_SERIES_KINETIS_KWX
|
depends on SOC_SERIES_KINETIS_KWX
|
||||||
select SOC_PART_NUMBER_MKW24D512VHA5
|
select SOC_PART_NUMBER_MKW24D512VHA5
|
||||||
select HAS_DTS_SPI_PINS
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ config BT_SPI_BLUENRG
|
||||||
Enable support for devices compatible with the BlueNRG Bluetooth
|
Enable support for devices compatible with the BlueNRG Bluetooth
|
||||||
Stack. Current driver supports: ST BLUENRG-MS.
|
Stack. Current driver supports: ST BLUENRG-MS.
|
||||||
|
|
||||||
if !HAS_DTS_SPI_PINS
|
if !HAS_DTS_SPI
|
||||||
|
|
||||||
config BT_SPI_CHIP_SELECT_DEV_NAME
|
config BT_SPI_CHIP_SELECT_DEV_NAME
|
||||||
string "Chip Select (CS) line driver name"
|
string "Chip Select (CS) line driver name"
|
||||||
|
@ -135,7 +135,7 @@ config BT_SPI_RESET_PIN
|
||||||
help
|
help
|
||||||
This option specifies the Reset line number on the SPI device
|
This option specifies the Reset line number on the SPI device
|
||||||
|
|
||||||
endif # !HAS_DTS_SPI_PINS
|
endif # !HAS_DTS_SPI
|
||||||
|
|
||||||
config BT_SPI_MAX_CLK_FREQ
|
config BT_SPI_MAX_CLK_FREQ
|
||||||
int "Maximum clock frequency for the HCI SPI interface"
|
int "Maximum clock frequency for the HCI SPI interface"
|
||||||
|
|
|
@ -42,16 +42,12 @@ config IEEE802154_MCR20A_SPI_SLAVE
|
||||||
This option sets the SPI slave number SPI controller has to switch
|
This option sets the SPI slave number SPI controller has to switch
|
||||||
to when dealing with MCR20A chip.
|
to when dealing with MCR20A chip.
|
||||||
|
|
||||||
endif # !HAS_DTS_SPI
|
|
||||||
|
|
||||||
config IEEE802154_MCR20A_GPIO_SPI_CS
|
config IEEE802154_MCR20A_GPIO_SPI_CS
|
||||||
bool "Manage SPI CS through a GPIO pin"
|
bool "Manage SPI CS through a GPIO pin"
|
||||||
help
|
help
|
||||||
This option is useful if one needs to manage SPI CS through a GPIO
|
This option is useful if one needs to manage SPI CS through a GPIO
|
||||||
pin to by-pass the SPI controller's CS logic.
|
pin to by-pass the SPI controller's CS logic.
|
||||||
|
|
||||||
if !HAS_DTS_SPI_PINS
|
|
||||||
|
|
||||||
config IEEE802154_MCR20A_GPIO_SPI_CS_DRV_NAME
|
config IEEE802154_MCR20A_GPIO_SPI_CS_DRV_NAME
|
||||||
string "GPIO driver's name to use to drive SPI CS through"
|
string "GPIO driver's name to use to drive SPI CS through"
|
||||||
depends on IEEE802154_MCR20A_GPIO_SPI_CS
|
depends on IEEE802154_MCR20A_GPIO_SPI_CS
|
||||||
|
@ -67,7 +63,7 @@ config IEEE802154_MCR20A_GPIO_SPI_CS_PIN
|
||||||
This option is mandatory to set which GPIO pin to use in order
|
This option is mandatory to set which GPIO pin to use in order
|
||||||
to actually emulate the SPI CS.
|
to actually emulate the SPI CS.
|
||||||
|
|
||||||
endif # !HAS_DTS_SPI_PINS
|
endif # !HAS_DTS_SPI
|
||||||
|
|
||||||
if !HAS_DTS_GPIO
|
if !HAS_DTS_GPIO
|
||||||
|
|
||||||
|
|
|
@ -93,10 +93,6 @@ config ADXL372_SPI_BUS_FREQ
|
||||||
This is the maximum supported SPI bus frequency. The chip supports a
|
This is the maximum supported SPI bus frequency. The chip supports a
|
||||||
frequency up to 10MHz.
|
frequency up to 10MHz.
|
||||||
|
|
||||||
endif # !HAS_DTS_SPI
|
|
||||||
|
|
||||||
if !HAS_DTS_SPI_PINS
|
|
||||||
|
|
||||||
config ADXL372_SPI_GPIO_CS_DRV_NAME
|
config ADXL372_SPI_GPIO_CS_DRV_NAME
|
||||||
string "GPIO driver's name to use to drive SPI CS through"
|
string "GPIO driver's name to use to drive SPI CS through"
|
||||||
default "GPIO_0"
|
default "GPIO_0"
|
||||||
|
@ -113,7 +109,7 @@ config ADXL372_SPI_GPIO_CS_PIN
|
||||||
This option is mandatory to set which GPIO pin to use in order
|
This option is mandatory to set which GPIO pin to use in order
|
||||||
to actually emulate the SPI CS.
|
to actually emulate the SPI CS.
|
||||||
|
|
||||||
endif # !HAS_DTS_SPI_PINS
|
endif # !HAS_DTS_SPI
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Operating mode"
|
prompt "Operating mode"
|
||||||
|
|
|
@ -83,8 +83,6 @@ config LSM6DSL_SPI_MASTER_DEV_NAME
|
||||||
Specify the device name of the spi master device to which LSM6DSL is
|
Specify the device name of the spi master device to which LSM6DSL is
|
||||||
connected.
|
connected.
|
||||||
|
|
||||||
endif #HAS_DTS_SPI
|
|
||||||
|
|
||||||
config LSM6DSL_SPI_GPIO_CS
|
config LSM6DSL_SPI_GPIO_CS
|
||||||
bool "LSM6DSL SPI CS through a GPIO pin"
|
bool "LSM6DSL SPI CS through a GPIO pin"
|
||||||
depends on LSM6DSL_SPI
|
depends on LSM6DSL_SPI
|
||||||
|
@ -92,8 +90,6 @@ config LSM6DSL_SPI_GPIO_CS
|
||||||
This option is useful if one needs to manage SPI CS through a GPIO
|
This option is useful if one needs to manage SPI CS through a GPIO
|
||||||
pin to by-pass the SPI controller's CS logic.
|
pin to by-pass the SPI controller's CS logic.
|
||||||
|
|
||||||
if !HAS_DTS_SPI_PINS
|
|
||||||
|
|
||||||
config LSM6DSL_SPI_GPIO_CS_DRV_NAME
|
config LSM6DSL_SPI_GPIO_CS_DRV_NAME
|
||||||
string "GPIO driver's name to use to drive SPI CS through"
|
string "GPIO driver's name to use to drive SPI CS through"
|
||||||
default ""
|
default ""
|
||||||
|
@ -110,7 +106,7 @@ config LSM6DSL_SPI_GPIO_CS_PIN
|
||||||
This option is mandatory to set which GPIO pin to use in order
|
This option is mandatory to set which GPIO pin to use in order
|
||||||
to actually emulate the SPI CS.
|
to actually emulate the SPI CS.
|
||||||
|
|
||||||
endif # !HAS_DTS_SPI_PINS
|
endif # !HAS_DTS_SPI
|
||||||
|
|
||||||
choice LSM6DSL_TRIGGER_MODE
|
choice LSM6DSL_TRIGGER_MODE
|
||||||
prompt "Trigger mode"
|
prompt "Trigger mode"
|
||||||
|
|
|
@ -32,13 +32,6 @@ config HAS_DTS_SPI
|
||||||
This option specifies that the target platform supports device tree
|
This option specifies that the target platform supports device tree
|
||||||
configuration for SPI.
|
configuration for SPI.
|
||||||
|
|
||||||
config HAS_DTS_SPI_PINS
|
|
||||||
bool
|
|
||||||
help
|
|
||||||
This option specifies that the target platform supports device tree
|
|
||||||
configuration for pin definition of spi devices, like sensors or
|
|
||||||
RF modules.
|
|
||||||
|
|
||||||
config HAS_DTS_USB
|
config HAS_DTS_USB
|
||||||
bool
|
bool
|
||||||
depends on HAS_DTS
|
depends on HAS_DTS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue