Dear Experts,
We have a custom LS1028a board, having 1G SGMII Ethernet connected to ENETC port 1/2.5G SGMII/10G-SXGMII in SGMII 1G configuration mode. Externally there is a Marvell PHY 88E1512. Identified and configured the 88E1512 to work in SGMII 1Gbps mode in U-Boot using mii commands.
Ethernet in U-Boot working when emdio-3 is selected,
>mii device emdio-3
>mii info
PHY 0x00: OUI = 0x5043, Model = 0x1D, Rev = 0x01, 1000baseT, FDX
PHY 0x10: OUI = 0x01C1, Model = 0x0A, Rev = 0x02, 10baseT, HDX
PHY 0x11: OUI = 0x01C1, Model = 0x0A, Rev = 0x02, 10baseT, HDX
PHY 0x12: OUI = 0x01C1, Model = 0x0A, Rev = 0x02, 10baseT, HDX
PHY 0x13: OUI = 0x01C1, Model = 0x0A, Rev = 0x02, 10baseT, HDX
88E1512 - PHY 0x00: OUI = 0x5043
>mii device
MII devices: 'enetc-0' 'emdio-3' 'enetc-2' 'felix-switch'
Tried enabling the same in linux dts @ fsl-ls1028a-rdb.dts at packages/linux/linux/arch/arm64/boot/dts/freescale (attached the same),
&enetc_port1 {
phy-handle = <&sgmii_phy0>;
phy-connection-type = "sgmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
sgmii_phy0: ethernet-phy@0 {
reg = <0x0>;
};
};
};
&enetc_port0 {
status = "disabled";
};
With this addition able to see the Ethernet ports eno1, eno2 in ifconfig. But the ping is not working with pc over eno1. (Observed eno2 RX packets incremented to 2/3 packs)
Have the following questions,
1. What is the 'emdio-3' as per ENETC at U-Boot Level?
2. What changes to be added to Linux dts or any other configs to enable the Ethernet interface?
3. Repeated PCIe Bus error observed, what are the implications of this?
[ 10.667961] pcieport 0002:00:00.0: AER: Multiple Corrected error received: 0002:00:00.0
[ 10.676000] pcieport 0002:00:00.0: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 10.686039] pcieport 0002:00:00.0: AER: device [1957:82c0] error status/mask=00000001/00006000
[ 10.694862] pcieport 0002:00:00.0: AER: [ 0] RxErr
Attached dts files, linux boot log
Thanks