Hello,
We have a custom board based on IMX8M plus.
We are using two different Ethernet Phy (DP83867) ,
1)eQOS
2)FEC
these both Phy are using common MDIO (AH29) and MDC(AH28) pins.
Is it possible to use common MDIO and MDC pins for FEC and eQOS ?
If yes, what changes are required ?
Please guide us for the same.
Thanks and Regards,
Ishan
Hi,
Thank you for your interest in NXP Semiconductor products,
The change required would be to add another phy sub-node to the proper MDIO node, for example, if the i.MX 8M Plus FEC module is used, this would be the rework:
&eqos {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rgmii-id";
phy-handle = <ðphy0>;
snps,force_thresh_dma_mode;
snps,mtl-tx-config = <&mtl_tx_setup>;
snps,mtl-rx-config = <&mtl_rx_setup>;
status = "okay";
};
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rgmii-id";
phy-handle = <ðphy1>;
fsl,magic-packet;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <80000>;
realtek,clkout-disable;
};
ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
eee-broken-1000t;
reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <80000>;
realtek,aldps-enable;
realtek,clkout-disable;
};
};
};
Regards