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)
committerDavid Bauer <mail@david-bauer.net>
Sat, 3 Oct 2020 20:52:58 +0000 (22:52 +0200)
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>
target/linux/ramips/dts/rt3662_dlink_dir-645.dts

index 778ee3c1e76ab3e47b7617a46469c63c166ecec5..23313759c7960897ea89edbef314e662dd6d9d1a 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>;
                };
        };