* [PATCH] irqchip: atmel-aic5: Add sama5d2 support
@ 2015-06-18 13:07 Nicolas Ferre
2015-06-18 13:33 ` [tip:irq/core] " tip-bot for Nicolas Ferre
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Ferre @ 2015-06-18 13:07 UTC (permalink / raw)
To: Boris BREZILLON, Alexandre Belloni, Ludovic Desroches,
Jason Cooper, linux-arm-kernel
Cc: Thomas Gleixner, linux-kernel, Nicolas Ferre
Add sama5d2 support to irq-atmel-aic5.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
.../devicetree/bindings/interrupt-controller/atmel,aic.txt | 2 +-
drivers/irqchip/irq-atmel-aic5.c | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
index f292917fa00d..0e9f09a6a2fe 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", "sama5d3" or "sama5d4"
+ <chip> can be "at91rm9200", "sama5d2", "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 a2e8c3f876cb..459bf4429d36 100644
--- a/drivers/irqchip/irq-atmel-aic5.c
+++ b/drivers/irqchip/irq-atmel-aic5.c
@@ -339,6 +339,15 @@ static int __init aic5_of_init(struct device_node *node,
return 0;
}
+#define NR_SAMA5D2_IRQS 77
+
+static int __init sama5d2_aic5_of_init(struct device_node *node,
+ struct device_node *parent)
+{
+ return aic5_of_init(node, parent, NR_SAMA5D2_IRQS);
+}
+IRQCHIP_DECLARE(sama5d2_aic5, "atmel,sama5d2-aic", sama5d2_aic5_of_init);
+
#define NR_SAMA5D3_IRQS 48
static int __init sama5d3_aic5_of_init(struct device_node *node,
--
2.1.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:irq/core] irqchip: atmel-aic5: Add sama5d2 support
2015-06-18 13:07 [PATCH] irqchip: atmel-aic5: Add sama5d2 support Nicolas Ferre
@ 2015-06-18 13:33 ` tip-bot for Nicolas Ferre
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Nicolas Ferre @ 2015-06-18 13:33 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-arm-kernel, nicolas.ferre, hpa, tglx, ludovic.desroches,
jason, linux-kernel, boris.brezillon, alexandre.belloni, mingo
Commit-ID: 62a993df31f795d87bcb4c6cb005d36f32f6ad55
Gitweb: http://git.kernel.org/tip/62a993df31f795d87bcb4c6cb005d36f32f6ad55
Author: Nicolas Ferre <nicolas.ferre@atmel.com>
AuthorDate: Thu, 18 Jun 2015 15:07:35 +0200
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 18 Jun 2015 15:29:52 +0200
irqchip: atmel-aic5: Add sama5d2 support
Add sama5d2 support to irq-atmel-aic5.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Boris BREZILLON <boris.brezillon@free-electrons.com>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: <linux-arm-kernel@lists.infradead.org>
Link: http://lkml.kernel.org/r/1434632855-27272-1-git-send-email-nicolas.ferre@atmel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
.../devicetree/bindings/interrupt-controller/atmel,aic.txt | 2 +-
drivers/irqchip/irq-atmel-aic5.c | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
index f292917..0e9f09a 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", "sama5d3" or "sama5d4"
+ <chip> can be "at91rm9200", "sama5d2", "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 a2e8c3f..459bf44 100644
--- a/drivers/irqchip/irq-atmel-aic5.c
+++ b/drivers/irqchip/irq-atmel-aic5.c
@@ -339,6 +339,15 @@ static int __init aic5_of_init(struct device_node *node,
return 0;
}
+#define NR_SAMA5D2_IRQS 77
+
+static int __init sama5d2_aic5_of_init(struct device_node *node,
+ struct device_node *parent)
+{
+ return aic5_of_init(node, parent, NR_SAMA5D2_IRQS);
+}
+IRQCHIP_DECLARE(sama5d2_aic5, "atmel,sama5d2-aic", sama5d2_aic5_of_init);
+
#define NR_SAMA5D3_IRQS 48
static int __init sama5d3_aic5_of_init(struct device_node *node,
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-18 13:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-18 13:07 [PATCH] irqchip: atmel-aic5: Add sama5d2 support Nicolas Ferre
2015-06-18 13:33 ` [tip:irq/core] " tip-bot for Nicolas Ferre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox