ARM: shmobile: r8a7794: Add MMCIF clock to device tree
authorShinobu Uehara <shinobu.uehara.xc@renesas.com>
Tue, 27 May 2014 01:39:26 +0000 (10:39 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Sun, 21 Dec 2014 10:07:22 +0000 (19:07 +0900)
Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
[horms: omitted device node; only add clock]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7794.dtsi
include/dt-bindings/clock/r8a7794-clock.h

index c376676..8f78da5 100644 (file)
                        #clock-cells = <0>;
                        clock-output-names = "sd2";
                };
+               mmc0_clk: mmc0_clk@e6150240 {
+                       compatible = "renesas,r8a7794-div6-clock", "renesas,cpg-div6-clock";
+                       reg = <0 0xe6150240 0 4>;
+                       clocks = <&pll1_div2_clk>;
+                       #clock-cells = <0>;
+                       clock-output-names = "mmc0";
+               };
 
                /* Fixed factor clocks */
                pll1_div2_clk: pll1_div2_clk {
                        compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
                        reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
                        clocks = <&sd2_clk>, <&sd1_clk>, <&cpg_clocks R8A7794_CLK_SD0>,
-                                <&rclk_clk>, <&hp_clk>, <&hp_clk>;
+                                <&mmc0_clk>, <&rclk_clk>, <&hp_clk>, <&hp_clk>;
                        #clock-cells = <1>;
                        clock-indices = <
                                R8A7794_CLK_SDHI2 R8A7794_CLK_SDHI1 R8A7794_CLK_SDHI0
-                               R8A7794_CLK_CMT1 R8A7794_CLK_USBDMAC0
-                               R8A7794_CLK_USBDMAC1
+                               R8A7794_CLK_MMCIF0 R8A7794_CLK_CMT1
+                               R8A7794_CLK_USBDMAC0 R8A7794_CLK_USBDMAC1
                        >;
                        clock-output-names =
                                "sdhi2", "sdhi1", "sdhi0",
-                               "cmt1", "usbdmac0", "usbdmac1";
+                               "mmcif0", "cmt1", "usbdmac0", "usbdmac1";
                };
                mstp7_clks: mstp7_clks@e615014c {
                        compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
index ccd5667..d633230 100644 (file)
@@ -55,6 +55,7 @@
 #define R8A7794_CLK_SDHI2              11
 #define R8A7794_CLK_SDHI1              12
 #define R8A7794_CLK_SDHI0              14
+#define R8A7794_CLK_MMCIF0             15
 #define R8A7794_CLK_CMT1               29
 #define R8A7794_CLK_USBDMAC0           30
 #define R8A7794_CLK_USBDMAC1           31