From 04091ffd686160c02a373dc784601207745c3054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20VAR=C3=88NE?= Date: Tue, 14 Jun 2022 15:54:48 +0200 Subject: qoriq: define reset button for Firebox M300 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch provides support for the Firebox M300 reset button. Signed-off-by: Thibaut VARĂˆNE (cherry picked from commit 19231cf83835db563ee7431b502fe1695ef1f559) --- .../arch/powerpc/boot/dts/fsl/watchguard-firebox-m300.dts | 11 +++++++++++ target/linux/qoriq/image/generic.mk | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'target') diff --git a/target/linux/qoriq/files/arch/powerpc/boot/dts/fsl/watchguard-firebox-m300.dts b/target/linux/qoriq/files/arch/powerpc/boot/dts/fsl/watchguard-firebox-m300.dts index 4ba30a3c0f..15dc5f445e 100644 --- a/target/linux/qoriq/files/arch/powerpc/boot/dts/fsl/watchguard-firebox-m300.dts +++ b/target/linux/qoriq/files/arch/powerpc/boot/dts/fsl/watchguard-firebox-m300.dts @@ -8,6 +8,7 @@ */ #include +#include /include/ "t208xsi-pre.dtsi" /include/ "t208xqds.dtsi" @@ -333,6 +334,16 @@ }; }; + keys { + compatible = "gpio-keys"; + + reset { + linux,code = ; + gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + }; + leds { compatible = "gpio-leds"; diff --git a/target/linux/qoriq/image/generic.mk b/target/linux/qoriq/image/generic.mk index b2689850b3..d2b60d2296 100644 --- a/target/linux/qoriq/image/generic.mk +++ b/target/linux/qoriq/image/generic.mk @@ -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 -- cgit v1.2.3