From: thierry.reding@gmail.com (Thierry Reding)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/4] ARM: tegra: Add legacy interrupt controller nodes
Date: Sat, 28 Jun 2014 03:02:29 +0200 [thread overview]
Message-ID: <1403917351-13215-2-git-send-email-thierry.reding@gmail.com> (raw)
In-Reply-To: <1403917351-13215-1-git-send-email-thierry.reding@gmail.com>
From: Thierry Reding <treding@nvidia.com>
Add device tree nodes for the legacy interrupt controller so that the
driver can get the register ranges from device tree rather than hard-
coding them.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Changes in v2:
- add chip-specific compatible string
- drop quinary controller on Tegra20
arch/arm/boot/dts/tegra114.dtsi | 9 +++++++++
arch/arm/boot/dts/tegra124.dtsi | 9 +++++++++
arch/arm/boot/dts/tegra20.dtsi | 8 ++++++++
arch/arm/boot/dts/tegra30.dtsi | 9 +++++++++
4 files changed, 35 insertions(+)
diff --git a/arch/arm/boot/dts/tegra114.dtsi b/arch/arm/boot/dts/tegra114.dtsi
index 335a1d8047f2..88cee16cb4dd 100644
--- a/arch/arm/boot/dts/tegra114.dtsi
+++ b/arch/arm/boot/dts/tegra114.dtsi
@@ -138,6 +138,15 @@
(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
};
+ interrupt-controller at 60004000 {
+ compatible = "nvidia,tegra114-ictlr", "nvidia,tegra30-ictlr";
+ reg = <0x60004000 0x40 /* primary controller */
+ 0x60004100 0x40 /* secondary controller */
+ 0x60004200 0x40 /* tertiary controller */
+ 0x60004300 0x40 /* quaternary controller */
+ 0x60004400 0x40>; /* quinary controller */
+ };
+
timer at 60005000 {
compatible = "nvidia,tegra114-timer", "nvidia,tegra20-timer";
reg = <0x60005000 0x400>;
diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi
index d675186d8eba..71d5f98bdc95 100644
--- a/arch/arm/boot/dts/tegra124.dtsi
+++ b/arch/arm/boot/dts/tegra124.dtsi
@@ -102,6 +102,15 @@
(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
};
+ interrupt-controller at 0,60004000 {
+ compatible = "nvidia,tegra124-ictlr", "nvidia,tegra30-ictlr";
+ reg = <0x0 0x60004000 0x0 0x40 /* primary controller */
+ 0x0 0x60004100 0x0 0x40 /* secondary controller */
+ 0x0 0x60004200 0x0 0x40 /* tertiary controller */
+ 0x0 0x60004300 0x0 0x40 /* quaternary controller */
+ 0x0 0x60004400 0x0 0x40>; /* quinary controller */
+ };
+
timer at 0,60005000 {
compatible = "nvidia,tegra124-timer", "nvidia,tegra20-timer";
reg = <0x0 0x60005000 0x0 0x400>;
diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
index 243d84cdbae8..542ffbea99d1 100644
--- a/arch/arm/boot/dts/tegra20.dtsi
+++ b/arch/arm/boot/dts/tegra20.dtsi
@@ -173,6 +173,14 @@
cache-level = <2>;
};
+ interrupt-controller at 60004000 {
+ compatible = "nvidia,tegra20-ictlr";
+ reg = <0x60004000 0x40 /* primary controller */
+ 0x60004100 0x40 /* secondary controller */
+ 0x60004200 0x40 /* tertiary controller */
+ 0x60004300 0x40>; /* quaternary controller */
+ };
+
timer at 60005000 {
compatible = "nvidia,tegra20-timer";
reg = <0x60005000 0x60>;
diff --git a/arch/arm/boot/dts/tegra30.dtsi b/arch/arm/boot/dts/tegra30.dtsi
index 0b1ede940d1f..2ead5745c712 100644
--- a/arch/arm/boot/dts/tegra30.dtsi
+++ b/arch/arm/boot/dts/tegra30.dtsi
@@ -253,6 +253,15 @@
cache-level = <2>;
};
+ interrupt-controller at 60004000 {
+ compatible = "nvidia,tegra30-ictlr";
+ reg = <0x60004000 0x40 /* primary controller */
+ 0x60004100 0x40 /* secondary controller */
+ 0x60004200 0x40 /* tertiary controller */
+ 0x60004300 0x40 /* quaternary controller */
+ 0x60004400 0x40>; /* quinary controller */
+ };
+
timer at 60005000 {
compatible = "nvidia,tegra30-timer", "nvidia,tegra20-timer";
reg = <0x60005000 0x400>;
--
2.0.0
next prev parent reply other threads:[~2014-06-28 1:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-28 1:02 [PATCH v2 1/4] of: Add NVIDIA Tegra Legacy Interrupt Controller binding Thierry Reding
2014-06-28 1:02 ` Thierry Reding [this message]
2014-06-28 1:02 ` [PATCH v2 3/4] soc/tegra: Initialize interrupt controller from DT Thierry Reding
2014-06-30 20:31 ` Stephen Warren
2014-06-28 1:02 ` [PATCH v2 4/4] soc/tegra: Remove unused defines Thierry Reding
2014-06-30 17:43 ` [PATCH v2 1/4] of: Add NVIDIA Tegra Legacy Interrupt Controller binding Mark Rutland
2014-06-30 18:38 ` Stephen Warren
2014-07-01 13:10 ` Mark Rutland
2014-06-30 20:32 ` Stephen Warren
2014-08-25 17:35 ` Stephen Warren
2014-08-26 6:17 ` Thierry Reding
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=1403917351-13215-2-git-send-email-thierry.reding@gmail.com \
--to=thierry.reding@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).