boards: cc1352r1_launchxl: enable support for SPI

Enable support for the SPI peripheral on the CC1352R LaunchPad.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
This commit is contained in:
Brett Witherspoon 2019-04-26 09:18:08 -05:00 committed by Anas Nashif
commit d82febd2a3
4 changed files with 19 additions and 0 deletions

View file

@ -9,4 +9,11 @@ if BOARD_CC1352R1_LAUNCHXL
config BOARD config BOARD
default "cc1352r1_launchxl" default "cc1352r1_launchxl"
if SPI
config SPI_0
default y
endif # SPI
endif # BOARD_CC1352R1_LAUNCHXL endif # BOARD_CC1352R1_LAUNCHXL

View file

@ -73,3 +73,12 @@
scl-pin = <4>; scl-pin = <4>;
sda-pin = <5>; sda-pin = <5>;
}; };
&spi0 {
status = "ok";
sck-pin = <10>;
mosi-pin = <9>;
miso-pin = <8>;
cs-pin = <11>;
cs-gpios = <&gpio0 11 0>;
};

View file

@ -11,3 +11,4 @@ toolchain:
supported: supported:
- gpio - gpio
- i2c - i2c
- spi

View file

@ -50,6 +50,8 @@ features:
+-----------+------------+----------------------+ +-----------+------------+----------------------+
| I2C | on-chip | i2c | | I2C | on-chip | i2c |
+-----------+------------+----------------------+ +-----------+------------+----------------------+
| SPI | on-chip | spi |
+-----------+------------+----------------------+
Other hardware features are not supported by the Zephyr kernel. Other hardware features are not supported by the Zephyr kernel.