&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rmii";
phy-handle = <ðphy2>;
fsl,magic-packet;
fsl,rmii_refclk_ext; // PHY provides 50MHz reference clock
enet_clk_sel = <&wakeupmix_gpr 0x2C>; // Required for RMII clock selection
status = "okay";
// PHY reset configuration
phy-reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
phy-reset-duration = <10>;
phy-reset-post-delay = <10>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <5000000>;
ethphy2: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <30000>;
max-speed = <100>; // RMII supports up to 100Mbps
};
};
};
these are my dts configrations i have a phy that generates clock
in this configration eth0 pops up but only tx packets come up in ifconfig no rx packet