]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: configure PCIe 2-lanes mode for eMMC EAGLE RFB board
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 14 Jul 2026 12:44:13 +0000 (14:44 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 14 Jul 2026 12:44:13 +0000 (14:44 +0200)
The EAGLE PCIe WiFi card require PCIe0 to be in 2-lanes mode to correctly
work. Add the missing property to enable this mode and restore correctly
functionality of the WiFi card.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/airoha/dts/an7581-evb-emmc-eagle.dts

index c2e2bb9a47bc90ce151880c1a9dafb9d905d5191..4f33bfe860729dff8952ed4805ea6046d5e33529 100644 (file)
        };
 };
 
+&pcie0 {
+       reg = <0x0 0x1fc00000 0x0 0x1670>,
+             <0x0 0x1fc20000 0x0 0x1670>;
+       reg-names = "pcie-mac", "sec-pcie-mac";
+
+       resets = <&scuclk EN7581_PCIE0_RST>,
+                <&scuclk EN7581_PCIE1_RST>,
+                <&scuclk EN7581_PCIC_PERSTOUT0_RST>,
+                <&scuclk EN7581_PCIC_PERSTOUT1_RST>;
+       reset-names = "phy-lane0", "phy-lane1",
+                     "perstout", "sec-perstout";
+
+       num-lanes = <2>;
+
+       airoha,scu = <&scuclk>;
+};
+
+&pcie1 {
+       status = "disabled";
+};
+
 &pcie2 {
        pinctrl-names = "default";
        pinctrl-0 = <&pcie2_rst_pins>;