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 <m.niestroj@emb.dev>
This commit is contained in:
Marcin Niestroj 2024-11-09 15:07:17 +01:00 committed by Anas Nashif
parent 50509c34cc
commit 538753d51b
4 changed files with 13 additions and 1 deletions

View file

@ -36,3 +36,4 @@
};
arduino_serial: &usart1 {};
arduino_spi: &spi1 {};

View file

@ -169,6 +169,8 @@ The Zephyr nucleo_h533re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| USB | on-chip | USB full-speed host/device bus |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.
@ -206,7 +208,7 @@ Default Zephyr Peripheral Mapping:
- ADC1 channel 0 input: PA0
- USART1 TX/RX : PB14/PB15 (Arduino USART1)
- SPI1 SCK/MISO/MOSI/NSS: PA5/PA6/PA7/PA4
- SPI1 SCK/MISO/MOSI/NSS: PA5/PA6/PA7/PC9
- UART2 TX/RX : PA2/PA3 (VCP)
- USER_PB : PC13

View file

@ -105,6 +105,13 @@
status = "okay";
};
&spi1 {
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>;
pinctrl-names = "default";
cs-gpios = <&gpioc 9 GPIO_ACTIVE_LOW>;
status = "okay";
};
&iwdg {
status = "okay";
};

View file

@ -12,7 +12,9 @@ flash: 512
supported:
- arduino_gpio
- arduino_serial
- arduino_spi
- gpio
- spi
- watchdog
- pwm
- rtc