فهرست منبع

mpc85xx: add Enterasys WS-AP3715i reset button

The reset button was missing from the Enterasys WS-AP3715i DTS.
Add the node required for making the reset button work.

Signed-off-by: David Bauer <[email protected]>
David Bauer 2 سال پیش
والد
کامیت
0e8641d3b0
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts

+ 11 - 0
target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts

@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 /include/ "fsl/p1010si-pre.dtsi"
 
@@ -70,6 +71,16 @@
 		};
 	};
 
+	keys {
+		compatible = "gpio-keys";
+
+		reset {
+			label = "Reset button";
+			gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_RESTART>;
+		};
+	};
+
 	soc: soc@ffe00000 {
 		ranges = <0x0 0x0 0xffe00000 0x100000>;