linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: tegra: Add cpu node in device tree
@ 2013-01-11 13:11 Hiroshi Doyu
  2013-01-11 13:11 ` [PATCH 1/2] ARM: tegra20: Add cpu node Hiroshi Doyu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Hiroshi Doyu @ 2013-01-11 13:11 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

>From the discussion(*1) of CPU core# detection, DT cpu node will be
the only way to do it right. So we need to add cpu nodes on the
existing Tegra SoCs(T20/T30) first in order to remove the existing A9
SCU detection later, where DT cpu# detection fails, we would consider
a single cpu core avalable.

Tested only with T30.

Hiroshi Doyu (2):
  ARM: tegra20: Add cpu node
  ARM: tegra30: Add cpu node

 arch/arm/boot/dts/tegra20.dtsi |   29 +++++++++++++++++++++++++++++
 arch/arm/boot/dts/tegra30.dtsi |   29 +++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

*1:
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-January/140209.html

-- 
1.7.9.5

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

* [PATCH 1/2] ARM: tegra20: Add cpu node
  2013-01-11 13:11 [PATCH 0/2] ARM: tegra: Add cpu node in device tree Hiroshi Doyu
@ 2013-01-11 13:11 ` Hiroshi Doyu
  2013-01-11 13:26   ` [PATCH 1'/2] " Hiroshi Doyu
  2013-01-11 13:11 ` [PATCH 2/2] ARM: tegra30: " Hiroshi Doyu
  2013-01-11 14:44 ` [PATCH 0/2] ARM: tegra: Add cpu node in device tree Lorenzo Pieralisi
  2 siblings, 1 reply; 6+ messages in thread
From: Hiroshi Doyu @ 2013-01-11 13:11 UTC (permalink / raw)
  To: linux-arm-kernel

Add cpu node for tegra20.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
---
 arch/arm/boot/dts/tegra20.dtsi |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
index 6e13d13..434360b 100644
--- a/arch/arm/boot/dts/tegra20.dtsi
+++ b/arch/arm/boot/dts/tegra20.dtsi
@@ -430,6 +430,35 @@
 		status = "disabled";
 	};
 
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu at 0 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <0>;
+		};
+
+		cpu at 1 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <1>;
+		};
+
+		cpu at 2 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <2>;
+		};
+
+		cpu at 3 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <3>;
+		};
+	};
+
 	pmu {
 		compatible = "arm,cortex-a9-pmu";
 		interrupts = <0 56 0x04
-- 
1.7.9.5

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

* [PATCH 2/2] ARM: tegra30: Add cpu node
  2013-01-11 13:11 [PATCH 0/2] ARM: tegra: Add cpu node in device tree Hiroshi Doyu
  2013-01-11 13:11 ` [PATCH 1/2] ARM: tegra20: Add cpu node Hiroshi Doyu
@ 2013-01-11 13:11 ` Hiroshi Doyu
  2013-01-11 14:44 ` [PATCH 0/2] ARM: tegra: Add cpu node in device tree Lorenzo Pieralisi
  2 siblings, 0 replies; 6+ messages in thread
From: Hiroshi Doyu @ 2013-01-11 13:11 UTC (permalink / raw)
  To: linux-arm-kernel

Add cpu node for tegra30.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
---
 arch/arm/boot/dts/tegra30.dtsi |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/tegra30.dtsi b/arch/arm/boot/dts/tegra30.dtsi
