]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
riscv: dts: spacemit: enable eMMC on Milk-V Jupiter
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 19 May 2026 04:12:37 +0000 (06:12 +0200)
committerYixun Lan <dlan@kernel.org>
Wed, 20 May 2026 08:30:47 +0000 (08:30 +0000)
The Milk-V Jupiter board has a connector for an eMMC module. Add an
entry for it in the device tree and alias it mmc0.

Mark the device as non-removable as eMMC modules have no CD pin and are
not supposed to be inserted or removed while the system is running. On
systems without an eMMC module installed, the kernel emits the following
informational message during boot:

mmc0: SDHCI controller on d4281000.mmc [d4281000.mmc] using ADMA
mmc0: Failed to initialize a non-removable card

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://patch.msgid.link/20260519041458.3287843-4-aurelien@aurel32.net
Signed-off-by: Yixun Lan <dlan@kernel.org>
arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts

index fbba3399234785dd9d55b7bb1167c805027e1755..1a833e716cb68ea5f130257d350f602bcb942b6e 100644 (file)
@@ -16,6 +16,7 @@
                ethernet1 = &eth1;
                i2c2 = &i2c2;
                i2c8 = &i2c8;
+               mmc0 = &emmc;
                serial0 = &uart0;
        };
 
        status = "okay";
 };
 
+&emmc {
+       bus-width = <8>;
+       mmc-hs400-1_8v;
+       mmc-hs400-enhanced-strobe;
+       non-removable;
+       no-sd;
+       no-sdio;
+       status = "okay";
+};
+
 &eth0 {
        phy-handle = <&rgmii0>;
        phy-mode = "rgmii-id";