summaryrefslogtreecommitdiff
path: root/target/linux/mvebu
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2017-01-11 18:43:38 +0100
committerÁlvaro Fernández Rojas <noltari@gmail.com>2017-01-13 17:12:40 +0100
commit89ecfa7556d87df1f588b34ef7a455224da03ce7 (patch)
tree0968c677c1d59fcdc8e2638fabebbee2fde090a8 /target/linux/mvebu
parent8935689a8eb1fe9622273a9ee97131d99f1842fe (diff)
downloadmtk-20170518-89ecfa7556d87df1f588b34ef7a455224da03ce7.zip
mtk-20170518-89ecfa7556d87df1f588b34ef7a455224da03ce7.tar.gz
mtk-20170518-89ecfa7556d87df1f588b34ef7a455224da03ce7.tar.bz2
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@gmail.com>
Diffstat (limited to 'target/linux/mvebu')
-rw-r--r--target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts84
1 files 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@2 {
- label = "rango:white:wlan_2g";
- reg = <0x2>;
- };
-
- wlan_5g@3 {
- label = "rango:white:wlan_5g";
- reg = <0x3>;
- };
-
usb2@5 {
label = "rango:white:usb2";
reg = <0x5>;
@@ -173,16 +163,6 @@
status = "okay";
};
- sdhci@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@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@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@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";
+ };
};