ARM: socfpga: dts: Add div-reg to the main_pll clocks
authorDinh Nguyen <dinguyen@altera.com>
Wed, 16 Apr 2014 20:05:15 +0000 (15:05 -0500)
committerDinh Nguyen <dinguyen@altera.com>
Tue, 6 May 2014 03:33:18 +0000 (22:33 -0500)
The mpu_clk, main_clk, and dbg_base_clk outputs from the main PLL go through a
pre-divider. Update socfpga.dtsi to represent those dividers for these
clocks.

Re-use the "div-reg" property that was used for the socfpga-gate-clock as this
is the same thing. Also update the documentation.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Documentation/devicetree/bindings/clock/altr_socfpga.txt
arch/arm/boot/dts/socfpga.dtsi

index 5dfd145..f72e80e 100644 (file)
@@ -21,8 +21,8 @@ Optional properties:
 - fixed-divider : If clocks have a fixed divider value, use this property.
 - clk-gate : For "socfpga-gate-clk", clk-gate contains the gating register
         and the bit index.
-- div-reg : For "socfpga-gate-clk", div-reg contains the divider register, bit shift,
-        and width.
+- div-reg : For "socfpga-gate-clk" and "socfpga-periph-clock", div-reg contains
+       the divider register, bit shift, and width.
 - clk-phase : For the sdmmc_clk, contains the value of the clock phase that controls
        the SDMMC CIU clock. The first value is the clk_sample(smpsel), and the second
        value is the cclk_in_drv(drvsel). The clk-phase is used to enable the correct
index 917464a..280966b 100644 (file)
                                                        #clock-cells = <0>;
                                                        compatible = "altr,socfpga-perip-clk";
                                                        clocks = <&main_pll>;
-                                                       fixed-divider = <2>;
+                                                       div-reg = <0xe0 0 9>;
                                                        reg = <0x48>;
                                                };
 
                                                        #clock-cells = <0>;
                                                        compatible = "altr,socfpga-perip-clk";
                                                        clocks = <&main_pll>;
-                                                       fixed-divider = <4>;
+                                                       div-reg = <0xe4 0 9>;
                                                        reg = <0x4C>;
                                                };
 
                                                        #clock-cells = <0>;
                                                        compatible = "altr,socfpga-perip-clk";
                                                        clocks = <&main_pll>;
-                                                       fixed-divider = <4>;
+                                                       div-reg = <0xe8 0 9>;
                                                        reg = <0x50>;
                                                };