Skip to content

Commit 06d380c

Browse files
AaronDotchenhuacai
authored andcommitted
LoongArch: dts: Add SDIO controller support to Loongson-2K0500
The Loongson-2K0500 integrates two SDIO controllers for SD storage cards and SDIO cards, supporting SD storage card boot. The module is supported now, enable it. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 8568df8 commit 06d380c

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

arch/loongarch/boot/dts/loongson-2k0500-ref.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@
4141
};
4242
};
4343

44+
&apbdma3 {
45+
status = "okay";
46+
};
47+
48+
&mmc0 {
49+
status = "okay";
50+
bus-width = <4>;
51+
};
52+
4453
&gmac0 {
4554
status = "okay";
4655

arch/loongarch/boot/dts/loongson-2k0500.dtsi

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
status = "disabled";
105105
};
106106

107-
dma-controller@1fe10c20 {
107+
apbdma2: dma-controller@1fe10c20 {
108108
compatible = "loongson,ls2k0500-apbdma", "loongson,ls2k1000-apbdma";
109109
reg = <0 0x1fe10c20 0 0x8>;
110110
interrupt-parent = <&eiointc>;
@@ -114,7 +114,7 @@
114114
status = "disabled";
115115
};
116116

117-
dma-controller@1fe10c30 {
117+
apbdma3: dma-controller@1fe10c30 {
118118
compatible = "loongson,ls2k0500-apbdma", "loongson,ls2k1000-apbdma";
119119
reg = <0 0x1fe10c30 0 0x8>;
120120
interrupt-parent = <&eiointc>;
@@ -437,6 +437,30 @@
437437
status = "disabled";
438438
};
439439

440+
mmc0: mmc@1ff64000 {
441+
compatible = "loongson,ls2k0500-mmc";
442+
reg = <0 0x1ff64000 0 0x2000>,
443+
<0 0x1fe10100 0 0x4>;
444+
interrupt-parent = <&eiointc>;
445+
interrupts = <57>;
446+
dmas = <&apbdma3 0>;
447+
dma-names = "rx-tx";
448+
clocks = <&clk LOONGSON2_APB_CLK>;
449+
status = "disabled";
450+
};
451+
452+
mmc@1ff66000 {
453+
compatible = "loongson,ls2k0500-mmc";
454+
reg = <0 0x1ff66000 0 0x2000>,
455+
<0 0x1fe10100 0 0x4>;
456+
interrupt-parent = <&eiointc>;
457+
interrupts = <58>;
458+
dmas = <&apbdma2 0>;
459+
dma-names = "rx-tx";
460+
clocks = <&clk LOONGSON2_APB_CLK>;
461+
status = "disabled";
462+
};
463+
440464
pmc: power-management@1ff6c000 {
441465
compatible = "loongson,ls2k0500-pmc", "syscon";
442466
reg = <0x0 0x1ff6c000 0x0 0x58>;

0 commit comments

Comments
 (0)