All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2
@ 2017-05-24  8:43 ` Peter Ujfalusi
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Ujfalusi @ 2017-05-24  8:43 UTC (permalink / raw)
  To: tony, t-kristo, robh+dt
  Cc: devicetree, linux-omap, linux-arm-kernel, bcousson

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

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/boot/dts/am43xx-clocks.dtsi | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi b/arch/arm/boot/dts/am43xx-clocks.dtsi
index d1d73b725f47..430be5829f8f 100644
--- a/arch/arm/boot/dts/am43xx-clocks.dtsi
+++ b/arch/arm/boot/dts/am43xx-clocks.dtsi
@@ -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>;
+	};
 };
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2
@ 2017-05-24  8:43 ` Peter Ujfalusi
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Ujfalusi @ 2017-05-24  8:43 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/boot/dts/am43xx-clocks.dtsi | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi b/arch/arm/boot/dts/am43xx-clocks.dtsi
index d1d73b725f47..430be5829f8f 100644
--- a/arch/arm/boot/dts/am43xx-clocks.dtsi
+++ b/arch/arm/boot/dts/am43xx-clocks.dtsi
@@ -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>;
+	};
 };
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2
  2017-05-24  8:43 ` Peter Ujfalusi
@ 2017-05-26 15:52     ` Tony Lindgren
  -1 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2017-05-26 15:52 UTC (permalink / raw)
  To: Peter Ujfalusi
  Cc: t-kristo-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	bcousson-rdvid1DuHRBWk0Htik3J/w,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

* Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> [170524 01:47]:
> Add the needed clock nodes for the CLKOUT2 to be usable by boards.

Tero, care to ack?

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2
@ 2017-05-26 15:52     ` Tony Lindgren
  0 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2017-05-26 15:52 UTC (permalink / raw)
  To: linux-arm-kernel

* Peter Ujfalusi <peter.ujfalusi@ti.com> [170524 01:47]:
> Add the needed clock nodes for the CLKOUT2 to be usable by boards.

Tero, care to ack?

Regards,

Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2
  2017-05-26 15:52     ` Tony Lindgren
@ 2017-05-29  8:27       ` Tero Kristo
  -1 siblings, 0 replies; 8+ messages in thread
From: Tero Kristo @ 2017-05-29  8:27 UTC (permalink / raw)
  To: Tony Lindgren, Peter Ujfalusi
  Cc: devicetree, linux-omap, robh+dt, linux-arm-kernel, bcousson

On 26/05/17 18:52, Tony Lindgren wrote:
> * Peter Ujfalusi <peter.ujfalusi@ti.com> [170524 01:47]:
>> 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:

Acked-by: Tero Kristo <t-kristo@ti.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2
@ 2017-05-29  8:27       ` Tero Kristo
  0 siblings, 0 replies; 8+ messages in thread
From: Tero Kristo @ 2017-05-29  8:27 UTC (permalink / raw)
  To: linux-arm-kernel

On 26/05/17 18:52, Tony Lindgren wrote:
> * Peter Ujfalusi <peter.ujfalusi@ti.com> [170524 01:47]:
>> 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:

Acked-by: Tero Kristo <t-kristo@ti.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2
  2017-05-29  8:27       ` Tero Kristo
@ 2017-05-31 17:20         ` Tony Lindgren
  -1 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2017-05-31 17:20 UTC (permalink / raw)
  To: Tero Kristo; +Cc: devicetree, robh+dt, bcousson, linux-omap, linux-arm-kernel

* Tero Kristo <t-kristo@ti.com> [170529 01:31]:
> On 26/05/17 18:52, Tony Lindgren wrote:
> > * Peter Ujfalusi <peter.ujfalusi@ti.com> [170524 01:47]:
> > > 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:
> 
> Acked-by: Tero Kristo <t-kristo@ti.com>

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

Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2
@ 2017-05-31 17:20         ` Tony Lindgren
  0 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2017-05-31 17:20 UTC (permalink / raw)
  To: linux-arm-kernel

* Tero Kristo <t-kristo@ti.com> [170529 01:31]:
> On 26/05/17 18:52, Tony Lindgren wrote:
> > * Peter Ujfalusi <peter.ujfalusi@ti.com> [170524 01:47]:
> > > 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:
> 
> Acked-by: Tero Kristo <t-kristo@ti.com>

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

Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-05-31 17:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24  8:43 [PATCH] ARM: dts: am43xx-clocks: Add support for CLKOUT2 Peter Ujfalusi
2017-05-24  8:43 ` Peter Ujfalusi
     [not found] ` <20170524084341.16698-1-peter.ujfalusi-l0cyMroinI0@public.gmane.org>
2017-05-26 15:52   ` Tony Lindgren
2017-05-26 15:52     ` Tony Lindgren
2017-05-29  8:27     ` Tero Kristo
2017-05-29  8:27       ` Tero Kristo
2017-05-31 17:20       ` Tony Lindgren
2017-05-31 17:20         ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.