boards: 96b_argonkey: adapt to the board configuration guidelines
As per default board configuration guidelines, this commit updates 96Boards Argonkey board. Following changes are done: - Enable exposed SPI1 - Update yaml file - Only enable basic peripherals in board defconfig - Add exposed peripherals in board Kconfig Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
This commit is contained in:
parent
9a71c837ab
commit
11f3ddfc28
4 changed files with 19 additions and 17 deletions
|
@ -51,6 +51,10 @@
|
||||||
status = "ok";
|
status = "ok";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&spi1 {
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
|
||||||
&spi2 {
|
&spi2 {
|
||||||
status = "ok";
|
status = "ok";
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@ arch: arm
|
||||||
toolchain:
|
toolchain:
|
||||||
- zephyr
|
- zephyr
|
||||||
- gnuarmemb
|
- gnuarmemb
|
||||||
|
ram: 256
|
||||||
|
flash: 1024
|
||||||
supported:
|
supported:
|
||||||
- gpio
|
- gpio
|
||||||
- i2c
|
- i2c
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_BOARD_96B_ARGONKEY=y
|
|
||||||
CONFIG_SOC_SERIES_STM32F4X=y
|
CONFIG_SOC_SERIES_STM32F4X=y
|
||||||
CONFIG_SOC_STM32F412CG=y
|
CONFIG_SOC_STM32F412CG=y
|
||||||
CONFIG_CORTEX_M_SYSTICK=y
|
CONFIG_CORTEX_M_SYSTICK=y
|
||||||
|
@ -17,15 +16,6 @@ CONFIG_PINMUX=y
|
||||||
# enable GPIO
|
# enable GPIO
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
|
|
||||||
# enable I2C
|
|
||||||
CONFIG_I2C=y
|
|
||||||
|
|
||||||
# enable SPI
|
|
||||||
CONFIG_SPI=y
|
|
||||||
|
|
||||||
# enable LED
|
|
||||||
CONFIG_LED=y
|
|
||||||
|
|
||||||
# clock configuration
|
# clock configuration
|
||||||
CONFIG_CLOCK_CONTROL=y
|
CONFIG_CLOCK_CONTROL=y
|
||||||
|
|
||||||
|
|
|
@ -13,30 +13,36 @@ config BOARD
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_STM32_PORT_1
|
||||||
default y
|
def_bool y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if I2C
|
if I2C
|
||||||
|
|
||||||
config I2C_1
|
config I2C_1
|
||||||
default y
|
def_bool y
|
||||||
|
|
||||||
config I2C_2
|
config I2C_2
|
||||||
default y
|
def_bool y
|
||||||
|
|
||||||
config I2C_3
|
config I2C_3
|
||||||
default y
|
def_bool y
|
||||||
|
|
||||||
config I2C_STM32_INTERRUPT
|
config I2C_STM32_INTERRUPT
|
||||||
default y
|
def_bool y
|
||||||
|
|
||||||
endif # I2C
|
endif # I2C
|
||||||
|
|
||||||
if SPI
|
if SPI
|
||||||
|
|
||||||
|
config SPI_1
|
||||||
|
def_bool y
|
||||||
|
|
||||||
config SPI_2
|
config SPI_2
|
||||||
default y
|
def_bool y
|
||||||
|
|
||||||
|
config SPI_STM32_INTERRUPT
|
||||||
|
def_bool y
|
||||||
|
|
||||||
endif # SPI
|
endif # SPI
|
||||||
|
|
||||||
|
@ -51,7 +57,7 @@ choice LSM6DSL_TRIGGER_MODE
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LSM6DSL_SENSORHUB
|
config LSM6DSL_SENSORHUB
|
||||||
default y
|
def_bool y
|
||||||
|
|
||||||
choice LSM6DSL_EXTERNAL_SENSOR_0
|
choice LSM6DSL_EXTERNAL_SENSOR_0
|
||||||
default LSM6DSL_EXT0_LIS2MDL
|
default LSM6DSL_EXT0_LIS2MDL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue