Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Ethernet drivers for stm32 h573i dk #60152

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions boards/arm/stm32h573i_dk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ if BOARD_STM32H573I_DK
config BOARD
default "stm32h573i_dk"

if NETWORKING

config NET_L2_ETHERNET
default y

endif # NETWORKING

endif # BOARD_STM32H573I_DK
16 changes: 15 additions & 1 deletion boards/arm/stm32h573i_dk/stm32h573i_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
chosen {
zephyr,console = &usart1;
zephyr,shell-uart = &usart1;
zephyr,sram = &sram0;
zephyr,sram = &sram1;
Desvauxm-st marked this conversation as resolved.
Show resolved Hide resolved
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,canbus = &can1;
Expand Down Expand Up @@ -131,6 +131,20 @@
status = "okay";
};

&mac {
status = "okay";
pinctrl-0 = <&eth_mdc_pc1
&eth_rxd0_pc4
&eth_rxd1_pc5
&eth_ref_clk_pa1
&eth_mdio_pa2
&eth_crs_dv_pa7
&eth_tx_en_pg11
&eth_txd0_pg13
&eth_txd1_pg12>;
pinctrl-names = "default";
};

&flash0 {
partitions {
compatible = "fixed-partitions";
Expand Down
18 changes: 16 additions & 2 deletions dts/arm/st/h5/stm32h573Xi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@
#include <st/h5/stm32h573.dtsi>

/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(640)>;
sram1: memory@20000000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x20000000 DT_SIZE_K(256)>;
zephyr,memory-region = "SRAM1";
};

sram2: memory@20040000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x20040000 DT_SIZE_K(64)>;
zephyr,memory-region = "SRAM2";
};

sram3: memory@20050000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x20050000 DT_SIZE_K(320)>;
zephyr,memory-region = "SRAM3";
};

soc {
Expand Down