mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
	Boris Brezillon <boris.brezillon@free-electrons.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>,
	Jason Cooper <jason@lakedaemon.net>
Subject: [PATCHv2 1/8] irqchip: atmel-aic5: Add sama5d4 support
Date: Fri, 12 Sep 2014 17:43:00 +0200	[thread overview]
Message-ID: <1410536587-24607-2-git-send-email-alexandre.belloni@free-electrons.com> (raw)
In-Reply-To: <1410536587-24607-1-git-send-email-alexandre.belloni@free-electrons.com>

Add sama5d4 support to irq-atmel-aic5.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
Cc: Jason Cooper <jason@lakedaemon.net>
 .../devicetree/bindings/interrupt-controller/atmel,aic.txt     |  2 +-
 drivers/irqchip/irq-atmel-aic5.c                               | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
index 2742e9cfd6b1..f292917fa00d 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
+++ b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
@@ -2,7 +2,7 @@
 
 Required properties:
 - compatible: Should be "atmel,<chip>-aic"
-  <chip> can be "at91rm9200" or "sama5d3"
+  <chip> can be "at91rm9200", "sama5d3" or "sama5d4"
 - interrupt-controller: Identifies the node as an interrupt controller.
 - interrupt-parent: For single AIC system, it is an empty property.
 - #interrupt-cells: The number of cells to define the interrupts. It should be 3.
diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c
index dc7d98607a89..a11aae8fb006 100644
--- a/drivers/irqchip/irq-atmel-aic5.c
+++ b/drivers/irqchip/irq-atmel-aic5.c
@@ -295,6 +295,7 @@ static void __init sama5d3_aic_irq_fixup(struct device_node *root)
 
 static const struct of_device_id __initdata aic5_irq_fixups[] = {
 	{ .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup },
+	{ .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup },
 	{ /* sentinel */ },
 };
 
@@ -349,3 +350,12 @@ static int __init sama5d3_aic5_of_init(struct device_node *node,
 	return aic5_of_init(node, parent, NR_SAMA5D3_IRQS);
 }
 IRQCHIP_DECLARE(sama5d3_aic5, "atmel,sama5d3-aic", sama5d3_aic5_of_init);
+
+#define NR_SAMA5D4_IRQS		68
+
+static int __init sama5d4_aic5_of_init(struct device_node *node,
+				       struct device_node *parent)
+{
+	return aic5_of_init(node, parent, NR_SAMA5D4_IRQS);
+}
+IRQCHIP_DECLARE(sama5d4_aic5, "atmel,sama5d4-aic", sama5d4_aic5_of_init);
-- 
1.9.1


  reply	other threads:[~2014-09-12 15:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-12 15:42 [PATCHv2 0/8] Initial support for the Atmel SMART sama5d4 Alexandre Belloni
2014-09-12 15:43 ` Alexandre Belloni [this message]
2014-09-14  6:37   ` [PATCHv2 1/8] irqchip: atmel-aic5: Add sama5d4 support Jason Cooper
2014-09-12 15:43 ` [PATCHv2 2/8] clk: at91: add a driver for the h32mx clock Alexandre Belloni
2014-09-15  9:14   ` Nicolas Ferre
2014-09-12 15:43 ` [PATCHv2 3/8] ARM: at91: introduce basic SAMA5D4 support Alexandre Belloni
2014-09-12 15:43 ` [PATCHv2 4/8] ARM: at91: SAMA5D4 SoC detection code and low level routines Alexandre Belloni
2014-09-12 15:43 ` [PATCHv2 5/8] ARM: at91: dt: add device tree file for SAMA5D4 SoC Alexandre Belloni
2014-09-12 15:43 ` [PATCHv2 6/8] ARM: at91: dt: add device tree file for SAMA5D4ek board Alexandre Belloni
2014-09-12 15:43 ` [PATCHv2 7/8] ARM: at91: add sama5d4 support to sama5_defconfig Alexandre Belloni
2014-09-15  9:18   ` Nicolas Ferre
2014-09-12 15:43 ` [PATCHv2 8/8] ARM: at91: document Atmel SMART compatibles Alexandre Belloni
2014-09-12 16:47   ` Eric Bénard
2014-09-12 17:36     ` Alexandre Belloni
2014-09-15  9:02   ` Nicolas Ferre

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=1410536587-24607-2-git-send-email-alexandre.belloni@free-electrons.com \
    --to=alexandre.belloni@free-electrons.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=jason@lakedaemon.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nicolas.ferre@atmel.com \
    --cc=plagnioj@jcrosoft.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

all inboxes | Powered by JetHome®