Skip to content

Commit d3eece0

Browse files
AaronDotchenhuacai
authored andcommitted
LoongArch: dts: Add eMMC/SDIO controller support to Loongson-2K2000
The Loongson-2K2000 integrates one eMMC controller and one SDIO controller. 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 df0fbf7 commit d3eece0

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@
3939
};
4040
};
4141

42+
&emmc {
43+
status = "okay";
44+
45+
bus-width = <8>;
46+
cap-mmc-highspeed;
47+
mmc-hs200-1_8v;
48+
no-sd;
49+
no-sdio;
50+
};
51+
4252
&sata {
4353
status = "okay";
4454
};

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,24 @@
259259
status = "disabled";
260260
};
261261

262+
emmc: mmc@79990000 {
263+
compatible = "loongson,ls2k2000-mmc";
264+
reg = <0x0 0x79990000 0x0 0x1000>;
265+
interrupt-parent = <&pic>;
266+
interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
267+
clocks = <&clk LOONGSON2_EMMC_CLK>;
268+
status = "disabled";
269+
};
270+
271+
mmc@79991000 {
272+
compatible = "loongson,ls2k2000-mmc";
273+
reg = <0x0 0x79991000 0x0 0x1000>;
274+
interrupt-parent = <&pic>;
275+
interrupts = <50 IRQ_TYPE_LEVEL_HIGH>;
276+
clocks = <&clk LOONGSON2_EMMC_CLK>;
277+
status = "disabled";
278+
};
279+
262280
pcie@1a000000 {
263281
compatible = "loongson,ls2k-pci";
264282
reg = <0x0 0x1a000000 0x0 0x02000000>,

0 commit comments

Comments
 (0)