From: Tomasz Figa <t.figa@samsung.com>
To: linux-samsung-soc@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Kukjin Kim <kgene.kim@samsung.com>,
Thomas Gleixner <tglx@linutronix.de>,
Marc Zyngier <marc.zyngier@arm.com>,
Arnd Bergmann <arnd@arndb.de>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Tomasz Figa <tomasz.figa@gmail.com>,
Tomasz Figa <t.figa@samsung.com>
Subject: [PATCH 4/4] ARM: dts: exynos4: Add CPU topology data
Date: Fri, 18 Apr 2014 16:43:01 +0200 [thread overview]
Message-ID: <1397832181-5153-5-git-send-email-t.figa@samsung.com> (raw)
In-Reply-To: <1397832181-5153-1-git-send-email-t.figa@samsung.com>
After fixing non-banked GIC support in GIC driver, CPU nodes can be
safely added to Exynos4 device tree sources, along with appropriate
gic-offset properties.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
---
arch/arm/boot/dts/exynos4210.dtsi | 19 +++++++++++++++++++
arch/arm/boot/dts/exynos4212.dtsi | 19 +++++++++++++++++++
arch/arm/boot/dts/exynos4412.dtsi | 37 +++++++++++++++++++++++++++++++++----
3 files changed, 71 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi
index cacf614..e463361 100644
--- a/arch/arm/boot/dts/exynos4210.dtsi
+++ b/arch/arm/boot/dts/exynos4210.dtsi
@@ -25,6 +25,25 @@
/ {
compatible = "samsung,exynos4210", "samsung,exynos4";
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu@900 {
+ compatible = "arm,cortex-a9";
+ device_type = "cpu";
+ reg = <0x900>;
+ gic-offset = <0x0000>;
+ };
+
+ cpu@901 {
+ compatible = "arm,cortex-a9";
+ device_type = "cpu";
+ reg = <0x901>;
+ gic-offset = <0x8000>;
+ };
+ };
+
aliases {
pinctrl0 = &pinctrl_0;
pinctrl1 = &pinctrl_1;
diff --git a/arch/arm/boot/dts/exynos4212.dtsi b/arch/arm/boot/dts/exynos4212.dtsi
index 3c00e6e..211e129 100644
--- a/arch/arm/boot/dts/exynos4212.dtsi
+++ b/arch/arm/boot/dts/exynos4212.dtsi
@@ -22,6 +22,25 @@
/ {
compatible = "samsung,exynos4212", "samsung,exynos4";
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu@a00 {
+ compatible = "arm,cortex-a9";
+ device_type = "cpu";
+ reg = <0xa00>;
+ gic-offset = <0x0000>;
+ };
+
+ cpu@a01 {
+ compatible = "arm,cortex-a9";
+ device_type = "cpu";
+ reg = <0xa01>;
+ gic-offset = <0x8000>;
+ };
+ };
+
combiner: interrupt-controller@10440000 {
samsung,combiner-nr = <18>;
};
diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi
index 15d3c0a..04530ef 100644
--- a/arch/arm/boot/dts/exynos4412.dtsi
+++ b/arch/arm/boot/dts/exynos4412.dtsi
@@ -22,11 +22,40 @@
/ {
compatible = "samsung,exynos4412", "samsung,exynos4";
- combiner: interrupt-controller@10440000 {
- samsung,combiner-nr = <20>;
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu@a00 {
+ compatible = "arm,cortex-a9";
+ device_type = "cpu";
+ reg = <0xa00>;
+ gic-offset = <0x0000>;
+ };
+
+ cpu@a01 {
+ compatible = "arm,cortex-a9";
+ device_type = "cpu";
+ reg = <0xa01>;
+ gic-offset = <0x4000>;
+ };
+
+ cpu@a02 {
+ compatible = "arm,cortex-a9";
+ device_type = "cpu";
+ reg = <0xa02>;
+ gic-offset = <0x8000>;
+ };
+
+ cpu@a03 {
+ compatible = "arm,cortex-a9";
+ device_type = "cpu";
+ reg = <0xa03>;
+ gic-offset = <0xc000>;
+ };
};
- gic: interrupt-controller@10490000 {
- cpu-offset = <0x4000>;
+ combiner: interrupt-controller@10440000 {
+ samsung,combiner-nr = <20>;
};
};
--
1.9.2
next prev parent reply other threads:[~2014-04-18 14:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-18 14:42 [PATCH 0/4] Fixes for DT CPU topology specification on Exynos Tomasz Figa
2014-04-18 14:42 ` [PATCH 1/4] ARM: EXYNOS: Fix definitions of S5P_ARM_CORE_* registers Tomasz Figa
2014-04-19 7:47 ` Chanwoo Choi
2014-04-19 8:42 ` Tomasz Figa
2014-04-18 14:42 ` [PATCH 2/4] ARM: EXYNOS: Fix core ID used by platsmp and hotplug code Tomasz Figa
2014-04-20 7:23 ` Chander Kashyap
2014-04-25 22:47 ` Tomasz Figa
2014-04-18 14:43 ` [PATCH 3/4] irqchip: gic: Add support for per CPU bank offset specification in DT Tomasz Figa
2014-05-08 17:04 ` Rob Herring
2014-05-08 17:09 ` Tomasz Figa
2014-05-08 18:04 ` Rob Herring
2014-05-15 20:12 ` Tomasz Figa
2014-04-18 14:43 ` Tomasz Figa [this message]
2014-05-08 15:24 ` [PATCH 0/4] Fixes for DT CPU topology specification on Exynos Tomasz Figa
2014-05-15 20:15 ` Tomasz Figa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1397832181-5153-5-git-send-email-t.figa@samsung.com \
--to=t.figa@samsung.com \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=marc.zyngier@arm.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
--cc=tomasz.figa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox