boards: arm: nucleo_g474re: fix Arduino SPI support

Fix Arduino SPI support for nucleo_g474re.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
Alexandre Bourdiol 2021-06-10 11:16:09 +02:00 committed by Anas Nashif
commit cab576fb82
2 changed files with 5 additions and 3 deletions

View file

@ -123,6 +123,8 @@ The Zephyr nucleo_g474re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| COUNTER | on-chip | rtc | | COUNTER | on-chip | rtc |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port. Other hardware features are not yet supported on this Zephyr port.
@ -150,7 +152,7 @@ Default Zephyr Peripheral Mapping:
- I2C_1_SCL : PB8 - I2C_1_SCL : PB8
- I2C_1_SDA : PB9 - I2C_1_SDA : PB9
- SPI_1_NSS : PB6 - SPI_1_NSS : PB6
- SPI_1_SCK : PB3 - SPI_1_SCK : PA5
- SPI_1_MISO : PA6 - SPI_1_MISO : PA6
- SPI_1_MOSI : PA7 - SPI_1_MOSI : PA7
- SPI_2_NSS : PB12 - SPI_2_NSS : PB12

View file

@ -93,8 +93,8 @@
}; };
&spi1 { &spi1 {
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pb3 pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>;
&spi1_miso_pa6 &spi1_mosi_pa7>; cs-gpios = <&gpiob 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "okay"; status = "okay";
}; };