Skip to content

Commit 5233d23

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 8c973a2 commit 5233d23

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-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/nucleo_n657x0_q_common.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,28 @@
174174
current-speed = <115200>;
175175
status = "okay";
176176
};
177+
178+
&mac {
179+
status = "okay";
180+
pinctrl-0 = <&eth1_rmii_ref_clk_pf7
181+
&eth1_rmii_crs_dv_pf10
182+
&eth1_rmii_rxd0_pf14
183+
&eth1_rmii_rxd1_pf15
184+
&eth1_rmii_tx_en_pf11
185+
&eth1_rmii_txd0_pf12
186+
&eth1_rmii_txd1_pf13>;
187+
pinctrl-names = "default";
188+
phy-connection-type = "rmii";
189+
};
190+
191+
&mdio {
192+
status = "okay";
193+
pinctrl-0 = <&eth1_mdio_pf4 &eth1_mdc_pg11>;
194+
pinctrl-names = "default";
195+
196+
ethernet-phy@0 {
197+
compatible = "ethernet-phy";
198+
reg = <0x0>;
199+
status = "okay";
200+
};
201+
};

0 commit comments

Comments
 (0)