Skip to content

Commit fac71cb

Browse files
committed
boards: st: nucleo_n657x0_q: Add ethernet node
Add ethernet node Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent 53395f5 commit fac71cb

File tree

3 files changed

+42
-0
lines changed

3 files changed

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

boards/st/nucleo_n657x0_q/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ The Zephyr ``nucleo_n657x0_q`` board supports the following hardware features:
8282
| UART | on-chip | serial port-polling; |
8383
| | | serial port-interrupt |
8484
+-----------+------------+-------------------------------------+
85+
| ETHERNET | on-chip | ethernet |
86+
+-----------+------------+-------------------------------------+
8587

8688

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

boards/st/nucleo_n657x0_q/nucleo_n657x0_q_common.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,28 @@
166166
current-speed = <115200>;
167167
status = "okay";
168168
};
169+
170+
&mac {
171+
status = "okay";
172+
pinctrl-0 = <&eth1_rmii_ref_clk_pf7
173+
&eth1_rmii_crs_dv_pf10
174+
&eth1_rmii_rxd0_pf14
175+
&eth1_rmii_rxd1_pf15
176+
&eth1_rmii_tx_en_pf11
177+
&eth1_rmii_txd0_pf12
178+
&eth1_rmii_txd1_pf13>;
179+
pinctrl-names = "default";
180+
phy-connection-type = "rmii";
181+
};
182+
183+
&mdio {
184+
status = "okay";
185+
pinctrl-0 = <&eth1_mdio_pf4 &eth1_mdc_pg11>;
186+
pinctrl-names = "default";
187+
188+
ethernet-phy@0 {
189+
compatible = "ethernet-phy";
190+
reg = <0x0>;
191+
status = "okay";
192+
};
193+
};

0 commit comments

Comments
 (0)