mvebu: fix portability issues in the image makefile code
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.1 / 001-fix_gpio_config_on_linksys_boards.patch
1 Some of the GPIO configs were wrong in the submitted DTS files,
2 this patch fixes all affected boards.
3
4 Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
5
6 Cc: <stable@vger.kernel.org> # v4.1 +
7 ---
8 arch/arm/boot/dts/armada-385-linksys.dtsi | 6 +++---
9 arch/arm/boot/dts/armada-xp-linksys-mamba.dts | 4 ++--
10 2 files changed, 5 insertions(+), 5 deletions(-)
11
12 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi
13 +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
14 @@ -243,7 +243,7 @@
15 button@2 {
16 label = "Factory Reset Button";
17 linux,code = <KEY_RESTART>;
18 - gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
19 + gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
20 };
21 };
22
23 @@ -258,7 +258,7 @@
24 };
25
26 sata {
27 - gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
28 + gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
29 default-state = "off";
30 };
31 };
32 @@ -311,7 +311,7 @@
33
34 &pinctrl {
35 keys_pin: keys-pin {
36 - marvell,pins = "mpp24", "mpp47";
37 + marvell,pins = "mpp24", "mpp29";
38 marvell,function = "gpio";
39 };
40
41 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
42 +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
43 @@ -302,13 +302,13 @@
44 button@1 {
45 label = "WPS";
46 linux,code = <KEY_WPS_BUTTON>;
47 - gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
48 + gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
49 };
50
51 button@2 {
52 label = "Factory Reset Button";
53 linux,code = <KEY_RESTART>;
54 - gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
55 + gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
56 };
57 };
58