aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorFelix Baumann <felix.bau@gmx.de>2023-02-20 03:40:20 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2023-02-25 20:21:36 +0100
commit688697889c9ceb9d2d8d413d1abcc5fa7edb402b (patch)
treed812b4007cf9d26632ff02fb3a1b2944b88d342c /target/linux/ramips/dts
parentaf5e230c2036af07ef0fca6795ee259849b51e59 (diff)
downloadupstream-688697889c9ceb9d2d8d413d1abcc5fa7edb402b.tar.gz
upstream-688697889c9ceb9d2d8d413d1abcc5fa7edb402b.tar.bz2
upstream-688697889c9ceb9d2d8d413d1abcc5fa7edb402b.zip
ramips: correct the PCIe port number for some mt7621 devices
MT7621 uses 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 Netgear R6220, WAC104 and WNDR3700 v5. According to bootlog, MT7612E (5GHz) is connected to pcie0, and MT7603E (2GHz) is connected to pcie2: [2.758986] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK) [2.772862] mt7621-pci 1e140000.pcie: PCIE0 enabled [2.782579] mt7621-pci 1e140000.pcie: PCIE2 enabled ... [3.009151] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000 [3.125715] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000 Tested-by: Maximilian Baumgartner <aufhaxer@googlemail.com> Signed-off-by: Shiji Yang <yangshiji66@qq.com> [felix.bau@gmx.de: adjust commit message for Netgear devices] Signed-off-by: Felix Baumann <felix.bau@gmx.de>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi2
-rw-r--r--target/linux/ramips/dts/mt7621_netgear_wac104.dts2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
index 0ae6ab46f7..691aba1063 100644
--- a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
+++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
@@ -96,7 +96,7 @@
};
};
-&pcie1 {
+&pcie2 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
diff --git a/target/linux/ramips/dts/mt7621_netgear_wac104.dts b/target/linux/ramips/dts/mt7621_netgear_wac104.dts
index 3b5d6ae2d9..97aa4a90d1 100644
--- a/target/linux/ramips/dts/mt7621_netgear_wac104.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_wac104.dts
@@ -122,7 +122,7 @@
};
};
-&pcie1 {
+&pcie2 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;