Hi iMX community,
We have designed our custom board with iMX7D processor. We have connected Ethernet1 (fec1) to marvell switch 88E6390.
Modified DTS file:
&fec1 {
pinctrl-names = "default","sleep";
pinctrl-0 = <&pinctrl_enet1>;
pinctrl-1 = <&pinctrl_enet1_sleep>;
phy-supply=<&vgen3_reg>;
assigned-clocks = <&clks IMX7D_ENET_PHY_REF_ROOT_SRC>,
<&clks IMX7D_ENET_AXI_ROOT_SRC>,
<&clks IMX7D_ENET1_TIME_ROOT_SRC>,
<&clks IMX7D_ENET1_TIME_ROOT_CLK>,
<&clks IMX7D_ENET_AXI_ROOT_CLK>;
assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_25M_CLK>,
<&clks IMX7D_PLL_ENET_MAIN_250M_CLK>,
<&clks IMX7D_PLL_ENET_MAIN_100M_CLK>;
assigned-clock-rates = <0>, <0>, <0>, <100000000>, <250000000>;
phy-mode = "rgmii-id";
status = "okay";
// emulated phy ID, duplex, speed, pause,asym pause
fixed-link = <4 1 1000 1 0>;
/* fixed-link{
speed=<100>;
full-duplex;
};*/
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@14 {
compatible = "marvell,mv88e6390";
reg = <14>;
};
};
};
Please help us to work with 88E6390 switch.
Hi Vittal
one can check hardware connections (first check reference clock) using below links
https://community.nxp.com/t5/i-MX-Processors/i-MX6-GMAC-to-GMAC-connection/m-p/457196
https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-with-KSZ8895-switch-not-working/m-p/766133
Best regards
igor