arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 10 ++++++++++ arch/riscv/boot/dts/spacemit/k1.dtsi | 9 +++++++++ 2 files changed, 19 insertions(+)
Enable eMMC support for SpacemiT K1 SoC, successfully tested on
Bananapi-F3 board which shipped with a 16GB eMMC chip - KLMAG1JETD-B041.
Signed-off-by: Yixun Lan <dlan@gentoo.org>
---
Adjust DTS to enable eMMC support for K1 SoC, tested on Bananapi-F3
board.
This patch is currently based on SpacemiT SoC tree[1] for-next branch.
Link: https://github.com/spacemit-com/linux/ [1]
---
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 10 ++++++++++
arch/riscv/boot/dts/spacemit/k1.dtsi | 9 +++++++++
2 files changed, 19 insertions(+)
diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
index 816ef1bc358ec490aff184d5915d680dbd9f00cb..fe22c747c5012fe56d42ac8a7efdbbdb694f31b6 100644
--- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
@@ -30,6 +30,16 @@ led1 {
};
};
+&emmc {
+ bus-width = <8>;
+ mmc-hs400-1_8v;
+ mmc-hs400-enhanced-strobe;
+ non-removable;
+ no-sd;
+ no-sdio;
+ status = "okay";
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_2_cfg>;
diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
index c0f8c5fca975d73b6ea6886da13fcf55289cb16c..14097f1f6f447bd33ff3aaa07382d27ca8e59a48 100644
--- a/arch/riscv/boot/dts/spacemit/k1.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
@@ -511,6 +511,15 @@ pll: clock-controller@d4090000 {
#clock-cells = <1>;
};
+ emmc: mmc@d4281000 {
+ compatible = "spacemit,k1-sdhci";
+ reg = <0x0 0xd4281000 0x0 0x200>;
+ clocks = <&syscon_apmu CLK_SDH_AXI>, <&syscon_apmu CLK_SDH2>;
+ clock-names = "core", "io";
+ interrupts = <101>;
+ status = "disabled";
+ };
+
syscon_apmu: system-controller@d4282800 {
compatible = "spacemit,k1-syscon-apmu";
reg = <0x0 0xd4282800 0x0 0x400>;
---
base-commit: 3aa64cd126b4fd298ba5d28227ea3f82cd6f541c
change-id: 20250522-22-k1-sdhci-95c759a876b5
Best regards,
--
Yixun Lan
On Fri, 23 May 2025 21:21:04 +0800, Yixun Lan wrote:
> Enable eMMC support for SpacemiT K1 SoC, successfully tested on
> Bananapi-F3 board which shipped with a 16GB eMMC chip - KLMAG1JETD-B041.
>
>
Applied, thanks!
[1/1] riscv: dts: spacemit: enable eMMC for K1 SoC
https://github.com/spacemit-com/linux/commit/37df56ac500222384d6a6a13c69c489e01fb686c
Best regards,
--
Yixun Lan <dlan@gentoo.org>
© 2016 - 2025 Red Hat, Inc.