Skip to contentSkip to conversation

ARM: dts: am43xx-clocks: Add support for CLKOUT2

PATCH New Peter Ujfalusi 3 participants 4 messages May 24, 2017 – May 31, 2017 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: am43xx-clocks: Add support for CLKOUT2

Add the needed clock nodes for the CLKOUT2 to be usable by boards.

---
 arch/arm/boot/dts/am43xx-clocks.dtsi | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
arch/arm/boot/dts/am43xx-clocks.dtsi +36 -0
index d1d73b725f47..430be5829f8f 100644
@@ -833,4 +833,40 @@
 		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>;
+	};
 };
Signature · 1 line
2.13.0
#1 lore raw

PATCH 1/1 ARM: dts: am43xx-clocks: Add support for CLKOUT2

Quoted 1 line · Peter Ujfalusi

Add the needed clock nodes for the CLKOUT2 to be usable by boards.

Tero, care to ack?

Regards,

Tony

#2 lore raw

PATCH 1/1 ARM: dts: am43xx-clocks: Add support for CLKOUT2

Quoted 4 lines · Tony Lindgren
Quoted 1 line · Peter Ujfalusi

Add the needed clock nodes for the CLKOUT2 to be usable by boards.

Tero, care to ack?

I can't test the actual clock itself but the patch looks fine based on TRM, and doesn't seem to cause any issues either so:

#3 lore raw

PATCH 1/1 ARM: dts: am43xx-clocks: Add support for CLKOUT2

Quoted 10 lines · Tero Kristo
Quoted 4 lines · Tony Lindgren
Quoted 1 line · Peter Ujfalusi

Add the needed clock nodes for the CLKOUT2 to be usable by boards.

Tero, care to ack?

I can't test the actual clock itself but the patch looks fine based on TRM, and doesn't seem to cause any issues either so:

OK thanks applying into omap-for-v4.13/dt.

Tony