ARM: davinci: da850: add mmc DT entries
authorManjunathappa, Prakash <prakash.pm@ti.com>
Thu, 28 Mar 2013 13:12:01 +0000 (18:42 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 4 Apr 2013 11:27:24 +0000 (16:57 +0530)
Add DT entry for MMC. Also add entry for pinmux information.
Tested:
1) Without GPIO card detection and EDMA support as DT support for
   GPIO and EDMA are yet come.
2) By creating/deleting files and mounting/unmounting the partition.

Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Cc: linux-mmc@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: davinci-linux-open-source@linux.davincidsp.com
Cc: devicetree-discuss@lists.ozlabs.org
Cc: cjb@laptop.org
Cc: Sekhar Nori <nsekhar@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-evm.dts
arch/arm/boot/dts/da850.dtsi

index d1d091bee038a4e05f27d6caff6654858e0da44b..c5834a6c5bf4a555c8c725dc82abc6f9e6f72f25 100644 (file)
                wdt: wdt@1c21000 {
                        status = "okay";
                };
+               mmc0: mmc@1c40000 {
+                       max-frequency = <50000000>;
+                       bus-width = <4>;
+                       status = "okay";
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&mmc0_pins>;
+               };
        };
        nand_cs3@62000000 {
                status = "okay";
index 3ec1bda64356e781996f8c94b17a3e2da020baeb..3ade343f13cc437aa86a04202f4054db751e8fb9 100644 (file)
                                        0x10 0x00002200 0x0000ff00
                                >;
                        };
+                       mmc0_pins: pinmux_mmc_pins {
+                               pinctrl-single,bits = <
+                                       /* MMCSD0_DAT[3] MMCSD0_DAT[2]
+                                        * MMCSD0_DAT[1] MMCSD0_DAT[0]
+                                        * MMCSD0_CMD    MMCSD0_CLK
+                                        */
+                                       0x28 0x00222222  0x00ffffff
+                               >;
+                       };
                };
                serial0: serial@1c42000 {
                        compatible = "ns16550a";
                        reg = <0x21000 0x1000>;
                        status = "disabled";
                };
+               mmc0: mmc@1c40000 {
+                       compatible = "ti,da830-mmc";
+                       reg = <0x40000 0x1000>;
+                       interrupts = <16>;
+                       status = "disabled";
+               };
        };
        nand_cs3@62000000 {
                compatible = "ti,davinci-nand";