LX2080

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LX2080

549 Views
YY2410
Contributor III

During the LX2080 processor's uboot startup phase, it occasionally gets stuck at the following print position:
“Loading Environment from SPIFlash... SF: Detected mx25uw51245g with page size 256 Bytes, erase size 64 KiB, total 64 MiB
OK
EEPROM: Read failed.
In: serial_pl01x
Out: serial_pl01x
Err: serial_pl01x
Net: Could not get PHY for mdio@8b97000: addr 15”

It should be an MDIO initialization exception that directly causes the system to hang. I want to implement a timeout retry. How can this be done in the device tree?

Tags (2)
0 Kudos
Reply
1 Reply

491 Views
yipingwang
NXP TechSupport
NXP TechSupport

In u-boot dts file arch/arm/dts/fsl-lx2160a-rdb.dts, please modify "reg" value as the real PHY address on MDIO bus.

&emdio1 {
status = "okay";

cortina_phy: ethernet-phy@0 {
reg = <0x0>;//modify as you real PHY address.
};

rgmii_phy1: ethernet-phy@1 {
/* AR8035 PHY - "compatible" property not strictly needed */
compatible = "ethernet-phy-id004d.d072";
reg = <0x1>;//modify as you real PHY address.
};
/* Poll mode - no "interrupts" property defined */
};
rgmii_phy2: ethernet-phy@2 {
/* AR8035 PHY - "compatible" property not strictly needed */
compatible = "ethernet-phy-id004d.d072";
reg = <0x2>;//modify as you real PHY address.
};
/* Poll mode - no "interrupts" property defined */
};
aquantia_phy1: ethernet-phy@4 {
/* AQR107 PHY - "compatible" property not strictly needed */
compatible = "ethernet-phy-ieee802.3-c45";
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x4>;//modify as you real PHY address.
};
};
aquantia_phy2: ethernet-phy@5 {
/* AQR107 PHY - "compatible" property not strictly needed */
compatible = "ethernet-phy-ieee802.3-c45";
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x5>;//modify as you real PHY address.
};

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2326261%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELX2080%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326261%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EDuring%20the%20LX2080%20processor's%20uboot%20startup%20phase%2C%20it%20occasionally%20gets%20stuck%20at%20the%20following%20print%20position%3A%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%E2%80%9CLoading%20Environment%20from%20SPIFlash...%20SF%3A%20Detected%20mx25uw51245g%20with%20page%20size%20256%20Bytes%2C%20erase%20size%2064%20KiB%2C%20total%2064%20MiB%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EOK%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EEEPROM%3A%20Read%20failed.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EIn%3A%20serial_pl01x%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EOut%3A%20serial_pl01x%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EErr%3A%20serial_pl01x%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ENet%3A%20Could%20not%20get%20PHY%20for%20mdio%408b97000%3A%20addr%2015%E2%80%9D%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EIt%20should%20be%20an%20MDIO%20initialization%20exception%20that%20directly%20causes%20the%20system%20to%20hang.%20I%20want%20to%20implement%20a%20timeout%20retry.%20How%20can%20this%20be%20done%20in%20the%20device%20tree%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2327502%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LX2080%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327502%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20u-boot%20dts%20file%26nbsp%3Barch%2Farm%2Fdts%2Ffsl-lx2160a-rdb.dts%2C%20please%20modify%20%22reg%22%20value%20as%20the%20real%20PHY%20address%20on%20MDIO%20bus.%3C%2FP%3E%0A%3CP%3E%26amp%3Bemdio1%20%7B%3CBR%20%2F%3Estatus%20%3D%20%22okay%22%3B%3C%2FP%3E%0A%3CP%3Ecortina_phy%3A%20ethernet-phy%400%20%7B%3CBR%20%2F%3Ereg%20%3D%20%26lt%3B0x0%26gt%3B%3B%3CSTRONG%3E%2F%2Fmodify%20as%20you%20real%20PHY%20address.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%7D%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3Ergmii_phy1%3A%20ethernet-phy%401%20%7B%3CBR%20%2F%3E%2F*%20AR8035%20PHY%20-%20%22compatible%22%20property%20not%20strictly%20needed%20*%2F%3CBR%20%2F%3Ecompatible%20%3D%20%22ethernet-phy-id004d.d072%22%3B%3CBR%20%2F%3Ereg%20%3D%20%26lt%3B0x1%26gt%3B%3B%3CSTRONG%3E%2F%2Fmodify%20as%20you%20real%20PHY%20address.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%7D%3B%3C%2FSTRONG%3E%3CBR%20%2F%3E%2F*%20Poll%20mode%20-%20no%20%22interrupts%22%20property%20defined%20*%2F%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3Ergmii_phy2%3A%20ethernet-phy%402%20%7B%3CBR%20%2F%3E%2F*%20AR8035%20PHY%20-%20%22compatible%22%20property%20not%20strictly%20needed%20*%2F%3CBR%20%2F%3Ecompatible%20%3D%20%22ethernet-phy-id004d.d072%22%3B%3CBR%20%2F%3Ereg%20%3D%20%26lt%3B0x2%26gt%3B%3B%3CSTRONG%3E%2F%2Fmodify%20as%20you%20real%20PHY%20address.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%7D%3B%3C%2FSTRONG%3E%3CBR%20%2F%3E%2F*%20Poll%20mode%20-%20no%20%22interrupts%22%20property%20defined%20*%2F%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3Eaquantia_phy1%3A%20ethernet-phy%404%20%7B%3CBR%20%2F%3E%2F*%20AQR107%20PHY%20-%20%22compatible%22%20property%20not%20strictly%20needed%20*%2F%3CBR%20%2F%3Ecompatible%20%3D%20%22ethernet-phy-ieee802.3-c45%22%3B%3CBR%20%2F%3Einterrupts%20%3D%20%3CGIC_SPI%202%3D%22%22%20irq_type_level_high%3D%22%22%3E%3B%3CBR%20%2F%3Ereg%20%3D%20%26lt%3B0x4%26gt%3B%3B%3CSTRONG%3E%2F%2Fmodify%20as%20you%20real%20PHY%20address.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%7D%3B%3C%2FSTRONG%3E%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3Eaquantia_phy2%3A%20ethernet-phy%405%20%7B%3CBR%20%2F%3E%2F*%20AQR107%20PHY%20-%20%22compatible%22%20property%20not%20strictly%20needed%20*%2F%3CBR%20%2F%3Ecompatible%20%3D%20%22ethernet-phy-ieee802.3-c45%22%3B%3CBR%20%2F%3Einterrupts%20%3D%20%3CGIC_SPI%203%3D%22%22%20irq_type_level_high%3D%22%22%3E%3B%3CBR%20%2F%3Ereg%20%3D%20%26lt%3B0x5%26gt%3B%3B%3CSTRONG%3E%2F%2Fmodify%20as%20you%20real%20PHY%20address.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%7D%3B%3C%2FSTRONG%3E%3C%2FGIC_SPI%3E%3C%2FGIC_SPI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E