MIPS: DTS: jz4740: Add node for the MMC driver
authorPaul Cercueil <paul@crapouillou.net>
Fri, 25 Jan 2019 20:09:26 +0000 (17:09 -0300)
committerPaul Burton <paul.burton@mips.com>
Sun, 21 Jul 2019 22:23:24 +0000 (15:23 -0700)
Add a devicetree node for the jz4740-mmc driver.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: devicetree@vger.kernel.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mmc@vger.kernel.org
arch/mips/boot/dts/ingenic/jz4740.dtsi

index 2beb78a..3ffaf63 100644 (file)
                };
        };
 
+       mmc: mmc@10021000 {
+               compatible = "ingenic,jz4740-mmc";
+               reg = <0x10021000 0x1000>;
+
+               clocks = <&cgu JZ4740_CLK_MMC>;
+               clock-names = "mmc";
+
+               interrupt-parent = <&intc>;
+               interrupts = <14>;
+
+               dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
+               dma-names = "rx", "tx";
+
+               cap-sd-highspeed;
+               cap-mmc-highspeed;
+               cap-sdio-irq;
+       };
+
        uart0: serial@10030000 {
                compatible = "ingenic,jz4740-uart";
                reg = <0x10030000 0x100>;
                interrupts = <20>;
 
                clocks = <&cgu JZ4740_CLK_DMA>;
-
-               /* Disable dmac until we have something that uses it */
-               status = "disabled";
        };
 
        uhc: uhc@13030000 {