> + /* MDIO default frequency is 6.25MHz */
> + priv->clk_div = 0xf;
802.3 says MDC should be 2.5Mhz. Its O.K. to support faster clocks,
but it should be an optional DT property, clock-frequency as described
in the binding.
Andrew
On 11/15/2023 11:22 PM, Andrew Lunn wrote:
>> + /* MDIO default frequency is 6.25MHz */
>> + priv->clk_div = 0xf;
>
> 802.3 says MDC should be 2.5Mhz. Its O.K. to support faster clocks,
> but it should be an optional DT property, clock-frequency as described
> in the binding.
>
> Andrew
Ok, Andrew, will add the DT property "clock-frequency" to support this
clock divider in the next patch set, thanks.