
On Wed, Jun 24, 2020 at 8:19 PM Fabio Estevam festevam@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@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@2188000 using MAC address from ROM eth0: ethernet@2188000 Hit any key to stop autoboot: 0 =>