Skip to contentSkip to conversation

ARM: dts: marvell: armada-385-linksys-rango: fix wifi card resets described as LEDs

PATCH New Michele Salerno 1 participant 1 message Oct 23

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: marvell: armada-385-linksys-rango: fix wifi card resets described as LEDs

On the WRT3200ACM, mpp45 (gpio1 13) and mpp46 (gpio1 14) are described as the "wlan_2g" and "wlan_5g" LEDs, but they are the PERST# lines of the 2.4GHz and 5GHz 88W8964 cards: driving them low holds the card in reset. With a LED trigger on them (e.g. netdev on the wifi interface, or phyXradio) the card disappears from the bus, its config space reads 0xffffffff, and mwlwifi logs "adapter does not exist", "buffer is NULL for tx done ring" and "can't get hw specs" until the next reboot.

Drop the two LEDs and describe the lines as the reset GPIOs of the PCIe ports they belong to (pcie1: 5GHz card, pcie2: 2.4GHz card).

Fixes 41c865209626 ("ARM: dts: mvebu: add support for Linksys WRT3200ACM (Rango)")
---
 .../dts/marvell/armada-385-linksys-rango.dts  | 31 +++++++++++++------
 1 file changed, 22 insertions(+), 9 deletions(-)
arch/arm/boot/dts/marvell/armada-385-linksys-rango.dts +22 -9
index 4ab45f2..5209e06 100644
@@ -63,20 +63,33 @@
 		gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
 		label = "rango:white:sata";
 	};
+};
 
-	led-wlan_2g {
-		gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
-		label = "rango:white:wlan_2g";
-	};
+&gpio_leds_pins {
+	marvell,pins = "mpp21", "mpp56";
+};
 
-	led-wlan_5g {
-		gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
-		label = "rango:white:wlan_5g";
+&pinctrl {
+	pcie_reset_pins: pcie-reset-pins {
+		/* mpp45: 2.4GHz card reset, mpp46: 5GHz card reset */
+		marvell,pins = "mpp45", "mpp46";
+		marvell,function = "gpio";
 	};
 };
 
-&gpio_leds_pins {
-	marvell,pins = "mpp21", "mpp45", "mpp46", "mpp56";
+&pciec {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pcie_reset_pins>;
+};
+
+&pcie1 {
+	/* 5GHz card */
+	reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
+};
+
+&pcie2 {
+	/* 2.4GHz card */
+	reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
 };
 
 &nand {
Signature · 1 line
2.47.3