]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: amlogic: c3: assign the MMC signal clocks
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 14 Jan 2026 17:08:48 +0000 (18:08 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 15 Jan 2026 08:04:25 +0000 (09:04 +0100)
The amlogic MMC driver operate with the assumption that MMC clock
is configured to provide 24MHz. It uses this path for low
rates such as 400kHz.

Assign the clocks to make sure they are properly configured

Fixes: 520b792e8317 ("arm64: dts: amlogic: add some device nodes for C3")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260114-amlogic-mmc-clocks-followup-v1-1-a999fafbe0aa@baylibre.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi

index 11e5323f95b736068d35bea6e915b500aa0ffc63..4e6757a57fb9a11300fd0912d994dcb10c96e519 100644 (file)
                                no-sd;
                                resets = <&reset RESET_SD_EMMC_A>;
                                status = "disabled";
+
+                               assigned-clocks = <&clkc_periphs CLKID_SD_EMMC_A>;
+                               assigned-clock-rates = <24000000>;
+
                        };
 
                        sd: mmc@8a000 {
                                no-sdio;
                                resets = <&reset RESET_SD_EMMC_B>;
                                status = "disabled";
+
+                               assigned-clocks = <&clkc_periphs CLKID_SD_EMMC_B>;
+                               assigned-clock-rates = <24000000>;
                        };
 
                        nand: nand-controller@8d000 {