mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 11:08:06 +04:00
Add the two external Aeonsemi AS21xxx PHYs used by the LAN and WAN 10GBASE-T ports of the BPI-R4 Pro 8x. Configure their firmware, reset timing and LEDs, and connect them to the MxL switch and GMAC1. Replace the fixed SFP GPIO hog configuration with LAN and WAN overlays selecting either the copper PHY or the corresponding SFP cage. Build all four overlays, include them in the device image and select the SFP overlays by default through U-Boot `bootconf_extra`. Make the AS21xxx firmware package pull in the PHY driver on Linux 6.18, instead of making the driver depend on the firmware. Update existing Airoha device package lists accordingly so they continue to install both components through the firmware package. Breaking change for users using the router with SFP hogs from PR #21083. After flashing the new image, configure `bootconf_extra` to select between SFP or PHY overlays: fw_setenv bootconf_extra \ mt7988a-bananapi-bpi-r4-pro-8x-lan-phy#mt7988a-bananapi-bpi-r4-pro-8x-wan-phy If bootconf_extra had additional overlays (CN13 or CN14) keep them appended Signed-off-by: Pietro Ameruoso <p.ameruoso@live.it> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>