aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorShiji Yang <yangshiji66@qq.com>2023-02-19 09:06:32 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2023-02-19 18:37:55 +0100
commitc77913be5be5f11a0f20dba1b45b96470099e8a8 (patch)
tree1c8f138cf6d23bd5e9df7552c6e34f219529296f /target/linux/ramips
parentfa08d900d4ec3bf0c2440b336a75f2b9bda29845 (diff)
downloadupstream-c77913be5be5f11a0f20dba1b45b96470099e8a8.tar.gz
upstream-c77913be5be5f11a0f20dba1b45b96470099e8a8.tar.bz2
upstream-c77913be5be5f11a0f20dba1b45b96470099e8a8.zip
ramips: correct the PCIe port number for Zbtlink ZBT-WE1326
MT7621 gets a new PCIe driver in the 5.15+ kernel. Allocating wrong PCIe port will cause the PCIe NIC to not work properly. This commit fixes the wrong port numbers on Zbtlink ZBT-WE1326. According to the bootlog, MT7612E (5 GHz) is connected to pcie1, and MT7603E (2 GHz) is connected to pcie2: [4.197658] mt7621-pci 1e140000.pcie: pcie0 no card, disable it (RST & CLK) [4.204609] mt7621-pci 1e140000.pcie: PCIE1 enabled [4.209476] mt7621-pci 1e140000.pcie: PCIE2 enabled ... [4.307988] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000 [4.367206] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000 Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
index 4e30dfb6c9..99b9652b7a 100644
--- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
+++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
@@ -121,7 +121,7 @@
status = "okay";
};
-&pcie0 {
+&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
@@ -135,7 +135,7 @@
};
};
-&pcie1 {
+&pcie2 {
wifi1: wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;