Skip to content

Commit 538753d

Browse files
mniestrojnashif
authored andcommitted
boards: st: nucleo_h533re: configure SPI on Arduino headers
This allows to use the board right away with samples and shields depending on Arduino SPI. Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 50509c3 commit 538753d

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

boards/st/nucleo_h533re/arduino_r3_connector.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@
3636
};
3737

3838
arduino_serial: &usart1 {};
39+
arduino_spi: &spi1 {};

boards/st/nucleo_h533re/doc/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ The Zephyr nucleo_h533re board configuration supports the following hardware fea
169169
+-----------+------------+-------------------------------------+
170170
| USB | on-chip | USB full-speed host/device bus |
171171
+-----------+------------+-------------------------------------+
172+
| SPI | on-chip | spi |
173+
+-----------+------------+-------------------------------------+
172174

173175
Other hardware features are not yet supported on this Zephyr port.
174176

@@ -206,7 +208,7 @@ Default Zephyr Peripheral Mapping:
206208

207209
- ADC1 channel 0 input: PA0
208210
- USART1 TX/RX : PB14/PB15 (Arduino USART1)
209-
- SPI1 SCK/MISO/MOSI/NSS: PA5/PA6/PA7/PA4
211+
- SPI1 SCK/MISO/MOSI/NSS: PA5/PA6/PA7/PC9
210212
- UART2 TX/RX : PA2/PA3 (VCP)
211213
- USER_PB : PC13
212214

boards/st/nucleo_h533re/nucleo_h533re.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@
105105
status = "okay";
106106
};
107107

108+
&spi1 {
109+
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>;
110+
pinctrl-names = "default";
111+
cs-gpios = <&gpioc 9 GPIO_ACTIVE_LOW>;
112+
status = "okay";
113+
};
114+
108115
&iwdg {
109116
status = "okay";
110117
};

boards/st/nucleo_h533re/nucleo_h533re.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ flash: 512
1212
supported:
1313
- arduino_gpio
1414
- arduino_serial
15+
- arduino_spi
1516
- gpio
17+
- spi
1618
- watchdog
1719
- pwm
1820
- rtc

0 commit comments

Comments
 (0)