imx7 ethernet not working with BCM54220 phy

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

imx7 ethernet not working with BCM54220 phy

5,092 Views
sudeepkumarc
Contributor I

phy detected as Generic PHY  , link shows up , but no communication, link detection properly happening, on probing hardware ENET1_RGMII_TX_CTL / DATA no signals. 

ENET1_RX_CTL / DATA signals ok

log shows:

30be0000.ethernet supply phy not found, using dummy regulator

[    1.342383] fec 30be0000.ethernet eth0: registered PHC device 0

[    1.350291] 30bf0000.ethernet supply phy not found, using dummy regulator

[    1.362971] fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00

[    1.373102] fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: b2:18:cc:ce:62:bd

[    1.403259] fec 30bf0000.ethernet eth1: registered PHC device 1

0.000000] Architected cp15 timer(s) running at 8.00MHz (phys).

[    0.228980] 30800000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator

[    0.229133] 30800000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator

[    1.296217] libphy: Fixed MDIO Bus: probed

[    1.316960] 30be0000.ethernet supply phy not found, using dummy regulator

[    1.334155] libphy: fec_enet_mii_bus: probed

[    1.350291] 30bf0000.ethernet supply phy not found, using dummy regulator

[    1.397931] libphy: fec_enet_mii_bus: probed

fec 30bf0000.ethernet eth1: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=30be0000.etherne:01, irq=-1)

starting statd: [   11.006923] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready

fec 30bf0000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx

[   27.955314] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

0 Kudos
Reply
3 Replies

3,155 Views
sudeepkumarc
Contributor I

Hi Igor,

Our target board schematic same from i.MX7D Sabre board rev A ( some peripherals removed)

1) we tested the image got from the links which u given, with this image also eth ports not working.

2) we tried to check the DDR stress test - but shows "Can't open USB device".

I think the test poroceedure some steps missing. If some one can forward the detailed steps for DDR stress test, it will be very helpful. for checking USB device executed #modprobe g_mass_storage file=/dev/mmcblk0  command and detecting as device, so hardware is ok as device , also we tested as host. I feel some settings or steps missing on DDR test.

3) one more observation we noticed that :

eth0 device listing on ifconfig but not coming up , with setenv we can able to set MAC and parameters for eth0.

if we given ifconfig eth0 up shows No such device.

if we connect LAN cable on Eth1 :  RGMII1_TXC ,RGMII1_RXC , RRXD0,RXD1,RXD2,RXD3,RX_CTL  signal are ok

but instead of RGMII1_TX_CTL,RGMII1_TXD0,RGMII1_TXD1,RGMII1_TXD2,RGMII1_TXD2 ,RGMII1_TXD3 we are getting signals on RGMII2_TX_CTL , RGMII2_TXD0  ,RGMII2_TXD1 ,RGMII2_TXD2 ,RGMII2_TXD3.

we cross verified schematic , but not found any inter change like this.

please help us to solve this ethernet issue.

regards

Sudeep

0 Kudos
Reply

3,155 Views
ko-hey
Senior Contributor II

Hi sudeepkumarc

This is Ko-hey and DFAE in Japan.

I'll plan to use BCM54220 for ether phy but I can't detect.

Could you tell me a configuration for BCM54220 ?

I selected and add * to following two configuration. Is it enough ?

Device Drivers > Network device support > PHY Device support and infrastructure > [*] Drivers for Broadcom PHYs

Device Drivers > Network device support > Ethernet driver support > [*] Broadcom deveices

Please share your settings if you can.

Ko-hey

0 Kudos
Reply

3,153 Views
igorpadykov
NXP Employee
NXP Employee

Hi sudeep

if this is i.MX7D Sabre board one can try Demo images on

i.MX 6 Series Software and Development Tool|NXP

i.MX 7Dual SABRE Board|NXP

If this is custom board uboot should be rebuilt (*.cfg file changed with

new calibration settings found from ddr test ) after passing ddr test

i.MX6/7 DDR Stress Test Tool V2.52 | NXP Community

Then please verify if ethernet is woring in uboot.

Also mac address should be provided to driver, as described in

attached Linux Manual sect.43.3.2 Getting a MAC Address.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply