Skip to content

Commit

Permalink
qoriq: define reset button for Firebox M300
Browse files Browse the repository at this point in the history
This patch provides support for the Firebox M300 reset button.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
  • Loading branch information
f00b4r0 authored and stintel committed Jun 28, 2022
1 parent 4ab421b commit 19231cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Expand Up @@ -8,6 +8,7 @@
*/

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/include/ "t208xsi-pre.dtsi"
/include/ "t208xqds.dtsi"
Expand Down Expand Up @@ -333,6 +334,16 @@
};
};

keys {
compatible = "gpio-keys";

reset {
linux,code = <KEY_RESTART>;
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};

leds {
compatible = "gpio-leds";

Expand Down
3 changes: 2 additions & 1 deletion target/linux/qoriq/image/generic.mk
Expand Up @@ -6,7 +6,8 @@ define Device/watchguard_firebox-m300
DEVICE_COMPAT_VERSION := 1.1
DEVICE_DTS_DIR := $(DTS_DIR)/fsl
DEVICE_PACKAGES := \
kmod-hwmon-w83793 kmod-leds-gpio kmod-ptp-qoriq kmod-rtc-rs5c372a kmod-tpm-i2c-atmel
kmod-gpio-button-hotplug kmod-hwmon-w83793 kmod-leds-gpio kmod-ptp-qoriq \
kmod-rtc-rs5c372a kmod-tpm-i2c-atmel
KERNEL := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
KERNEL_SUFFIX := -fit-uImage.itb
IMAGES := sdcard.img.gz sysupgrade.img.gz
Expand Down

0 comments on commit 19231cf

Please sign in to comment.