U-Boot atheros PHY support and cubox ethernet

Fabio Estevam festevam at gmail.com
Thu Jun 25 01:44:06 CEST 2020


On Wed, Jun 24, 2020 at 8:19 PM Fabio Estevam <festevam at gmail.com> wrote:

> - We tried via devicetree with the "qca,clk-out-frequency" property,
> but it did not work. This is an area where you could add some debug
> prints inside drivers/net/phy/atheros.c and see if if
> qca,clk-out-frequency is being parsed correctly to configure a 125MHz
> clock output. This is the method I used on mx6cuboxi last week and it
> works.

To help debugging why "qca,clk-out-frequency"  is not taking effect
you could try this debug patch:
https://pastebin.com/raw/RKG63JGJ

This is the result on a imx6 hummingboard:
....
Net:   ar803x_of_init: found PHY node: ethernet-phy at 0
********** clk out frequency is 125000000
ar803x_of_init: flags=0 clk_25m_reg=0018 clk_25m_mask=0018
******** PHY mode is 8
Warning: ethernet at 2188000 using MAC address from ROM
eth0: ethernet at 2188000
Hit any key to stop autoboot:  0
=>


More information about the U-Boot mailing list