Browse Source

ipq40xx: support reset button for WPJ419

Compex WPJ419 has a reset button on a GPIO pin.

Signed-off-by: Phi Nguyen <[email protected]>
Phi Nguyen 5 years ago
parent
commit
eda9751d86

+ 10 - 0
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wpj419.dts

@@ -348,6 +348,16 @@
 			status = "okay";
 			status = "okay";
 		};
 		};
 	};
 	};
+
+	keys {
+		compatible = "gpio-keys";
+
+		reset {
+			label = "reset";
+			gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_RESTART>;
+		};
+	};
 };
 };
 
 
 &gmac0 {
 &gmac0 {