下圖為MT7986 CPU 加上一顆MT7531 Switch,和二顆Phy Device,總共組合成一個有6 個Port 的Router 的方塊圖。
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_1-1024x707.webp?resize=1024%2C707)
主要我們看到MT7986 CPU 和MT7531 Switch 連接部份。其此Router 的Device Tree,我們截取eth 的部份。
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_2.webp?resize=426%2C937)
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_3.webp?resize=420%2C540)
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_3-1.webp?resize=420%2C540)
在CPU 部份,分別有兩個實體介面為gmac0 和gmac1。
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_5.webp?resize=378%2C409)
這裡的phy5 和phy6 指的就是方塊圖中兩顆Inter 2.5G PHY,而switch 指的就是MT7531。這三個Device 都可以使用mdio-bus 來做控制和設定。
而MT7531 Switch 的CPU Port(指Port6) 是和MT7986 CPU 的gmac0 連接。
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_7.webp?resize=429%2C495)
MT7531 Switch 的Port5 和另一顆Inter 2.5G PHY (指phy5)相接。
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_8.webp?resize=420%2C487)
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_9.webp?resize=382%2C307)
MT7986 CPU 的gmac1 則和另一顆Inter 2.5G PHY(指phy6) 相接。
![](https://i0.wp.com/35.221.254.218/wp-content/uploads/2024/03/MT7986_MT7531_10.webp?resize=382%2C307)
很詳細