All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency
@ 2014-08-20 12:59 Magnus Damm
  2014-08-20 14:36 ` Geert Uytterhoeven
  2014-08-20 14:42 ` Magnus Damm
  0 siblings, 2 replies; 5+ messages in thread
From: Magnus Damm @ 2014-08-20 12:59 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm+renesas@opensource.se>

Add CPU Frequency information to the sh7372 DTS file. This
will allow us to use the shared C code on sh7372 and Mackerel
which reads out the clock frequency from DT and calculates the
delay settings from there.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm/boot/dts/sh7372.dtsi |    1 +
 1 file changed, 1 insertion(+)

--- 0001/arch/arm/boot/dts/sh7372.dtsi
+++ work/arch/arm/boot/dts/sh7372.dtsi	2014-08-20 21:00:26.000000000 +0900
@@ -21,6 +21,7 @@
 			compatible = "arm,cortex-a8";
 			device_type = "cpu";
 			reg = <0x0>;
+			clock-frequency = <800000000>;
 		};
 	};
 

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

* Re: [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency
  2014-08-20 12:59 [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency Magnus Damm
@ 2014-08-20 14:36 ` Geert Uytterhoeven
  2014-08-20 14:42 ` Magnus Damm
  1 sibling, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-08-20 14:36 UTC (permalink / raw)
  To: linux-sh

Hi Magnus,

On Wed, Aug 20, 2014 at 3:02 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> Add CPU Frequency information to the sh7372 DTS file. This
> will allow us to use the shared C code on sh7372 and Mackerel
> which reads out the clock frequency from DT and calculates the
> delay settings from there.
>
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> ---
>
>  arch/arm/boot/dts/sh7372.dtsi |    1 +
>  1 file changed, 1 insertion(+)
>
> --- 0001/arch/arm/boot/dts/sh7372.dtsi
> +++ work/arch/arm/boot/dts/sh7372.dtsi  2014-08-20 21:00:26.000000000 +0900
> @@ -21,6 +21,7 @@
>                         compatible = "arm,cortex-a8";
>                         device_type = "cpu";
>                         reg = <0x0>;
> +                       clock-frequency = <800000000>;

Should this be overridden in sh7372-mackerel.dtsi?

While the sh7372 manual states 800 MHz, the Mackerel manual states
806 MHz.

>                 };
>         };

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency
  2014-08-20 12:59 [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency Magnus Damm
  2014-08-20 14:36 ` Geert Uytterhoeven
@ 2014-08-20 14:42 ` Magnus Damm
  1 sibling, 0 replies; 5+ messages in thread
From: Magnus Damm @ 2014-08-20 14:42 UTC (permalink / raw)
  To: linux-sh

Hi Geert,

On Wed, Aug 20, 2014 at 11:36 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> Hi Magnus,
>
> On Wed, Aug 20, 2014 at 3:02 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
>> Add CPU Frequency information to the sh7372 DTS file. This
>> will allow us to use the shared C code on sh7372 and Mackerel
>> which reads out the clock frequency from DT and calculates the
>> delay settings from there.
>>
>> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
>> ---
>>
>>  arch/arm/boot/dts/sh7372.dtsi |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> --- 0001/arch/arm/boot/dts/sh7372.dtsi
>> +++ work/arch/arm/boot/dts/sh7372.dtsi  2014-08-20 21:00:26.000000000 +0900
>> @@ -21,6 +21,7 @@
>>                         compatible = "arm,cortex-a8";
>>                         device_type = "cpu";
>>                         reg = <0x0>;
>> +                       clock-frequency = <800000000>;
>
> Should this be overridden in sh7372-mackerel.dtsi?
>
> While the sh7372 manual states 800 MHz, the Mackerel manual states
> 806 MHz.

I guess overriding makes sense for boards that operate out of spec... =/

For sh7372 this isn't really used by anything except the generic
(broken) DT case, so Mackerel legacy case doesn't care at this point.

Looking forward to throw sh7372 support out of the window. =)

/ magnus

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

* [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency
  2014-08-25  1:10 [GIT PULL] Renesas ARM Based SoC Init Delay Updates For v3.18 Simon Horman
@ 2014-08-25  1:10   ` Simon Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2014-08-25  1:10 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm+renesas@opensource.se>

Add CPU Frequency information to the sh7372 DTS file. This
will allow us to use the shared C code on sh7372 and Mackerel
which reads out the clock frequency from DT and calculates the
delay settings from there.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/sh7372.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/sh7372.dtsi b/arch/arm/boot/dts/sh7372.dtsi
index 249f65be2..f863a10 100644
--- a/arch/arm/boot/dts/sh7372.dtsi
+++ b/arch/arm/boot/dts/sh7372.dtsi
@@ -21,6 +21,7 @@
 			compatible = "arm,cortex-a8";
 			device_type = "cpu";
 			reg = <0x0>;
+			clock-frequency = <800000000>;
 		};
 	};
 
-- 
2.0.1


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

* [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency
@ 2014-08-25  1:10   ` Simon Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2014-08-25  1:10 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm+renesas@opensource.se>

Add CPU Frequency information to the sh7372 DTS file. This
will allow us to use the shared C code on sh7372 and Mackerel
which reads out the clock frequency from DT and calculates the
delay settings from there.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/sh7372.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/sh7372.dtsi b/arch/arm/boot/dts/sh7372.dtsi
index 249f65be2..f863a10 100644
--- a/arch/arm/boot/dts/sh7372.dtsi
+++ b/arch/arm/boot/dts/sh7372.dtsi
@@ -21,6 +21,7 @@
 			compatible = "arm,cortex-a8";
 			device_type = "cpu";
 			reg = <0x0>;
+			clock-frequency = <800000000>;
 		};
 	};
 
-- 
2.0.1

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

end of thread, other threads:[~2014-08-25  1:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 12:59 [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency Magnus Damm
2014-08-20 14:36 ` Geert Uytterhoeven
2014-08-20 14:42 ` Magnus Damm
2014-08-25  1:10 [GIT PULL] Renesas ARM Based SoC Init Delay Updates For v3.18 Simon Horman
2014-08-25  1:10 ` [PATCH 01/10] ARM: shmobile: sh7372: Update DTS to include CPU frequency Simon Horman
2014-08-25  1:10   ` Simon Horman

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.