Skip to content

Commit

Permalink
dts: Add factory reset button as keybord (button)
Browse files Browse the repository at this point in the history
Also add a tool useful to test the reset button.
  • Loading branch information
mattiaswal authored and wkz committed Jan 27, 2024
1 parent 0549de0 commit 0aeae9d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion board/aarch64/dts/alder/alder.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions configs/aarch64_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0aeae9d

Please sign in to comment.