ipq40xx: support reset button for WPJ419
authorPhi Nguyen <phind.uet@gmail.com>
Thu, 23 Jul 2020 03:03:52 +0000 (11:03 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 23 Jul 2020 10:56:58 +0000 (12:56 +0200)
Compex WPJ419 has a reset button on a GPIO pin.

Signed-off-by: Phi Nguyen <phind.uet@gmail.com>
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wpj419.dts

index 3a0e0b8cfa9e7d4c06008ed6a72846615b737fdd..e8b7d3a89aacc80688ebe537badf17c890e81ff5 100644 (file)
                        status = "okay";
                };
        };
+
+       keys {
+               compatible = "gpio-keys";
+
+               reset {
+                       label = "reset";
+                       gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
+               };
+       };
 };
 
 &gmac0 {