Skip to content

Commit

Permalink
boards/arm: Nucleo_F207zg: Enabling SPI support in device tree
Browse files Browse the repository at this point in the history
Enabling SPI support for Nucleo-F207zg in device tree.
This has been tested with test_spi_loopback on SPI-1.
Documentation has been updated.

Signed-off-by: Krishna Mohan Dani <[email protected]>
  • Loading branch information
ikmdani authored and nashif committed Mar 26, 2021
1 parent 3388efd commit 3a6baa3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/arm/nucleo_f207zg/arduino_r3_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@
};
};

arduino_spi: &spi1 {};
arduino_serial: &usart6 {};
3 changes: 3 additions & 0 deletions boards/arm/nucleo_f207zg/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ The Zephyr nucleo_207zg board configuration supports the following hardware feat
+-------------+------------+-------------------------------------+
| USB | on-chip | USB device |
+-------------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-------------+------------+-------------------------------------+
| WATCHDOG | on-chip | independent watchdog |
+-------------+------------+-------------------------------------+
| ADC | on-chip | ADC Controller |
Expand Down Expand Up @@ -139,6 +141,7 @@ Default Zephyr Peripheral Mapping:

- UART_3 TX/RX : PD8/PD9 (ST-Link Virtual Port Com)
- UART_6 TX/RX : PG14/PG9 (Arduino Serial)
- SPI1 NSS/SCK/MISO/MOSI : PA4/PA5/PA6/PA7 (Arduino SPI)
- ETH : PA1, PA2, PA7, PB13, PC1, PC4, PC5, PG11, PG13
- USB_DM : PA11
- USB_DP : PA12
Expand Down
6 changes: 6 additions & 0 deletions boards/arm/nucleo_f207zg/nucleo_f207zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
};
};

&spi1 {
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5
&spi1_miso_pa6 &spi1_mosi_pa7>;
status = "okay";
};

&usart3 {
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
current-speed = <115200>;
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/nucleo_f207zg/nucleo_f207zg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ toolchain:
- xtools
supported:
- arduino_gpio
- arduino_spi
- spi
- gpio
- usb_device
- watchdog
Expand Down

0 comments on commit 3a6baa3

Please sign in to comment.