[source] mvebu: several fixes for Linksys WRT3200ACM

LEDE Commits lede-commits at lists.infradead.org
Wed Jan 11 09:27:03 PST 2017


noltari pushed a commit to source.git, branch mvebu-next:
https://git.lede-project.org/6f3257a6c4d5144c58d0f794b106b57a4a56adda

commit 6f3257a6c4d5144c58d0f794b106b57a4a56adda
Author: Álvaro Fernández Rojas <noltari at gmail.com>
AuthorDate: Wed Jan 11 17:12:55 2017 +0100

    mvebu: several fixes for Linksys WRT3200ACM
    
    - Fix WLAN LEDs
    - Fix Switch support
    
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 target/linux/mvebu/config-4.4                      |  3 ++
 .../arch/arm/boot/dts/armada-385-linksys-rango.dts | 35 ++++++++++++++--------
 2 files changed, 26 insertions(+), 12 deletions(-)

diff --git a/target/linux/mvebu/config-4.4 b/target/linux/mvebu/config-4.4
index d819970..4047c0e 100644
--- a/target/linux/mvebu/config-4.4
+++ b/target/linux/mvebu/config-4.4
@@ -310,6 +310,9 @@ CONFIG_MVSW61XX_PHY=y
 CONFIG_MV_XOR=y
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NEON=y
+CONFIG_NET_DSA_TAG_EDSA=y
+CONFIG_NET_DSA_MV88E6XXX=y
+CONFIG_NET_DSA_MV88E6352=y
 CONFIG_NET_FLOW_LIMIT=y
 CONFIG_NLS=y
 CONFIG_NOP_USB_XCEIV=y
diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts
index faac0b7..e3b9f4a 100644
--- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts
+++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts
@@ -95,16 +95,6 @@
 						reg = <0x1>;
 					};
 
-					wlan_2g at 2 {
-						label = "rango:white:wlan_2g";
-						reg = <0x2>;
-					};
-
-					wlan_5g at 3 {
-						label = "rango:white:wlan_5g";
-						reg = <0x3>;
-					};
-
 					usb2 at 5 {
 						label = "rango:white:usb2";
 						reg = <0x5>;
@@ -340,17 +330,28 @@
 
 	gpio-leds {
 		compatible = "gpio-leds";
-		pinctrl-0 = <&power_led_pin &sata_led_pin>;
+		pinctrl-0 = <&power_led_pin &sata_led_pin &wlan_2g_led_pin &wlan_5g_led_pin>;
 		pinctrl-names = "default";
 
 		power {
+			label = "rango:white:power";
 			gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
 			default-state = "on";
 		};
 
 		sata {
+			label = "rango:white:sata";
 			gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
-			default-state = "off";
+		};
+
+		wlan_2g {
+			label = "rango:white:wlan_2g";
+			gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
+		};
+
+		wlan_5g {
+			label = "rango:white:wlan_5g";
+			gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
 		};
 	};
 
@@ -429,6 +430,16 @@
 		marvell,function = "gpio";
 	};
 
+	wlan_2g_led_pin: wlan-2g-led-pin {
+		marvell,pins = "mpp45";
+		marvell,function = "gpio";
+	};
+
+	wlan_5g_led_pin: wlan-2g-led-pin {
+		marvell,pins = "mpp46";
+		marvell,function = "gpio";
+	};
+
 	power_led_pin: power-led-pin {
 		marvell,pins = "mpp56";
 		marvell,function = "gpio";



More information about the lede-commits mailing list