[openwrt/openwrt] ipq40xx: support reset button for WPJ419

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 23 07:01:53 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/eda9751d86927672bb86f895e31a5b8bea76cdfc

commit eda9751d86927672bb86f895e31a5b8bea76cdfc
Author: Phi Nguyen <phind.uet at gmail.com>
AuthorDate: Thu Jul 23 11:03:52 2020 +0800

    ipq40xx: support reset button for WPJ419
    
    Compex WPJ419 has a reset button on a GPIO pin.
    
    Signed-off-by: Phi Nguyen <phind.uet at gmail.com>
---
 .../ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wpj419.dts    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wpj419.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wpj419.dts
index 3a0e0b8cfa..e8b7d3a89a 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wpj419.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wpj419.dts
@@ -348,6 +348,16 @@
 			status = "okay";
 		};
 	};
+
+	keys {
+		compatible = "gpio-keys";
+
+		reset {
+			label = "reset";
+			gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_RESTART>;
+		};
+	};
 };
 
 &gmac0 {



More information about the lede-commits mailing list