]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: sophgo: sg2044: Add MMC controller device
authorInochi Amaoto <inochiama@gmail.com>
Sun, 8 Jun 2025 23:28:30 +0000 (07:28 +0800)
committerInochi Amaoto <inochiama@gmail.com>
Wed, 23 Jul 2025 01:55:14 +0000 (09:55 +0800)
Add emmc controller and sd controller DT node for SG2044.

Link: https://lore.kernel.org/r/20250608232836.784737-7-inochiama@gmail.com
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts
arch/riscv/boot/dts/sophgo/sg2044.dtsi

index 54cdf4239d5f67eefa4b7a1d99f74bac1ecd26f6..d077923097e80e9a59ba2280b1636ff3e8dbd407 100644 (file)
        clock-frequency = <25000000>;
 };
 
+&emmc {
+       bus-width = <4>;
+       no-sdio;
+       no-sd;
+       non-removable;
+       wp-inverted;
+       status = "okay";
+};
+
+&sd {
+       bus-width = <4>;
+       no-sdio;
+       no-mmc;
+       wp-inverted;
+       status = "okay";
+};
+
 &uart1 {
        status = "okay";
 };
index a4d2f8a13cc3e2d111cdb88f24701d3a1945acbb..6067901cde1e0992ba9a3987bde643b62a8bbe22 100644 (file)
                        status = "disabled";
                };
 
+               emmc: mmc@703000a000 {
+                       compatible = "sophgo,sg2044-dwcmshc", "sophgo,sg2042-dwcmshc";
+                       reg = <0x70 0x3000a000 0x0 0x1000>;
+                       clocks = <&clk CLK_GATE_EMMC>,
+                                <&clk CLK_GATE_AXI_EMMC>,
+                                <&clk CLK_GATE_EMMC_100K>;
+                       clock-names = "core", "bus", "timer";
+                       interrupt-parent = <&intc>;
+                       interrupts = <298 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               sd: mmc@703000b000 {
+                       compatible = "sophgo,sg2044-dwcmshc", "sophgo,sg2042-dwcmshc";
+                       reg = <0x70 0x3000b000 0x0 0x1000>;
+                       clocks = <&clk CLK_GATE_SD>,
+                                <&clk CLK_GATE_AXI_SD>,
+                                <&clk CLK_GATE_SD_100K>;
+                       clock-names = "core", "bus", "timer";
+                       interrupt-parent = <&intc>;
+                       interrupts = <300 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
                i2c0: i2c@7040005000 {
                        compatible = "sophgo,sg2044-i2c", "snps,designware-i2c";
                        reg = <0x70 0x40005000 0x0 0x1000>;