mvebu: several fixes for Linksys WRT3200ACM
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 11 Jan 2017 17:43:38 +0000 (18:43 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 13 Jan 2017 16:12:40 +0000 (17:12 +0100)
- Fix WLAN LEDs definition.
- Fix USB pinctrl definition.
- Remove SDHCI definition.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts

index faac0b727dd2321bb96abaf933c87d3191a60584..804ba0d6aa73399a91c10624037d591a5ca7519d 100644 (file)
                                                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>;
                                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";
                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 {
 
        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 {
                };
        };
 
-       gpio-leds {
-               power {
-                       label = "rango:white:power";
-               };
-
-               sata {
-                       label = "rango:white:sata";
-               };
-       };
-
        mvsw61xx {
                #address-cells = <1>;
                #size-cells = <0>;
 };
 
 &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";
        };
 
                marvell,pins = "mpp47";
                marvell,function = "gpio";
        };
+
+       power_led_pin: power-led-pin {
+               marvell,pins = "mpp56";
+               marvell,function = "gpio";
+       };
 };