Skip to content

Commit eb5f992

Browse files
FRASTMcfriedt
authored andcommitted
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 <[email protected]>
1 parent 33e0f1a commit eb5f992

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

boards/arm/b_u585i_iot02a/Kconfig.defconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ if BOARD_B_U585I_IOT02A
88
config BOARD
99
default "b_u585i_iot02a"
1010

11+
config SPI_STM32_INTERRUPT
12+
default y
13+
depends on SPI
14+
1115
endif # BOARD_B_U585I_IOT02A

boards/arm/b_u585i_iot02a/arduino_r3_connector.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@
3434
<21 0 &gpiob 8 0>; /* D15 */
3535
};
3636
};
37+
38+
arduino_spi: &spi1 {};

boards/arm/b_u585i_iot02a/b_u585i_iot02a.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@
3030
current-speed = <115200>;
3131
status = "okay";
3232
};
33+
34+
&spi1 {
35+
pinctrl-0 = <&spi1_nss_pe12 &spi1_sck_pe13
36+
&spi1_miso_pe14 &spi1_mosi_pe15>;
37+
status = "okay";
38+
};

boards/arm/b_u585i_iot02a/b_u585i_iot02a.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ toolchain:
88
- xtools
99
ram: 786
1010
flash: 2048
11+
supported:
12+
- arduino_spi
13+
- spi

boards/arm/b_u585i_iot02a/doc/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ The Zephyr b_u585i_iot02a board configuration supports the following hardware fe
175175
+-----------+------------+-------------------------------------+
176176
| GPIO | on-chip | gpio |
177177
+-----------+------------+-------------------------------------+
178+
| SPI | on-chip | spi |
179+
+-----------+------------+-------------------------------------+
178180

179181

180182
The default configuration can be found in the defconfig file:
@@ -197,6 +199,7 @@ Default Zephyr Peripheral Mapping:
197199
- LD1 : PH7
198200
- LD2 : PH6
199201
- user button : PC13
202+
- SPI1 NSS/SCK/MISO/MOSI : PE12/P13/P14/P15 (Arduino SPI)
200203

201204
System Clock
202205
------------

0 commit comments

Comments
 (0)