硬件原理圖
文章來源地址http://www.zghlxwxcb.cn/news/detail-450966.html
上圖為外部晶振為phy芯片提供25M工作時(shí)鐘。
實(shí)際硬件為RK3568-mac給phy芯片提供25M工作時(shí)鐘。
phy數(shù)據(jù)時(shí)鐘引腳50M_CLKO連接50M_CLKI和RK3568-CLKINOUT引腳,phy芯片為mac提供50M參考時(shí)鐘。
For RMII,
"input" means PHY provides the reference clock(50MHz),
"output" means GMAC provides the reference clock.
mac和phy
tx_clk和rx_clk分別由mac和phy提供。
mac可以給phy提供25M工作時(shí)鐘
phy芯片本身需要一個(gè)25M工作時(shí)鐘,phy芯片還有一個(gè)輸出管腳,可以給mac提供參考時(shí)鐘。
修改設(shè)備樹
&gmac1_clkin{
clock-frequency = <50000000>;
};
&gmac1 {
phy-mode = "rmii"; //主要分為rmii和rgmii模式
clock_in_out = "input"; //時(shí)鐘方向
assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>, <&cru CLK_MAC1_OUT>; //時(shí)鐘
assigned-clock-parents = <&
文章來源:http://www.zghlxwxcb.cn/news/detail-450966.html
到了這里,關(guān)于RK3568適配phy芯片ip101gri的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!