aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-04-20 11:31:49 +0100
committerDaniel Golle <daniel@makrotopia.org>2023-04-20 11:40:24 +0100
commit42eeb22450f2c3225fa79a75c0ba881ac6809a77 (patch)
tree20f204dc26c371e25a2f921582eb78a518bc75b5 /package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch
parent9f2ede5551cfc41b21ab447aa5938ec161ae6481 (diff)
downloadupstream-42eeb22450f2c3225fa79a75c0ba881ac6809a77.tar.gz
upstream-42eeb22450f2c3225fa79a75c0ba881ac6809a77.tar.bz2
upstream-42eeb22450f2c3225fa79a75c0ba881ac6809a77.zip
uboot-mediatek: fix factory/reset button
U-Boot commit ea6fdc13595 ("dm: button: add support for linux_code in button-gpio.c driver") makes it mandatory to specify linux,code for all buttons. As that broke handling of the reset button in U-Boot with the update to U-Boot 2023.04, add linux,code for all butons. Reported-by: @DragonBluep Fixes: 50f7c5af4a ("uboot-mediatek: update to v2023.04") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch')
-rw-r--r--package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch b/package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch
index 5a419e9432..2e85e6c3ce 100644
--- a/package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch
+++ b/package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch
@@ -144,7 +144,7 @@
+CONFIG_USB_STORAGE=y
--- /dev/null
+++ b/arch/arm/dts/mt7622-linksys-e8450-ubi.dts
-@@ -0,0 +1,194 @@
+@@ -0,0 +1,197 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2019 MediaTek Inc.
@@ -152,6 +152,7 @@
+ */
+
+/dts-v1/;
++#include <dt-bindings/input/linux-event-codes.h>
+#include "mt7622.dtsi"
+#include "mt7622-u-boot.dtsi"
+
@@ -175,11 +176,13 @@
+ factory {
+ label = "reset";
+ gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
++ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio 102 GPIO_ACTIVE_LOW>;
++ linux,code = <KEY_WPS_BUTTON>;
+ };
+ };
+