File tree Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
8587Other hardware features are not yet supported on this Zephyr port.
Original file line number Diff line number Diff line change 102102 current-speed = <115200>;
103103 status = "okay";
104104};
105+
106+ &mac {
107+ status = "okay";
108+ pinctrl-0 = <ð1_rgmii_gtx_clk_pf0
109+ ð1_rgmii_clk125_pf2
110+ ð1_rgmii_rx_clk_pf7
111+ ð1_rgmii_rxd2_pf8
112+ ð1_rgmii_rxd3_pf9
113+ ð1_rgmii_rx_ctl_pf10
114+ ð1_rgmii_tx_ctl_pf11
115+ ð1_rgmii_txd1_pf13
116+ ð1_rgmii_txd0_pf12
117+ ð1_rgmii_rxd0_pf14
118+ ð1_rgmii_rxd1_pf15
119+ ð1_rgmii_txd2_pg3
120+ ð1_rgmii_txd3_pg4
121+ ð1_phy_intn_pd3>;
122+ pinctrl-names = "default";
123+ };
124+
125+ &mdio {
126+ status = "okay";
127+ pinctrl-0 = <ð1_mdio_pd12 ð1_mdc_pd1>;
128+ pinctrl-names = "default";
129+
130+ ethernet-phy@0 {
131+ compatible = "ethernet-phy";
132+ reg = <0x0>;
133+ status = "okay";
134+ };
135+ };
Original file line number Diff line number Diff line change @@ -19,3 +19,9 @@ CONFIG_HW_STACK_PROTECTION=y
1919
2020# No internal Flash
2121CONFIG_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
You can’t perform that action at this time.
0 commit comments