From 42eeb22450f2c3225fa79a75c0ba881ac6809a77 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 20 Apr 2023 11:31:49 +0100 Subject: 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 --- package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch') diff --git a/package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch b/package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch index 2859ae42bf..855f39ed97 100644 --- a/package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch +++ b/package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch @@ -851,7 +851,7 @@ + --- /dev/null +++ b/arch/arm/dts/mt7986a-bpi-r3-sd.dts -@@ -0,0 +1,270 @@ +@@ -0,0 +1,272 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2021 MediaTek Inc. @@ -859,6 +859,7 @@ + */ + +/dts-v1/; ++#include +#include "mt7986.dtsi" +#include + @@ -893,6 +894,7 @@ + wps { + label = "reset"; + gpios = <&gpio 10 GPIO_ACTIVE_LOW>; ++ linux,code = ; + }; + }; + -- cgit v1.2.3