Linux-Amlogic Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b
@ 2019-02-09  0:26 Martin Blumenstingl
  2019-02-09  0:26 ` [PATCH 1/2] ARM: dts: meson8: add the internal clock measurer Martin Blumenstingl
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Martin Blumenstingl @ 2019-02-09  0:26 UTC (permalink / raw)
  To: linux-amlogic, khilman; +Cc: Martin Blumenstingl, devicetree, linux-arm-kernel

The 32-bit Amlogic Meson SoCs also have a "clock measurer", just like
the newer 64-bit ones.

Add the node of the clock measurer to meson8.dtsi and meson8b.dtsi
so we can see the measured clock frequencies in:
/sys/kernel/debug/meson-clk-msr/


Martin Blumenstingl (2):
  ARM: dts: meson8: add the internal clock measurer
  ARM: dts: meson8b: add the internal clock measurer

 arch/arm/boot/dts/meson8.dtsi  | 5 +++++
 arch/arm/boot/dts/meson8b.dtsi | 5 +++++
 2 files changed, 10 insertions(+)

-- 
2.20.1


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

* [PATCH 1/2] ARM: dts: meson8: add the internal clock measurer
  2019-02-09  0:26 [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b Martin Blumenstingl
@ 2019-02-09  0:26 ` Martin Blumenstingl
  2019-02-09  0:26 ` [PATCH 2/2] ARM: dts: meson8b: " Martin Blumenstingl
  2019-02-15 23:01 ` [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b Kevin Hilman
  2 siblings, 0 replies; 5+ messages in thread
From: Martin Blumenstingl @ 2019-02-09  0:26 UTC (permalink / raw)
  To: linux-amlogic, khilman; +Cc: Martin Blumenstingl, devicetree, linux-arm-kernel

The Amlogic Meson8 SoC has an internal clock measurer IP which allows
measuring frequencies of various clock paths.
Enable it on meson8.dtsi so we can use it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson8.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi
index c9bd46120cb5..d83c6e96ace8 100644
--- a/arch/arm/boot/dts/meson8.dtsi
+++ b/arch/arm/boot/dts/meson8.dtsi
@@ -345,6 +345,11 @@
 		status = "disabled";
 	};
 
+	clock-measure@8758 {
+		compatible = "amlogic,meson8-clk-measure";
+		reg = <0x8758 0x1c>;
+	};
+
 	pinctrl_cbus: pinctrl@9880 {
 		compatible = "amlogic,meson8-cbus-pinctrl";
 		reg = <0x9880 0x10>;
-- 
2.20.1


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

* [PATCH 2/2] ARM: dts: meson8b: add the internal clock measurer
  2019-02-09  0:26 [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b Martin Blumenstingl
  2019-02-09  0:26 ` [PATCH 1/2] ARM: dts: meson8: add the internal clock measurer Martin Blumenstingl
@ 2019-02-09  0:26 ` " Martin Blumenstingl
  2019-02-15 23:01 ` [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b Kevin Hilman
  2 siblings, 0 replies; 5+ messages in thread
From: Martin Blumenstingl @ 2019-02-09  0:26 UTC (permalink / raw)
  To: linux-amlogic, khilman; +Cc: Martin Blumenstingl, devicetree, linux-arm-kernel

The Amlogic Meson8b SoC has an internal clock measurer IP which allows
measuring frequencies of various clock paths.
Enable it on meson8b.dtsi so we can use it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson8b.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index 7cec76158856..e7d5512c0608 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -294,6 +294,11 @@
 		status = "disabled";
 	};
 
+	clock-measure@8758 {
+		compatible = "amlogic,meson8b-clk-measure";
+		reg = <0x8758 0x1c>;
+	};
+
 	pinctrl_cbus: pinctrl@9880 {
 		compatible = "amlogic,meson8b-cbus-pinctrl";
 		reg = <0x9880 0x10>;
-- 
2.20.1


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

* Re: [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b
  2019-02-09  0:26 [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b Martin Blumenstingl
  2019-02-09  0:26 ` [PATCH 1/2] ARM: dts: meson8: add the internal clock measurer Martin Blumenstingl
  2019-02-09  0:26 ` [PATCH 2/2] ARM: dts: meson8b: " Martin Blumenstingl
@ 2019-02-15 23:01 ` Kevin Hilman
  2019-02-17 14:04   ` Martin Blumenstingl
  2 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2019-02-15 23:01 UTC (permalink / raw)
  To: Martin Blumenstingl, linux-amlogic
  Cc: Martin Blumenstingl, devicetree, linux-arm-kernel

Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:

> The 32-bit Amlogic Meson SoCs also have a "clock measurer", just like
> the newer 64-bit ones.
>
> Add the node of the clock measurer to meson8.dtsi and meson8b.dtsi
> so we can see the measured clock frequencies in:
> /sys/kernel/debug/meson-clk-msr/

Queued up, probably for v5.2, unless I get one more late PR in
(unlikely.)

Kevin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

* Re: [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b
  2019-02-15 23:01 ` [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b Kevin Hilman
@ 2019-02-17 14:04   ` Martin Blumenstingl
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Blumenstingl @ 2019-02-17 14:04 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: linux-amlogic, linux-arm-kernel, devicetree

Hi Kevin,

On Sat, Feb 16, 2019 at 12:02 AM Kevin Hilman <khilman@baylibre.com> wrote:
>
> Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:
>
> > The 32-bit Amlogic Meson SoCs also have a "clock measurer", just like
> > the newer 64-bit ones.
> >
> > Add the node of the clock measurer to meson8.dtsi and meson8b.dtsi
> > so we can see the measured clock frequencies in:
> > /sys/kernel/debug/meson-clk-msr/
>
> Queued up, probably for v5.2, unless I get one more late PR in
> (unlikely.)
that's fine for me - thank you!


Regards
Martin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-09  0:26 [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b Martin Blumenstingl
2019-02-09  0:26 ` [PATCH 1/2] ARM: dts: meson8: add the internal clock measurer Martin Blumenstingl
2019-02-09  0:26 ` [PATCH 2/2] ARM: dts: meson8b: " Martin Blumenstingl
2019-02-15 23:01 ` [PATCH 0/2] ARM: dts: add the clock measurer on Meson8/Meson8b Kevin Hilman
2019-02-17 14:04   ` Martin Blumenstingl

Linux-Amlogic Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-amlogic/0 linux-amlogic/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-amlogic linux-amlogic/ https://lore.kernel.org/linux-amlogic \
		linux-amlogic@lists.infradead.org linux-amlogic@archiver.kernel.org
	public-inbox-index linux-amlogic


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-amlogic


AGPL code for this site: git clone https://public-inbox.org/ public-inbox