boards: b_u585i_iot02a: Enable spi1 on board

The spi1 is present on the Arduino connector CN13
on pins D13, 12, 11, 10.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-10-04 15:57:59 +02:00 committed by Christopher Friedt
commit eb5f992049
5 changed files with 18 additions and 0 deletions

View file

@ -8,4 +8,8 @@ if BOARD_B_U585I_IOT02A
config BOARD
default "b_u585i_iot02a"
config SPI_STM32_INTERRUPT
default y
depends on SPI
endif # BOARD_B_U585I_IOT02A

View file

@ -34,3 +34,5 @@
<21 0 &gpiob 8 0>; /* D15 */
};
};
arduino_spi: &spi1 {};

View file

@ -30,3 +30,9 @@
current-speed = <115200>;
status = "okay";
};
&spi1 {
pinctrl-0 = <&spi1_nss_pe12 &spi1_sck_pe13
&spi1_miso_pe14 &spi1_mosi_pe15>;
status = "okay";
};

View file

@ -8,3 +8,6 @@ toolchain:
- xtools
ram: 786
flash: 2048
supported:
- arduino_spi
- spi

View file

@ -175,6 +175,8 @@ The Zephyr b_u585i_iot02a board configuration supports the following hardware fe
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig file:
@ -197,6 +199,7 @@ Default Zephyr Peripheral Mapping:
- LD1 : PH7
- LD2 : PH6
- user button : PC13
- SPI1 NSS/SCK/MISO/MOSI : PE12/P13/P14/P15 (Arduino SPI)
System Clock
------------