]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: mediatek: add support for adjusting MDIO clock
authorWeijie Gao <weijie.gao@mediatek.com>
Mon, 22 Jan 2024 02:08:11 +0000 (10:08 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 1 Mar 2024 21:35:52 +0000 (16:35 -0500)
commit85d1968e759f603e00f04412db75804a3307496a
tree5ab81952ed7259a3102d942b01ef32705a0fd7ea
parent3b51d5b76f86e484dd5a47f7617c2a5222d959de
net: mediatek: add support for adjusting MDIO clock

User can assign a specific MDC speed to the eth node as follow:

&eth {
...
phy-mode = "usxgmii";
phy-handle = <&phy8>;

mdio {
clock-frequency = <10500000>;
};

phy8: eth-phy@8 {
      compatible = "ethernet-phy-id31c3.1c12";
...
};

Signed-off-by: Bo-Cun Chen <bc-bocun.chen@mediatek.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/net/mtk_eth.c
drivers/net/mtk_eth.h