linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: msm8974: Move arch-timer out of soc node
@ 2014-03-11 21:24 Stephen Boyd
  2014-03-17 17:31 ` Christopher Covington
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2014-03-11 21:24 UTC (permalink / raw)
  To: linux-arm-kernel

The architected timer is not a register addressable piece of
hardware. Instead it's accessed through cp15 accessors. Move it
to the root of the devicetree to reflect this.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 arch/arm/boot/dts/qcom-msm8974.dtsi | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index 9d79b98f18bb..d3fe0c21c6f4 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -52,6 +52,15 @@
 		};
 	};
 
+	timer {
+		compatible = "arm,armv7-timer";
+		interrupts = <1 2 0xf08>,
+			     <1 3 0xf08>,
+			     <1 4 0xf08>,
+			     <1 1 0xf08>;
+		clock-frequency = <19200000>;
+	};
+
 	soc: soc {
 		#address-cells = <1>;
 		#size-cells = <1>;
@@ -66,15 +75,6 @@
 			      <0xf9002000 0x1000>;
 		};
 
-		timer {
-			compatible = "arm,armv7-timer";
-			interrupts = <1 2 0xf08>,
-				     <1 3 0xf08>,
-				     <1 4 0xf08>,
-				     <1 1 0xf08>;
-			clock-frequency = <19200000>;
-		};
-
 		timer at f9020000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

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

* [PATCH] ARM: dts: msm8974: Move arch-timer out of soc node
  2014-03-11 21:24 [PATCH] ARM: dts: msm8974: Move arch-timer out of soc node Stephen Boyd
@ 2014-03-17 17:31 ` Christopher Covington
  2014-03-17 17:33   ` Kumar Gala
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Covington @ 2014-03-17 17:31 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Stephen,

On 03/11/2014 05:24 PM, Stephen Boyd wrote:
> The architected timer is not a register addressable piece of
> hardware. Instead it's accessed through cp15 accessors. Move it
> to the root of the devicetree to reflect this.

I find this confusing, perhaps due to overloading of the word "register".
Aren't CP15's a class of coprocessor _registers_? Could it perhaps be clearer
to talk about memory-mapped versus CP15-mapped timers?

Is "soc" documented somewhere or is it just a name for a container? Assuming
the latter, it's not obvious to me why being a child of a system on chip node
would imply having memory mapped registers.

Thanks,
Christopher

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.

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

* [PATCH] ARM: dts: msm8974: Move arch-timer out of soc node
  2014-03-17 17:31 ` Christopher Covington
@ 2014-03-17 17:33   ` Kumar Gala
  2014-03-17 17:48     ` Christopher Covington
  0 siblings, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2014-03-17 17:33 UTC (permalink / raw)
  To: linux-arm-kernel


On Mar 17, 2014, at 12:31 PM, Christopher Covington <cov@codeaurora.org> wrote:

> Hi Stephen,
> 
> On 03/11/2014 05:24 PM, Stephen Boyd wrote:
>> The architected timer is not a register addressable piece of
>> hardware. Instead it's accessed through cp15 accessors. Move it
>> to the root of the devicetree to reflect this.
> 
> I find this confusing, perhaps due to overloading of the word "register".
> Aren't CP15's a class of coprocessor _registers_? Could it perhaps be clearer
> to talk about memory-mapped versus CP15-mapped timers?
> 
> Is "soc" documented somewhere or is it just a name for a container? Assuming
> the latter, it's not obvious to me why being a child of a system on chip node
> would imply having memory mapped registers.

?soc? is a container, since its compatible = "simple-bus?, this implies memory mapped register access for nodes inside of it.

- k
-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

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

* [PATCH] ARM: dts: msm8974: Move arch-timer out of soc node
  2014-03-17 17:33   ` Kumar Gala
@ 2014-03-17 17:48     ` Christopher Covington
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Covington @ 2014-03-17 17:48 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Kumar,

On 03/17/2014 01:33 PM, Kumar Gala wrote:
> 
> On Mar 17, 2014, at 12:31 PM, Christopher Covington <cov@codeaurora.org> wrote:
> 
>> Hi Stephen,
>>
>> On 03/11/2014 05:24 PM, Stephen Boyd wrote:
>>> The architected timer is not a register addressable piece of
>>> hardware. Instead it's accessed through cp15 accessors. Move it
>>> to the root of the devicetree to reflect this.
>>
>> I find this confusing, perhaps due to overloading of the word "register".
>> Aren't CP15's a class of coprocessor _registers_? Could it perhaps be clearer
>> to talk about memory-mapped versus CP15-mapped timers?
>>
>> Is "soc" documented somewhere or is it just a name for a container? Assuming
>> the latter, it's not obvious to me why being a child of a system on chip node
>> would imply having memory mapped registers.
> 
> ?soc? is a container, since its compatible = "simple-bus?, this implies
> memory mapped register access for nodes inside of it.

That makes sense. Thanks for explaining it.

Christopher

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.

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

end of thread, other threads:[~2014-03-17 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 21:24 [PATCH] ARM: dts: msm8974: Move arch-timer out of soc node Stephen Boyd
2014-03-17 17:31 ` Christopher Covington
2014-03-17 17:33   ` Kumar Gala
2014-03-17 17:48     ` Christopher Covington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).