]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
LoongArch: dts: Add eMMC/SDIO controller support to Loongson-2K2000
authorBinbin Zhou <zhoubinbin@loongson.cn>
Tue, 5 Aug 2025 11:00:22 +0000 (19:00 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 5 Aug 2025 11:00:22 +0000 (19:00 +0800)
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>
arch/loongarch/boot/dts/loongson-2k2000-ref.dts
arch/loongarch/boot/dts/loongson-2k2000.dtsi

index ea9e6985d0e9fca980eaad34ca4089b6164ad447..3c6b1222038655c1f2e3048605a292b7ba8443b1 100644 (file)
        };
 };
 
+&emmc {
+       status = "okay";
+
+       bus-width = <8>;
+       cap-mmc-highspeed;
+       mmc-hs200-1_8v;
+       no-sd;
+       no-sdio;
+};
+
 &sata {
        status = "okay";
 };
index 9e0411f2754c9b5d77610089bfd094dcbebc04a0..00cc485b753b1cc421e5627580981c4613854071 100644 (file)
                        status = "disabled";
                };
 
+               emmc: mmc@79990000 {
+                       compatible = "loongson,ls2k2000-mmc";
+                       reg = <0x0 0x79990000 0x0 0x1000>;
+                       interrupt-parent = <&pic>;
+                       interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_EMMC_CLK>;
+                       status = "disabled";
+               };
+
+               mmc@79991000 {
+                       compatible = "loongson,ls2k2000-mmc";
+                       reg = <0x0 0x79991000 0x0 0x1000>;
+                       interrupt-parent = <&pic>;
+                       interrupts = <50 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_EMMC_CLK>;
+                       status = "disabled";
+               };
+
                pcie@1a000000 {
                        compatible = "loongson,ls2k-pci";
                        reg = <0x0 0x1a000000 0x0 0x02000000>,