openwrt/package/boot/uboot-mediatek/patches/403-add-bananapi_bpi-r64-snand.patch
Daniel Golle 42eeb22450 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>
2023-04-20 11:40:24 +01:00

34 lines
536 B
Diff

--- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
@@ -20,7 +20,7 @@
};
aliases {
- spi0 = &snfi;
+ spi0 = &snand;
ethernet0 = &eth;
};
@@ -208,17 +208,11 @@
};
};
-&snfi {
- pinctrl-names = "default", "snfi";
- pinctrl-0 = <&snor_pins>;
- pinctrl-1 = <&snfi_pins>;
+&snand {
+ pinctrl-names = "default";
+ pinctrl-0 = <&snfi_pins>;
status = "okay";
-
- spi-flash@0{
- compatible = "jedec,spi-nor";
- reg = <0>;
- u-boot,dm-pre-reloc;
- };
+ quad-spi;
};
&uart0 {