ramips: fix logic level for DIR-645 buttons
authorDavid Bauer <mail@david-bauer.net>
Wed, 26 Aug 2020 13:39:54 +0000 (15:39 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Nov 2020 16:28:30 +0000 (17:28 +0100)
The D-Link DIR-645 currently uses an incorrect logic level for its
buttons.

Correct them in order to prevent unintentional activation of failsafe
mode.

Reported-by: Perry Melange <isprotejesvalkata@gmail.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 929e8f0f553637076f2612fb1c2225c5cee1f7ab)

target/linux/ramips/dts/DIR-645.dts

index 35d011ebba4fbdeacc61f9e81c7bd843d42d6a23..40e5cd13abaf3dfb77c3c889d3cb029992c5450c 100644 (file)
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };