Skip to content

Commit 37df56a

Browse files
committed
riscv: dts: spacemit: enable eMMC for K1 SoC
Enable eMMC support for SpacemiT K1 SoC, successfully tested on Bananapi-F3 board which shipped with a 16GB eMMC chip - KLMAG1JETD-B041. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yixun Lan <[email protected]>
1 parent 19272b3 commit 37df56a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@
3030
};
3131
};
3232

33+
&emmc {
34+
bus-width = <8>;
35+
mmc-hs400-1_8v;
36+
mmc-hs400-enhanced-strobe;
37+
non-removable;
38+
no-sd;
39+
no-sdio;
40+
status = "okay";
41+
};
42+
3343
&uart0 {
3444
pinctrl-names = "default";
3545
pinctrl-0 = <&uart0_2_cfg>;

arch/riscv/boot/dts/spacemit/k1.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,15 @@
511511
#clock-cells = <1>;
512512
};
513513

514+
emmc: mmc@d4281000 {
515+
compatible = "spacemit,k1-sdhci";
516+
reg = <0x0 0xd4281000 0x0 0x200>;
517+
clocks = <&syscon_apmu CLK_SDH_AXI>, <&syscon_apmu CLK_SDH2>;
518+
clock-names = "core", "io";
519+
interrupts = <101>;
520+
status = "disabled";
521+
};
522+
514523
syscon_apmu: system-controller@d4282800 {
515524
compatible = "spacemit,k1-syscon-apmu";
516525
reg = <0x0 0xd4282800 0x0 0x400>;

0 commit comments

Comments
 (0)