index 5b02ff0..df3214f 100644
--- a/arch/arm/boot/dts/tegra30.dtsi
+++ b/arch/arm/boot/dts/tegra30.dtsi
@@ -467,6 +467,35 @@
 		status = "disabled";
 	};
 
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu at 0 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <0>;
+		};
+
+		cpu at 1 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <1>;
+		};
+
+		cpu at 2 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <2>;
+		};
+
+		cpu at 3 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <3>;
+		};
+	};
+
 	pmu {
 		compatible = "arm,cortex-a9-pmu";
 		interrupts = <0 144 0x04
-- 
1.7.9.5

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

* [PATCH 1'/2] ARM: tegra20: Add cpu node
  2013-01-11 13:11 ` [PATCH 1/2] ARM: tegra20: Add cpu node Hiroshi Doyu
@ 2013-01-11 13:26   ` Hiroshi Doyu
  2013-01-11 18:13     ` Stephen Warren
  0 siblings, 1 reply; 6+ messages in thread
From: Hiroshi Doyu @ 2013-01-11 13:26 UTC (permalink / raw)
  To: linux-arm-kernel

Add cpu node for tegra20.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
---
Update: To be honest, T20 doesn't have four cores but two:)
---
 arch/arm/boot/dts/tegra20.dtsi |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
index 6e13d13..10dfb83 100644
--- a/arch/arm/boot/dts/tegra20.dtsi
+++ b/arch/arm/boot/dts/tegra20.dtsi
@@ -430,6 +430,23 @@
 		status = "disabled";
 	};
 
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu at 0 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <0>;
+		};
+
+		cpu at 1 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <1>;
+		};
+	};
+
 	pmu {
 		compatible = "arm,cortex-a9-pmu";
 		interrupts = <0 56 0x04
-- 
1.7.9.5

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

* [PATCH 0/2] ARM: tegra: Add cpu node in device tree
  2013-01-11 13:11 [PATCH 0/2] ARM: tegra: Add cpu node in device tree Hiroshi Doyu
  2013-01-11 13:11 ` [PATCH 1/2] ARM: tegra20: Add cpu node Hiroshi Doyu
  2013-01-11 13:11 ` [PATCH 2/2] ARM: tegra30: " Hiroshi Doyu
@ 2013-01-11 14:44 ` Lorenzo Pieralisi
  2 siblings, 0 replies; 6+ messages in thread
From: Lorenzo Pieralisi @ 2013-01-11 14:44 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jan 11, 2013 at 01:11:52PM +0000, Hiroshi Doyu wrote:
> Hi,
> 
> From the discussion(*1) of CPU core# detection, DT cpu node will be
> the only way to do it right. So we need to add cpu nodes on the
> existing Tegra SoCs(T20/T30) first in order to remove the existing A9
> SCU detection later, where DT cpu# detection fails, we would consider
> a single cpu core avalable.
> 
> Tested only with T30.
> 
> Hiroshi Doyu (2):
>   ARM: tegra20: Add cpu node
>   ARM: tegra30: Add cpu node
> 
>  arch/arm/boot/dts/tegra20.dtsi |   29 +++++++++++++++++++++++++++++
>  arch/arm/boot/dts/tegra30.dtsi |   29 +++++++++++++++++++++++++++++
>  2 files changed, 58 insertions(+)
> 
> *1:
> http://lists.infradead.org/pipermail/linux-arm-kernel/2013-January/140209.html
Looks ok, but you should copy devicetree-discuss at lists.ozlabs.org for
any set DT related.

FWIW on the series:

Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

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

* [PATCH 1'/2] ARM: tegra20: Add cpu node
  2013-01-11 13:26   ` [PATCH 1'/2] " Hiroshi Doyu
@ 2013-01-11 18:13     ` Stephen Warren
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Warren @ 2013-01-11 18:13 UTC (permalink / raw)
  To: linux-arm-kernel

On 01/11/2013 06:26 AM, Hiroshi Doyu wrote:
> Add cpu node for tegra20.

Applied the series to Tegra's for-3.9/soc branch, in anticipation of the
Tegra114 changes being applied to that branch, which depend on these DT
changes.

I made some minor changes to capitalization of the commit messages.

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

end of thread, other threads:[~2013-01-11 18:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 13:11 [PATCH 0/2] ARM: tegra: Add cpu node in device tree Hiroshi Doyu
2013-01-11 13:11 ` [PATCH 1/2] ARM: tegra20: Add cpu node Hiroshi Doyu
2013-01-11 13:26   ` [PATCH 1'/2] " Hiroshi Doyu
2013-01-11 18:13     ` Stephen Warren
2013-01-11 13:11 ` [PATCH 2/2] ARM: tegra30: " Hiroshi Doyu
2013-01-11 14:44 ` [PATCH 0/2] ARM: tegra: Add cpu node in device tree Lorenzo Pieralisi

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).