[BPI-R64] how to enable mt7622 embedded fast ethernet switch?

Hi all.

The documentation for the mt7622 says that it has an integrated 5-port 10/100Mbps Ethernet switch. I have a “bpi-r64-v1.2” board and I trying to work with this switch via mdi interface on the 40-pin connector.

I may be wrong, but as I understand, this switch will work through gmac1, and I need to edit the device tree. It seems that there are no boards that use the built-in switch and I haven’t found how to properly configure this switch in the dts. I am using openwrt-24.10 with Linux kernel version 6.6.86.

Has anyone tried using the embedded switch?

Thanks for any info

The built-in switch supports only 10/100Mbps. Therefore, the BPI-R64 board does not use such pins and instead uses HSGMII/MDIO to connect to a 5-port gigabit switch.

sure, but the BPI-R64 board has the pins of the built-in switch on the 40-pin connector, and I want to connect to them. Is it possible?

The BPI-R64 doesn’t use built-in switch pin as 40-pin header. Below are related pins for port0 for your reference.