]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk-star-emac: add clock pad selection for RMII
authorBiao Huang <biao.huang@mediatek.com>
Wed, 29 Jun 2022 03:17:38 +0000 (11:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2022 12:45:30 +0000 (13:45 +0100)
commit6b15d114389192af93985620caaaf4d506a9281c
tree33dcef57408bf19f02507106358bd102cb17779b
parent6bdaa08bb9266bff682ecde2e280294fc55c04b7
net: ethernet: mtk-star-emac: add clock pad selection for RMII

This patch add a new dts property named "mediatek,rmii-rxc" parsing
in driver, which will configure MAC to select which pin the RMII reference
clock is connected to, TXC or RXC.

TXC pad is the default reference clock pin. If user wants to use RXC pad
instead, add "mediatek,rmii-rxc" to corresponding device node.

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: Yinghua Pan <ot_yinghua.pan@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_star_emac.c