[][kernel][mt7987][eth][Change to using a built-in module for the EN8811H 2.5G PHY driver]
[Description]
Change to using a built-in module for the EN8811H 2.5G PHY driver.
Without this patch, the MT7531 port5 is unable to probe the EN8811H
2.5G PHY driver on the MT7987 EVB.
[Release-log]
N/A
Change-Id: Ia3ebddbf13cea817d5b9759384dad0f103776144
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9900440
diff --git a/21.02/files/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7987-netsys-mt7531.dtsi b/21.02/files/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7987-netsys-mt7531.dtsi
index f2083fe..b79e8f6 100644
--- a/21.02/files/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7987-netsys-mt7531.dtsi
+++ b/21.02/files/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7987-netsys-mt7531.dtsi
@@ -12,6 +12,7 @@
pause;
airoha,polarity = <3>;
airoha,surge = <0>;
+ airoha,phy-handle;
};
/delete-node/ switch@1;
@@ -52,12 +53,7 @@
reg = <5>;
label = "lan5";
phy-mode = "2500base-x";
-
- fixed-link {
- speed = <2500>;
- full-duplex;
- pause;
- };
+ phy-handle = <&phy12>;
};
port@6 {
diff --git a/21.02/files/target/linux/mediatek/files-5.4/drivers/base/firmware_loader/builtin/EthMD32.DSP.bin b/21.02/files/target/linux/mediatek/files-5.4/drivers/base/firmware_loader/builtin/EthMD32.DSP.bin
new file mode 100644
index 0000000..7681efe
--- /dev/null
+++ b/21.02/files/target/linux/mediatek/files-5.4/drivers/base/firmware_loader/builtin/EthMD32.DSP.bin
Binary files differ
diff --git a/21.02/files/target/linux/mediatek/files-5.4/drivers/base/firmware_loader/builtin/EthMD32.dm.bin b/21.02/files/target/linux/mediatek/files-5.4/drivers/base/firmware_loader/builtin/EthMD32.dm.bin
new file mode 100644
index 0000000..5e976b6
--- /dev/null
+++ b/21.02/files/target/linux/mediatek/files-5.4/drivers/base/firmware_loader/builtin/EthMD32.dm.bin
Binary files differ
diff --git a/21.02/files/target/linux/mediatek/mt7987/config-5.4 b/21.02/files/target/linux/mediatek/mt7987/config-5.4
index 4087cef..14084ba 100644
--- a/21.02/files/target/linux/mediatek/mt7987/config-5.4
+++ b/21.02/files/target/linux/mediatek/mt7987/config-5.4
@@ -2,7 +2,7 @@
CONFIG_AHCI_MTK=y
CONFIG_AIROHA_AN8801_PHY=y
# CONFIG_AIROHA_EN8801SC_PHY is not set
-CONFIG_AIROHA_EN8811H_PHY=m
+CONFIG_AIROHA_EN8811H_PHY=y
CONFIG_AIROHA_EN8811H_PHY_DEBUGFS=y
CONFIG_AN8855_GSW=y
CONFIG_AQUANTIA_PHY=y
@@ -192,11 +192,14 @@
CONFIG_DYNAMIC_DEBUG=y
CONFIG_EDAC_SUPPORT=y
CONFIG_EINT_MTK=y
+CONFIG_EXTRA_FIRMWARE="EthMD32.dm.bin EthMD32.DSP.bin"
+CONFIG_EXTRA_FIRMWARE_DIR="./drivers/base/firmware_loader/builtin"
CONFIG_FIXED_PHY=y
CONFIG_FIX_EARLYCON_MEM=y
# CONFIG_FLATMEM_MANUAL is not set
CONFIG_FRAME_POINTER=y
CONFIG_FUJITSU_ERRATUM_010001=y
+CONFIG_FW_LOADER=y
CONFIG_FW_LOADER_PAGED_BUF=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_GENERIC_ARCH_TOPOLOGY=y