Commit 2a490fd0 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Kumar Gala
Browse files

boards: Set nucleo_f429zi compatible with configuration guidelines



According to Default Configuration Guidelines, update nucleo_f429zi
- Add SPI_1, pinmux compatible with arduino spi
- Change PWM from PA0 to PE13 (Arduino D3)
- Disable I2C by default
- Update board dts with arduino connectors
- update board yaml file
- update board documentation

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent deb0941c
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -27,6 +27,13 @@ config ETH_STM32_HAL

endif # NETWORKING

if SERIAL

config UART_STM32_PORT_6
	default y

endif # SERIAL

if I2C

config I2C_1
@@ -34,4 +41,18 @@ config I2C_1

endif # I2C

if SPI

config SPI_1
	def_bool y

endif # SPI

if PWM

config PWM_STM32_1
	def_bool y

endif # PWM

endif # BOARD_NUCLEO_F429ZI
+11 −6
Original line number Diff line number Diff line
@@ -99,7 +99,8 @@ The Zephyr nucleo_f249zi board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c                                 |
+-----------+------------+-------------------------------------+

| SPI       | on-chip    | spi                                 |
+-----------+------------+-------------------------------------+

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

@@ -141,11 +142,15 @@ For mode details please refer to `STM32 Nucleo-144 board User Manual`_.
Default Zephyr Peripheral Mapping:
----------------------------------

- UART_3_TX : PD8
- UART_3_RX : PD9
- PWM_2_CH1 : PA0
- I2C1_SCL : PB8
- I2C1_SDA : PB9
The Nucleo F429ZI board features a ST Zio connector (extended Arduino Uno V3)
and a ST morpho connector. Board is configured as follows

- UART_3 TX/RX : PD8/PD9 (ST-Link Virtual Port Com)
- UART_6 TX/RX : PG14/PG9 (Arduino Serial)
- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
- SPI1 NSS/SCK/MISO/MOSI : PA4/PA5/PA6/PA7 (Arduino SPI)
- PWM_2_CH1 : PE13
- ETH : PA1, PA2, PA7, PB13, PC1, PC4, PC5, PG11, PG13
- USER_PB : PC13
- LD1 : PB0
- LD2 : PB7
+15 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
		zephyr,console = &usart3;
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
		zephyr,ccm = &ccm0;
	};

	leds {
@@ -49,17 +50,31 @@
	};
};

arduino_i2c: &i2c1 {};
arduino_spi: &spi1 {};
arduino_serial: &usart6 {};

&i2c1 {
	status = "ok";
	clock-frequency = <I2C_BITRATE_FAST>;
};

&spi1 {
	status = "ok";
};

&usart3 {
	current-speed = <115200>;
	pinctrl-0 = <&usart3_pins_b>;
	pinctrl-names = "default";
	status = "ok";
};
&usart6 {
	current-speed = <115200>;
	pinctrl-0 = <&usart6_pins_a>;
	pinctrl-names = "default";
	status = "ok";
};

&timers2 {
	status = "ok";
+6 −0
Original line number Diff line number Diff line
@@ -5,5 +5,11 @@ arch: arm
toolchain:
  - zephyr
  - gccarmemb
ram: 256
flash: 2048
supported:
  - netif:eth
  - i2c
  - spi
  - gpio
  - pwm
+0 −4
Original line number Diff line number Diff line
CONFIG_ARM=y
CONFIG_BOARD_NUCLEO_F429ZI=y
CONFIG_SOC_SERIES_STM32F4X=y
CONFIG_SOC_STM32F429XI=y
# 180MHz system clock
@@ -21,9 +20,6 @@ CONFIG_PINMUX=y
# enable GPIO
CONFIG_GPIO=y

# enable I2C
CONFIG_I2C=y

# clock configuration
CONFIG_CLOCK_CONTROL=y

Loading