arm64: dts: ac5: add mmc node and clock
authorElad Nachman <enachman@marvell.com>
Wed, 3 Jan 2024 17:28:03 +0000 (19:28 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Tue, 27 Feb 2024 16:35:15 +0000 (17:35 +0100)
Add mmc and mmc clock nodes to ac5 and ac5x device tree files

Signed-off-by: Elad Nachman <enachman@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts

index b5e042b8e9290ebbcc2dbdc3c66bd7d10d3bca13..5591939e057b8bd1d628223f20e986fe2f3df237 100644 (file)
@@ -77,7 +77,6 @@
                #address-cells = <2>;
                #size-cells = <2>;
                ranges;
-               dma-ranges;
 
                internal-regs@7f000000 {
                        #address-cells = <1>;
                        };
                };
 
+               mmc_dma: bus@80500000 {
+                               compatible = "simple-bus";
+                               ranges;
+                               #address-cells = <0x2>;
+                               #size-cells = <0x2>;
+                               reg = <0x0 0x80500000 0x0 0x100000>;
+                               dma-ranges = <0x0 0x0 0x2 0x0 0x0 0x80000000>;
+                               dma-coherent;
+
+                               sdhci: mmc@805c0000 {
+                                       compatible = "marvell,ac5-sdhci",
+                                                    "marvell,armada-ap806-sdhci";
+                                       reg = <0x0 0x805c0000 0x0 0x1000>;
+                                       interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
+                                       clocks = <&emmc_clock>, <&cnm_clock>;
+                                       clock-names = "core", "axi";
+                                       bus-width = <8>;
+                                       non-removable;
+                                       mmc-ddr-1_8v;
+                                       mmc-hs200-1_8v;
+                                       mmc-hs400-1_8v;
+                               };
+               };
+
                /*
                 * Dedicated section for devices behind 32bit controllers so we
                 * can configure specific DMA mapping for them
                        #clock-cells = <0>;
                        clock-frequency = <400000000>;
                };
+
+               emmc_clock: emmc-clock {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <400000000>;
+               };
        };
 };
index f0ebdb84eec9e18dceeb46541d77fb5a4dcd3a06..0c973d7a215a25091fa92041c5f7993a6a23f2fe 100644 (file)
@@ -99,3 +99,7 @@
                };
        };
 };
+
+&sdhci {
+       status = "okay";
+};