Skip to content

Commit 1c0aec0

Browse files
Janusz Dziedzichauke
authored andcommitted
uboot-mediatek: bpi-r4-lite fix emmc frequency
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: openwrt/openwrt#22615 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent ef584a3 commit 1c0aec0

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

package/boot/uboot-mediatek/patches/470-add-bpi-r4-lite.patch

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@
11331133
+};
11341134
--- /dev/null
11351135
+++ b/arch/arm/dts/mt7987a-bpi-r4-lite-spim-nand-u-boot.dtsi
1136-
@@ -0,0 +1,69 @@
1136+
@@ -0,0 +1,82 @@
11371137
+// SPDX-License-Identifier: GPL-2.0
11381138
+/*
11391139
+ * Copyright (c) 2025 MediaTek Inc.
@@ -1163,6 +1163,19 @@
11631163
+ };
11641164
+};
11651165
+
1166+
+&mmc0 {
1167+
+ pinctrl-names = "default";
1168+
+ pinctrl-0 = <&mmc_pins_default>;
1169+
+ max-frequency = <48000000>;
1170+
+ bus-width = <4>;
1171+
+ cap-mmc-highspeed;
1172+
+ cap-mmc-hw-reset;
1173+
+ vmmc-supply = <&reg_3p3v>;
1174+
+ vqmmc-supply = <&reg_3p3v>;
1175+
+ non-removable;
1176+
+ status = "okay";
1177+
+};
1178+
+
11661179
+&spi2 {
11671180
+ pinctrl-names = "default";
11681181
+ pinctrl-0 = <&spi2_flash_pins>;

0 commit comments

Comments
 (0)