aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mediatek/patches/402-update-bananapi-bpi-r64-device-tree.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/402-update-bananapi-bpi-r64-device-tree.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/402-update-bananapi-bpi-r64-device-tree.patch')
-rw-r--r--package/boot/uboot-mediatek/patches/402-update-bananapi-bpi-r64-device-tree.patch20
1 files changed, 15 insertions, 5 deletions
diff --git a/package/boot/uboot-mediatek/patches/402-update-bananapi-bpi-r64-device-tree.patch b/package/boot/uboot-mediatek/patches/402-update-bananapi-bpi-r64-device-tree.patch
index ca8f371d61..c8066a7e2d 100644
--- a/package/boot/uboot-mediatek/patches/402-update-bananapi-bpi-r64-device-tree.patch
+++ b/package/boot/uboot-mediatek/patches/402-update-bananapi-bpi-r64-device-tree.patch
@@ -1,6 +1,14 @@
--- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
-@@ -20,6 +20,7 @@
+@@ -5,6 +5,7 @@
+ */
+
+ /dts-v1/;
++#include <dt-bindings/input/linux-event-codes.h>
+ #include "mt7622.dtsi"
+ #include "mt7622-u-boot.dtsi"
+
+@@ -20,6 +21,7 @@
aliases {
spi0 = &snfi;
@@ -8,7 +16,7 @@
};
memory@40000000 {
-@@ -27,6 +28,42 @@
+@@ -27,6 +29,44 @@
reg = <0x40000000 0x40000000>;
};
@@ -18,11 +26,13 @@
+ reset {
+ 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>;
+ };
+ };
+
@@ -51,7 +61,7 @@
reg_1p8v: regulator-1p8v {
compatible = "regulator-fixed";
regulator-name = "fixed-1.8V";
-@@ -182,6 +219,7 @@
+@@ -182,6 +222,7 @@
};
&uart0 {
@@ -59,7 +69,7 @@
status = "okay";
};
-@@ -197,7 +235,7 @@
+@@ -197,7 +238,7 @@
status = "okay";
bus-width = <8>;
max-frequency = <50000000>;
@@ -68,7 +78,7 @@
vmmc-supply = <&reg_3p3v>;
vqmmc-supply = <&reg_3p3v>;
non-removable;
-@@ -208,7 +246,7 @@
+@@ -208,7 +249,7 @@
pinctrl-0 = <&mmc1_pins_default>;
status = "okay";
bus-width = <4>;