Skip to content

Commit c1914c8

Browse files
committed
boards: st: stm32n6570_dk: Add ethernet node
Add ethernet node Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent de2018f commit c1914c8

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# STM32N6570 DISCOVERY board configuration
2+
3+
# Copyright (c) 2025 STMicroelectronics
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if BOARD_STM32N6570_DK
7+
8+
if NETWORKING
9+
10+
config NET_L2_ETHERNET
11+
default y
12+
13+
endif # NETWORKING
14+
15+
endif # BOARD_STM32N6570_DK

boards/st/stm32n6570_dk/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ The Zephyr ``stm32n6570_dk`` board supports the following hardware features:
8080
| UART | on-chip | serial port-polling; |
8181
| | | serial port-interrupt |
8282
+-----------+------------+-------------------------------------+
83+
| ETHERNET | on-chip | ethernet |
84+
+-----------+------------+-------------------------------------+
8385

8486

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

boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,34 @@
102102
current-speed = <115200>;
103103
status = "okay";
104104
};
105+
106+
&mac {
107+
status = "okay";
108+
pinctrl-0 = <&eth1_rgmii_gtx_clk_pf0
109+
&eth1_rgmii_clk125_pf2
110+
&eth1_rgmii_rx_clk_pf7
111+
&eth1_rgmii_rxd2_pf8
112+
&eth1_rgmii_rxd3_pf9
113+
&eth1_rgmii_rx_ctl_pf10
114+
&eth1_rgmii_tx_ctl_pf11
115+
&eth1_rgmii_txd1_pf13
116+
&eth1_rgmii_txd0_pf12
117+
&eth1_rgmii_rxd0_pf14
118+
&eth1_rgmii_rxd1_pf15
119+
&eth1_rgmii_txd2_pg3
120+
&eth1_rgmii_txd3_pg4
121+
&eth1_phy_intn_pd3>;
122+
pinctrl-names = "default";
123+
};
124+
125+
&mdio {
126+
status = "okay";
127+
pinctrl-0 = <&eth1_mdio_pd12 &eth1_mdc_pd1>;
128+
pinctrl-names = "default";
129+
130+
ethernet-phy@0 {
131+
compatible = "ethernet-phy";
132+
reg = <0x0>;
133+
status = "okay";
134+
};
135+
};

boards/st/stm32n6570_dk/stm32n6570_dk_defconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ CONFIG_HW_STACK_PROTECTION=y
1919

2020
# No internal Flash
2121
CONFIG_XIP=n
22+
23+
# Enable RGMII mode for the STM32 Ethernet HAL driver
24+
CONFIG_ETH_STM32_HAL_RGMII=y
25+
26+
# Set the Ethernet speed to 1000 Mbps (1 Gbps) for STM32
27+
CONFIG_ETH_STM32_SPEED_1000M=y

0 commit comments

Comments
 (0)