]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: am43xx-clocks: Add support for CLKOUT2
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 24 May 2017 08:43:41 +0000 (11:43 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 31 May 2017 17:19:56 +0000 (10:19 -0700)
Add the needed clock nodes for the CLKOUT2 to be usable by boards.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am43xx-clocks.dtsi

index d1d73b725f4769952452f425148c30aed751e8c3..430be5829f8fe0a63c9540fd773c8b5c55a47f7c 100644 (file)
                ti,bit-shift = <23>;
                reg = <0x4100>;
        };
+
+       clkout2_src_mux_ck: clkout2_src_mux_ck {
+               #clock-cells = <0>;
+               compatible = "ti,mux-clock";
+               clocks = <&clk_rc32k_ck>, <&sysclk_div>, <&dpll_ddr_m2_ck>,
+                        <&dpll_per_m2_ck>, <&dpll_disp_m2_ck>,
+                        <&dpll_mpu_m2_ck>, <&dpll_extdev_ck>;
+               reg = <0x4108>;
+       };
+
+       clkout2_pre_div_ck: clkout2_pre_div_ck {
+               #clock-cells = <0>;
+               compatible = "ti,divider-clock";
+               clocks = <&clkout2_src_mux_ck>;
+               ti,bit-shift = <4>;
+               ti,max-div = <8>;
+               reg = <0x4108>;
+       };
+
+       clkout2_post_div_ck: clkout2_post_div_ck {
+               #clock-cells = <0>;
+               compatible = "ti,divider-clock";
+               clocks = <&clkout2_pre_div_ck>;
+               ti,bit-shift = <8>;
+               ti,max-div = <32>;
+               ti,index-power-of-two;
+               reg = <0x4108>;
+       };
+
+       clkout2_ck: clkout2_ck {
+               #clock-cells = <0>;
+               compatible = "ti,gate-clock";
+               clocks = <&clkout2_post_div_ck>;
+               ti,bit-shift = <16>;
+               reg = <0x4108>;
+       };
 };