* [PATCH 2/3] dt-bindings: amlogic: Add Internal Clock Measurer bindings
[not found] <1530624110-4687-1-git-send-email-narmstrong@baylibre.com>
@ 2018-07-03 13:21 ` Neil Armstrong
2018-07-16 21:45 ` Rob Herring
0 siblings, 1 reply; 3+ messages in thread
From: Neil Armstrong @ 2018-07-03 13:21 UTC (permalink / raw)
To: khilman, devicetree
Cc: linux-amlogic, linux-kernel, linux-arm-kernel, Neil Armstrong
The Amlogic Meson GX SoCs embeds a clock measurer IP to measure the internal
clock paths frequencies.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
.../devicetree/bindings/soc/amlogic/clk-measure.txt | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
diff --git a/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt b/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
new file mode 100644
index 0000000..ba9183a
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
@@ -0,0 +1,15 @@
+Amlogic Internal Clock Measurer
+===============================
+
+The Amlogic SoCs contains an IP to measure the internal clocks.
+The precision is multiple of MHz, useful to debug the clock states.
+
+Required properties:
+- compatible: Shall contain "amlogic,meson-gx-clk-measure"
+- reg: base address and size of the Clock Measurer register space.
+
+Example:
+ clock-measure@8758 {
+ compatible = "amlogic,meson-gx-clk-measure";
+ reg = <0x0 0x8758 0x0 0x10>;
+ };
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/3] dt-bindings: amlogic: Add Internal Clock Measurer bindings
2018-07-03 13:21 ` [PATCH 2/3] dt-bindings: amlogic: Add Internal Clock Measurer bindings Neil Armstrong
@ 2018-07-16 21:45 ` Rob Herring
2018-07-17 11:30 ` Neil Armstrong
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2018-07-16 21:45 UTC (permalink / raw)
To: Neil Armstrong
Cc: khilman, devicetree, linux-amlogic, linux-kernel,
linux-arm-kernel
On Tue, Jul 03, 2018 at 03:21:49PM +0200, Neil Armstrong wrote:
> The Amlogic Meson GX SoCs embeds a clock measurer IP to measure the internal
> clock paths frequencies.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
> .../devicetree/bindings/soc/amlogic/clk-measure.txt | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
>
> diff --git a/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt b/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
> new file mode 100644
> index 0000000..ba9183a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
> @@ -0,0 +1,15 @@
> +Amlogic Internal Clock Measurer
> +===============================
> +
> +The Amlogic SoCs contains an IP to measure the internal clocks.
> +The precision is multiple of MHz, useful to debug the clock states.
What a simple yet useful debug tool.
> +
> +Required properties:
> +- compatible: Shall contain "amlogic,meson-gx-clk-measure"
> +- reg: base address and size of the Clock Measurer register space.
> +
> +Example:
> + clock-measure@8758 {
> + compatible = "amlogic,meson-gx-clk-measure";
> + reg = <0x0 0x8758 0x0 0x10>;
This doesn't really look like its own block though. Can't the parent
device instantiate the driver for this?
> + };
> --
> 2.7.4
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/3] dt-bindings: amlogic: Add Internal Clock Measurer bindings
2018-07-16 21:45 ` Rob Herring
@ 2018-07-17 11:30 ` Neil Armstrong
0 siblings, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2018-07-17 11:30 UTC (permalink / raw)
To: Rob Herring
Cc: khilman, devicetree, linux-amlogic, linux-kernel,
linux-arm-kernel
Hi Rob,
On 16/07/2018 23:45, Rob Herring wrote:
> On Tue, Jul 03, 2018 at 03:21:49PM +0200, Neil Armstrong wrote:
>> The Amlogic Meson GX SoCs embeds a clock measurer IP to measure the internal
>> clock paths frequencies.
>>
>> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
>> ---
>> .../devicetree/bindings/soc/amlogic/clk-measure.txt | 15 +++++++++++++++
>> 1 file changed, 15 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
>>
>> diff --git a/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt b/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
>> new file mode 100644
>> index 0000000..ba9183a
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt
>> @@ -0,0 +1,15 @@
>> +Amlogic Internal Clock Measurer
>> +===============================
>> +
>> +The Amlogic SoCs contains an IP to measure the internal clocks.
>> +The precision is multiple of MHz, useful to debug the clock states.
>
> What a simple yet useful debug tool.
>
>> +
>> +Required properties:
>> +- compatible: Shall contain "amlogic,meson-gx-clk-measure"
>> +- reg: base address and size of the Clock Measurer register space.
>> +
>> +Example:
>> + clock-measure@8758 {
>> + compatible = "amlogic,meson-gx-clk-measure";
>> + reg = <0x0 0x8758 0x0 0x10>;
>
> This doesn't really look like its own block though. Can't the parent
> device instantiate the driver for this?
As weird as it seems, on the GX family the registers are not on a aligned boundary, but yes it's its own block.
On newer SoCs, they have a more aligned register address, with the exact same register set.
Neil
>
>
>> + };
>> --
>> 2.7.4
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-17 11:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1530624110-4687-1-git-send-email-narmstrong@baylibre.com>
2018-07-03 13:21 ` [PATCH 2/3] dt-bindings: amlogic: Add Internal Clock Measurer bindings Neil Armstrong
2018-07-16 21:45 ` Rob Herring
2018-07-17 11:30 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox