mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-05 09:56:12 +02:00
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: https://github.com/openwrt/openwrt/pull/22615 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
ef584a3632
commit
1c0aec0a85
@ -1133,7 +1133,7 @@
|
||||
+};
|
||||
--- /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.
|
||||
@ -1163,6 +1163,19 @@
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&mmc0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&mmc_pins_default>;
|
||||
+ max-frequency = <48000000>;
|
||||
+ bus-width = <4>;
|
||||
+ cap-mmc-highspeed;
|
||||
+ cap-mmc-hw-reset;
|
||||
+ vmmc-supply = <®_3p3v>;
|
||||
+ vqmmc-supply = <®_3p3v>;
|
||||
+ non-removable;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&spi2 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&spi2_flash_pins>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user