On Fri, Jul 03, 2020 at 01:37:48PM +0200, Robert Marko wrote: > This is not the actual MDIO bus clock, that is the clock frequency > that SoC clock generator produces. > MDIO controller has an internal divider set up for that 100MHz, I > don't know the actual MDIO bus clock > frequency as it's not listed anywhere. Hi Robert >From Documentation/devicetree/bindings/net/mdio.yaml clock-frequency: description: Desired MDIO bus clock frequency in Hz. Values greater than IEEE 802.3 defined 2.5MHz should only be used when all devices on the bus support the given clock speed. You have to use that definition for clock-frequency. It means the MDIO bus frequency. It would be good if you can get an oscilloscope onto the bus and measure it. Otherwise, we have to assume the divider is 40, in order to give a standards compliment 2.5MHz. You can then work out what value to pass to the clk_ API to get the correct input clock frequency for the MDIO block. Andrew