Commit 11a1b899 authored by IBEN EL HADJ MESSAOUD Marwa's avatar IBEN EL HADJ MESSAOUD Marwa Committed by Benjamin Cabé
Browse files

boards: st: stm32n6570_dk: Add ethernet node

Add the Ethernet MAC and MDIO nodes in the device tree.
Add Kconfig for Ethernet Support.

Signed-off-by: default avatarIBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
parent cc068435
Loading
Loading
Loading
Loading
+15 −0
Changes for boards/st/stm32n6570_dk/Kconfig.defconfig: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
# STM32N6570 DISCOVERY board configuration

# Copyright (c) 2025 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0

if BOARD_STM32N6570_DK

if NETWORKING

config NET_L2_ETHERNET
	default y

endif # NETWORKING

endif # BOARD_STM32N6570_DK
+32 −0
Changes for boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi: 32 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -247,3 +247,35 @@
		};
	};
};

&mac {
	status = "okay";
	pinctrl-0 = <&eth1_rgmii_gtx_clk_pf0
		     &eth1_rgmii_clk125_pf2
		     &eth1_rgmii_rx_clk_pf7
		     &eth1_rgmii_rxd2_pf8
		     &eth1_rgmii_rxd3_pf9
		     &eth1_rgmii_rx_ctl_pf10
		     &eth1_rgmii_tx_ctl_pf11
		     &eth1_rgmii_txd1_pf13
		     &eth1_rgmii_txd0_pf12
		     &eth1_rgmii_rxd0_pf14
		     &eth1_rgmii_rxd1_pf15
		     &eth1_rgmii_txd2_pg3
		     &eth1_rgmii_txd3_pg4
		     &eth1_phy_intn_pd3>;
	pinctrl-names = "default";
	phy-connection-type = "rgmii";
	phy-handle = <&eth_phy>;
};

&mdio {
	status = "okay";
	pinctrl-0 = <&eth1_mdio_pd12 &eth1_mdc_pd1>;
	pinctrl-names = "default";

	eth_phy: ethernet-phy@0 {
		compatible = "ethernet-phy";
		reg = <0x0>;
	};
};