]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: amlogic: sm1-bananapi: lower SD card speed for stability
authorChristian Hewitt <christianshewitt@gmail.com>
Mon, 5 May 2025 14:37:00 +0000 (14:37 +0000)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 4 Sep 2025 13:11:11 +0000 (15:11 +0200)
Users report being able to boot (u-boot) from SD card but kernel
init then fails to mount partitions on the card containing boot
media resulting in first-boot failure. System logs show only the
probe of the mmc devices: the SD card is seen, but no partitions
are found so init fails to mount them and boot stalls.

Reducing the speed of the SD card from 50MHz to 35MHz results in
complete probing of the card and successful boot.

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20250505143700.4029484-1-christianshewitt@gmail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-sm1-bananapi.dtsi

index 538b35036954fba115a6759030d2d4fa5ea793d9..5e07f0f9538e542737f7448fb0a19c9243c8f3b3 100644 (file)
 
        bus-width = <4>;
        cap-sd-highspeed;
-       max-frequency = <50000000>;
+       /* Boot failures are observed at 50MHz */
+       max-frequency = <35000000>;
        disable-wp;
 
-       /* TOFIX: SD card is barely usable in SDR modes */
-
        cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
        vmmc-supply = <&tflash_vdd>;
        vqmmc-supply = <&vddio_c>;