]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uboot-mediatek: bpi-r4-lite fix emmc frequency 22615/head
authorJanusz Dziedzic <janusz.dziedzic@holisticon.pl>
Tue, 31 Mar 2026 16:20:34 +0000 (18:20 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 7 Apr 2026 22:17:56 +0000 (00:17 +0200)
Use lower emmc frequency.
This fix issue when mmc write, from uboot, failed.

Failed case:
 - we boot from NAND
 - choose "Install bootloader, recovery and production to eMMC"

MMC erase: dev # 0, block # 0, count 1024 ... 1024 blocks erased: OK
MMC write: dev # 0, block # 0, count 1024 ... mmc write failed
0 blocks written: ERROR

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@holisticon.pl>
Link: https://github.com/openwrt/openwrt/pull/22615
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/boot/uboot-mediatek/patches/470-add-bpi-r4-lite.patch

index 44d3b82a09f9a95bfde5bf256441eecf66291565..a7075069a3c28d7430e4331bc4ed7ad974265b5c 100644 (file)
 +};
 --- /dev/null
 +++ b/arch/arm/dts/mt7987a-bpi-r4-lite-spim-nand-u-boot.dtsi
-@@ -0,0 +1,69 @@
+@@ -0,0 +1,82 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (c) 2025 MediaTek Inc.
 +      };
 +};
 +
++&mmc0 {
++      pinctrl-names = "default";
++      pinctrl-0 = <&mmc_pins_default>;
++      max-frequency = <48000000>;
++      bus-width = <4>;
++      cap-mmc-highspeed;
++      cap-mmc-hw-reset;
++      vmmc-supply = <&reg_3p3v>;
++      vqmmc-supply = <&reg_3p3v>;
++      non-removable;
++      status = "okay";
++};
++
 +&spi2 {
 +      pinctrl-names = "default";
 +      pinctrl-0 = <&spi2_flash_pins>;