[source] mvebu: several fixes for Linksys WRT3200ACM

LEDE Commits lede-commits at lists.infradead.org
Fri Jan 13 08:13:19 PST 2017


noltari pushed a commit to source.git, branch master:
https://git.lede-project.org/89ecfa7556d87df1f588b34ef7a455224da03ce7

commit 89ecfa7556d87df1f588b34ef7a455224da03ce7
Author: Álvaro Fernández Rojas <noltari at gmail.com>
AuthorDate: Wed Jan 11 18:43:38 2017 +0100

    mvebu: several fixes for Linksys WRT3200ACM
    
    - Fix WLAN LEDs definition.
    - Fix USB pinctrl definition.
    - Remove SDHCI definition.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 .../arch/arm/boot/dts/armada-385-linksys-rango.dts | 84 +++++++++++-----------
 1 file changed, 40 insertions(+), 44 deletions(-)

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..804ba0d 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>;
@@ -173,16 +163,6 @@
 				status = "okay";
 			};
 
-			sdhci at d8000 {
-				pinctrl-names = "default";
-				pinctrl-0 = <&sdhci_pins>;
-				no-1-8-v;
-				broken-cd;
-				wp-inverted;
-				bus-width = <8>;
-				status = "okay";
-			};
-
 			/* USB part of the eSATA/USB 2.0 port */
 			usb at 58000 {
 				status = "okay";
@@ -315,14 +295,14 @@
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
 		enable-active-high;
-		gpio = <&gpio1 16 GPIO_ACTIVE_HIGH>;
+		gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>;
 	};
 
 	gpio_keys {
 		compatible = "gpio-keys";
 		#address-cells = <1>;
 		#size-cells = <0>;
-		pinctrl-0 = <&keys_pin>;
+		pinctrl-0 = <&reset_key_pin &wps_key_pin>;
 		pinctrl-names = "default";
 
 		button at 1 {
@@ -340,18 +320,29 @@
 
 	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";
 
+		sata {
+			label = "rango:white:sata";
+			gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+		};
+
+		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>;
+		};
+
 		power {
+			label = "rango:white:power";
 			gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
 			default-state = "on";
 		};
-
-		sata {
-			gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
 	};
 
 	dsa at 0 {
@@ -399,16 +390,6 @@
 		};
 	};
 
-	gpio-leds {
-		power {
-			label = "rango:white:power";
-		};
-
-		sata {
-			label = "rango:white:sata";
-		};
-	};
-
 	mvsw61xx {
 		#address-cells = <1>;
 		#size-cells = <0>;
@@ -424,18 +405,28 @@
 };
 
 &pinctrl {
-	keys_pin: keys-pin {
-		marvell,pins = "mpp24", "mpp29";
+	sata_led_pin: sata-led-pin {
+		marvell,pins = "mpp21";
 		marvell,function = "gpio";
 	};
 
-	power_led_pin: power-led-pin {
-		marvell,pins = "mpp56";
+	wps_key_pin: wps-key-pin {
+		marvell,pins = "mpp24";
 		marvell,function = "gpio";
 	};
 
-	sata_led_pin: sata-led-pin {
-		marvell,pins = "mpp21";
+	reset_key_pin: reset-key-pin {
+		marvell,pins = "mpp29";
+		marvell,function = "gpio";
+	};
+
+	wlan_2g_led_pin: wlan-2g-led-pin {
+		marvell,pins = "mpp45";
+		marvell,function = "gpio";
+	};
+
+	wlan_5g_led_pin: wlan-5g-led-pin {
+		marvell,pins = "mpp46";
 		marvell,function = "gpio";
 	};
 
@@ -443,4 +434,9 @@
 		marvell,pins = "mpp47";
 		marvell,function = "gpio";
 	};
+
+	power_led_pin: power-led-pin {
+		marvell,pins = "mpp56";
+		marvell,function = "gpio";
+	};
 };



More information about the lede-commits mailing list