Please modify the following mdio configuration section in dts file arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts to replace the <reg> value with the real PHY address on your custom board.
&pfe {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pfe_mac0: ethernet@0 {
compatible = "fsl,pfe-gemac-port";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0>; /* GEM_ID */
fsl,gemac-bus-id = <0x0>; /* BUS_ID */
fsl,mdio-mux-val = <0x0>;
phy-mode = "sgmii";
phy-handle = <&sgmii_phy1>;
};
pfe_mac1: ethernet@1 {
compatible = "fsl,pfe-gemac-port";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1>; /* GEM_ID */
fsl,mdio-mux-val = <0x0>;
phy-mode = "sgmii";
phy-handle = <&sgmii_phy2>;
};
mdio@0 {
#address-cells = <1>;
#size-cells = <0>;
sgmii_phy1: ethernet-phy@2 {
reg = <0x2>; //Modify the value with your real PHY address
};
sgmii_phy2: ethernet-phy@1 {
reg = <0x1>;//Modify the value with your real PHY address
};
};
};