ARM: socfpga: dts: Add a clock node for sdmmc CIU
authorDinh Nguyen <dinguyen@opensource.altera.com>
Fri, 10 Apr 2015 20:40:42 +0000 (15:40 -0500)
committerDinh Nguyen <dinguyen@opensource.altera.com>
Mon, 11 May 2015 18:14:59 +0000 (13:14 -0500)
The CIU(Card Interface Unit) get its clock from the sdmmc_clk_divided clock
which is used to clock the card. The sdmmc_clk_divided clock is the sdmmc_clk
passed through a fixed divider of 4. This patch adds the sdmmc_clk_divided
node and makes the sdmmc_clk it's parent.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
---
v2: renamed ciu_clk to sdmmc_clk_divided

arch/arm/boot/dts/socfpga.dtsi

index d9176e6061731b7c42ee792338fab3509482c603..be4beda11d3d6bf7e3c0fafd089e7a228b93322a 100644 (file)
                                                clk-phase = <0 135>;
                                        };
 
+                                       sdmmc_clk_divided: sdmmc_clk_divided {
+                                               #clock-cells = <0>;
+                                               compatible = "altr,socfpga-gate-clk";
+                                               clocks = <&sdmmc_clk>;
+                                               clk-gate = <0xa0 8>;
+                                               fixed-divider = <4>;
+                                       };
+
                                        nand_x_clk: nand_x_clk {
                                                #clock-cells = <0>;
                                                compatible = "altr,socfpga-gate-clk";
                        fifo-depth = <0x400>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       clocks = <&l4_mp_clk>, <&sdmmc_clk>;
+                       clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>;
                        clock-names = "biu", "ciu";
                };