[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