ARM: mvebu: fix GPIO config on the Linksys boards
authorImre Kaloz <kaloz@openwrt.org>
Fri, 31 Jul 2015 18:42:00 +0000 (20:42 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 30 Mar 2016 09:29:30 +0000 (11:29 +0200)
Some of the GPIO configs were wrong in the submitted DTS files,
this patch fixes all affected boards.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Cc: <stable@vger.kernel.org> # v4.1 +
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/armada-385-linksys.dtsi
arch/arm/boot/dts/armada-xp-linksys-mamba.dts

index 3710755..6ebe9a7 100644 (file)
                button@2 {
                        label = "Factory Reset Button";
                        linux,code = <KEY_RESTART>;
-                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
                };
        };
 
                };
 
                sata {
-                       gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
        };
 
 &pinctrl {
        keys_pin: keys-pin {
-               marvell,pins = "mpp24", "mpp47";
+               marvell,pins = "mpp24", "mpp29";
                marvell,function = "gpio";
        };
 
index b89e6cf..7a46154 100644 (file)
                button@1 {
                        label = "WPS";
                        linux,code = <KEY_WPS_BUTTON>;
-                       gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
 
                button@2 {
                        label = "Factory Reset Button";
                        linux,code = <KEY_RESTART>;
-                       gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                };
        };