dts: Add factory reset button as keybord (button)

Also add a tool useful to test the reset button.
This commit is contained in:
Mattias Walström
2024-01-27 23:53:54 +01:00
committed by Tobias Waldekranz
parent 0549de0eec
commit 0aeae9d8e8
2 changed files with 13 additions and 1 deletions
+12 -1
View File
@@ -6,6 +6,7 @@
* Device tree for Alder board
*/
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
@@ -647,9 +648,19 @@
};
};
/* Reset button */
/ {
gpio-keys {
compatible = "gpio-keys";
up {
label = "factory-reset";
linux,code = <KEY_RESTART>;
gpios = <&GPIO_RESET_BUTTON>;
};
};
};
/* System LEDs */
/ {
power-a {
compatible = "gpio-charger";
+1
View File
@@ -134,6 +134,7 @@ BR2_PACKAGE_KLISH_PLUGIN_INFIX=y
BR2_PACKAGE_LOWDOWN=y
BR2_PACKAGE_TETRIS=y
BR2_PACKAGE_QUERIERD=y
BR2_PACKAGE_LIBINPUT=y
DISK_IMAGE_BOOT_BIN=y
GNS3_APPLIANCE_RAM=512
GNS3_APPLIANCE_IFNUM=10