From: Dang Huynh <[email protected]>

Add SDMMC1 and 2 controllers for the RDA8810PL platform.

Signed-off-by: Dang Huynh <[email protected]>
---
 arch/arm/boot/dts/unisoc/rda8810pl.dtsi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/unisoc/rda8810pl.dtsi 
b/arch/arm/boot/dts/unisoc/rda8810pl.dtsi
index 
4b3ae19e9da41ee9ffa76dd4fff01824c07ce045..e68f8330ce2c4750b6944612bee03b42694137e4
 100644
--- a/arch/arm/boot/dts/unisoc/rda8810pl.dtsi
+++ b/arch/arm/boot/dts/unisoc/rda8810pl.dtsi
@@ -9,6 +9,7 @@
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/clock/rda,8810pl-apclk.h>
+#include <dt-bindings/dma/rda-ifc.h>
 
 / {
        compatible = "rda,8810pl";
@@ -199,6 +200,30 @@ uart1: serial@0 {
                        status = "disabled";
                };
 
+               mmc1: mmc@50000 {
+                       compatible = "rda,8810pl-mmc";
+                       reg = <0x50000 0x1000>;
+                       interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ap_syscon CLK_APB2>;
+                       clock-names = "apb";
+                       resets = <&ap_syscon RST_APB2_SDMMC1>;
+                       dmas = <&ifc IFC_SDMMC1_TX>, <&ifc IFC_SDMMC1_RX>;
+                       dma-names = "tx", "rx";
+                       status = "disabled";
+               };
+
+               mmc2: mmc@60000 {
+                       compatible = "rda,8810pl-mmc";
+                       reg = <0x60000 0x1000>;
+                       interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ap_syscon CLK_APB2>;
+                       clock-names = "apb";
+                       resets = <&ap_syscon RST_APB2_SDMMC2>;
+                       dmas = <&ifc IFC_SDMMC2_TX>, <&ifc IFC_SDMMC2_RX>;
+                       dma-names = "tx", "rx";
+                       status = "disabled";
+               };
+
                uart2: serial@10000 {
                        compatible = "rda,8810pl-uart";
                        reg = <0x10000 0x1000>;

-- 
2.51.0



Reply via email to