Skip to content

Commit 5459f9a

Browse files
author
Dinh Nguyen
committed
ARM: socfpga: dts: Add a clock node for sdmmc CIU
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
1 parent 88c8e4c commit 5459f9a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

arch/arm/boot/dts/socfpga.dtsi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,14 @@
451451
clk-phase = <0 135>;
452452
};
453453

454+
sdmmc_clk_divided: sdmmc_clk_divided {
455+
#clock-cells = <0>;
456+
compatible = "altr,socfpga-gate-clk";
457+
clocks = <&sdmmc_clk>;
458+
clk-gate = <0xa0 8>;
459+
fixed-divider = <4>;
460+
};
461+
454462
nand_x_clk: nand_x_clk {
455463
#clock-cells = <0>;
456464
compatible = "altr,socfpga-gate-clk";
@@ -635,7 +643,7 @@
635643
fifo-depth = <0x400>;
636644
#address-cells = <1>;
637645
#size-cells = <0>;
638-
clocks = <&l4_mp_clk>, <&sdmmc_clk>;
646+
clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>;
639647
clock-names = "biu", "ciu";
640648
};
641649

0 commit comments

Comments
 (0)