Hi Yiping,
We are using the customised ls2088a-rdb board.In our board in serdes 2 (49) we are having a two sgmii.
the sgmii used is marvell 88e1512.
i.e in mdio0 we have phy0 and in mdio1 we have phy0
The following is the dtsi entry for sgmii.
emdio1: mdio@0x8B96000 { /* WRIOP0: 0x8B8_0000,
* E-MDIO1: 0x1_6000
*/
compatible = "fsl,fman-memac-mdio";
reg = <0x0 0x8B96000 0x0 0x1000>;
device_type = "mdio"; / TODO: is this necessary? /
little-endian; / force the driver in LE mode /
/ Not necessary on the QDS, but needed on the RDB /
#address-cells = <1>;
#size-cells = <0>;
};
emdio2: mdio@0x8B97000 { /* WRIOP0: 0x8B8_0000,
* E-MDIO2: 0x1_7000
*/
compatible = "fsl,fman-memac-mdio";
reg = <0x0 0x8B97000 0x0 0x1000>;
device_type = "mdio"; / TODO: is this necessary? /
little-endian; / force the driver in LE mode /
#address-cells = <1>;
#size-cells = <0>;
};
The below is the dts entry in fsl-ls2088a-rdb.dts
&emdio1 {
mdio1_phy0: emdio1_phy@1 {
compatible = "marvel,88e1510";
interrupts = <0 2 0x4>;
reg = <0x0>;
phy-connection-type = "sgmii";
};
};
&emdio2 {
mdio1_phy0: emdio1_phy@1 {
compatible = "marvel,88e1510";
interrupts = <0 2 0x4>;
reg = <0x0>;
phy-connection-type = "sgmii";
};
};
&dpmac1 {
phy-handle = <&mdio1_phy1>;
};
&dpmac2 {
phy-handle = <&mdio1_phy2>;
};
We have also enable the the Marvell phy driver in config file.
After compiling the image is flashed and we observe that there no sgmii link created .
We are unable to get the interface for both sgmii in kernel.
Can you help us further with this issue.
Is the compatibility fine or do we need to add anything in dtsi.
Also we are not getting any prints in kernel logs about the driver.