Skip to content

Commit d87dec4

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 fac71cb commit d87dec4

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-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
@@ -86,6 +86,8 @@ The Zephyr ``stm32n6570_dk`` board supports the following hardware features:
8686
| UART | on-chip | serial port-polling; |
8787
| | | serial port-interrupt |
8888
+-----------+------------+-------------------------------------+
89+
| ETHERNET | on-chip | ethernet |
90+
+-----------+------------+-------------------------------------+
8991

9092

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

boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,35 @@
148148
current-speed = <115200>;
149149
status = "okay";
150150
};
151+
152+
&mac {
153+
status = "okay";
154+
pinctrl-0 = <&eth1_rgmii_gtx_clk_pf0
155+
&eth1_rgmii_clk125_pf2
156+
&eth1_rgmii_rx_clk_pf7
157+
&eth1_rgmii_rxd2_pf8
158+
&eth1_rgmii_rxd3_pf9
159+
&eth1_rgmii_rx_ctl_pf10
160+
&eth1_rgmii_tx_ctl_pf11
161+
&eth1_rgmii_txd1_pf13
162+
&eth1_rgmii_txd0_pf12
163+
&eth1_rgmii_rxd0_pf14
164+
&eth1_rgmii_rxd1_pf15
165+
&eth1_rgmii_txd2_pg3
166+
&eth1_rgmii_txd3_pg4
167+
&eth1_phy_intn_pd3>;
168+
pinctrl-names = "default";
169+
phy-connection-type = "rgmii";
170+
};
171+
172+
&mdio {
173+
status = "okay";
174+
pinctrl-0 = <&eth1_mdio_pd12 &eth1_mdc_pd1>;
175+
pinctrl-names = "default";
176+
177+
ethernet-phy@0 {
178+
compatible = "ethernet-phy";
179+
reg = <0x0>;
180+
status = "okay";
181+
};
182+
};

0 commit comments

Comments
 (0)