arm: dts: owl-s500: Add MMC support
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>
Tue, 29 Dec 2020 21:17:23 +0000 (23:17 +0200)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 31 Dec 2020 07:35:33 +0000 (13:05 +0530)
Add MMC controller nodes for Actions Semi S500 SoC, in order to
facilitate access to SD/EMMC/SDIO cards.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
arch/arm/boot/dts/owl-s500.dtsi

index b161726..7af7c9e 100644 (file)
                        clocks = <&cmu CLK_DMAC>;
                        power-domains = <&sps S500_PD_DMA>;
                };
+
+               mmc0: mmc@b0230000 {
+                       compatible = "actions,s500-mmc", "actions,owl-mmc";
+                       reg = <0xb0230000 0x38>;
+                       interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&cmu CLK_SD0>;
+                       resets = <&cmu RESET_SD0>;
+                       dmas = <&dma 2>;
+                       dma-names = "mmc";
+                       status = "disabled";
+               };
+
+               mmc1: mmc@b0234000 {
+                       compatible = "actions,s500-mmc", "actions,owl-mmc";
+                       reg = <0xb0234000 0x38>;
+                       interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&cmu CLK_SD1>;
+                       resets = <&cmu RESET_SD1>;
+                       dmas = <&dma 3>;
+                       dma-names = "mmc";
+                       status = "disabled";
+               };
+
+               mmc2: mmc@b0238000 {
+                       compatible = "actions,s500-mmc", "actions,owl-mmc";
+                       reg = <0xb0238000 0x38>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&cmu CLK_SD2>;
+                       resets = <&cmu RESET_SD2>;
+                       dmas = <&dma 4>;
+                       dma-names = "mmc";
+                       status = "disabled";
+               };
        };
 };