cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jaychoi
Visitor
Visitor
506 Views
Registered: ‎08-26-2019

BCM54612E not probing in u-boot(2020.1)

Jump to solution

Hi all,

I faced an issue that the ethernet PHY(BCM54612E) doesn't probe in u-boot(2020.1) at all.

I have no idea that is caused by device-tree or u-boot driver.

I would like to use GEM1 for RGMII and GEM2,3 for SGMII. 

my system-user.dtsi:

&gem1 {
    status = "okay";
    phy-mode = "rgmii-id";
};

&gem2 {
    status = "okay";
    phy-mode = "sgmii";
    fixed-link {
         speed = <1000>;
         full-duplex;
    };
};

&gem3 {
    status = "okay";
    phy-mode = "sgmii";
    fixed-link {
        speed = <1000>;
        full-duplex;
    };
};

 

my uboot mii info:

ZynqMP> mii info
PHY 0x00: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x01: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x02: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x03: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x04: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x05: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x06: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x07: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x08: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x09: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x0A: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x0B: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x0C: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x0D: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x0E: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x0F: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x10: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x11: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x12: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x13: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x14: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x15: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x16: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x17: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x18: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x19: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x1A: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x1B: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x1C: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x1D: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x1E: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX

 

my uboot log:

U-Boot 2020.01 (Nov 06 2020 - 09:01:19 +0000)

Board: Xilinx ZynqMP
DRAM: 2 GiB
PMUFW: v1.1
EL Level: EL2
Chip ID: zu19eg
NAND: 0 MiB
MMC:
In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Bootmode: JTAG_MODE
Reset reason: DEBUG
Net:
ZYNQ GEM: ff0c0000, mdio bus ff0c0000, phyaddr -1, interface rgmii-id
Could not get PHY for eth0: addr -1

ZYNQ GEM: ff0d0000, mdio bus ff0d0000, phyaddr -1, interface sgmii

Warning: ethernet@ff0d0000 (eth1) using random MAC address - 52:31:39:7a:f3:61
eth1: ethernet@ff0d0000
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr -1, interface sgmii

Warning: ethernet@ff0e0000 (eth2) using random MAC address - 66:ae:4b:00:51:20
, eth2: ethernet@ff0e0000
Hit any key to stop autoboot: 0
ZynqMP>

0 Kudos
1 Solution

Accepted Solutions
jaychoi
Visitor
Visitor
396 Views
Registered: ‎08-26-2019

I figured out this issue has caused by PHY reset. Actually, my custom board's PHY reset pin is set as active low.

After making high, mii info command is working fine without device tree setting.

Thanks all,

Jay.

 

View solution in original post

0 Kudos
4 Replies
shabbirk
Moderator
Moderator
485 Views
Registered: ‎12-04-2016

Hi @jaychoi 

Can I know why are you defining the device tree node as a fixed link in uboot?

 

Best Regards

Shabbir

0 Kudos
jaychoi
Visitor
Visitor
473 Views
Registered: ‎08-26-2019

Hi  

 

0 Kudos
shabbirk
Moderator
Moderator
454 Views
Registered: ‎12-04-2016

Hi @jaychoi 

Yes if we have drivers for this PHY then I think it is very straightforward.

1. Enabling the macro defining this PHY in uboot config

2. Add the phy ID of this BCM PHY in the device tree file

 

Best Regards

Shabbir

0 Kudos
jaychoi
Visitor
Visitor
397 Views
Registered: ‎08-26-2019

I figured out this issue has caused by PHY reset. Actually, my custom board's PHY reset pin is set as active low.

After making high, mii info command is working fine without device tree setting.

Thanks all,

Jay.

 

View solution in original post

0 Kudos