Skip to content

Commit 212fbf2

Browse files
SandeepSMMarc Zyngier
authored andcommitted
irqchip/atmel-aic5: Add support for sam9x60 irqchip
Add support for SAM9X60 irqchip. Signed-off-by: Sandeep Sheriker Mallikarjun <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] [[email protected]: update aic5_irq_fixups[], update documentation]
1 parent 9c426b7 commit 212fbf2

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
* Advanced Interrupt Controller (AIC)
22

33
Required properties:
4-
- compatible: Should be "atmel,<chip>-aic"
5-
<chip> can be "at91rm9200", "sama5d2", "sama5d3" or "sama5d4"
4+
- compatible: Should be:
5+
- "atmel,<chip>-aic" where <chip> can be "at91rm9200", "sama5d2",
6+
"sama5d3" or "sama5d4"
7+
- "microchip,<chip>-aic" where <chip> can be "sam9x60"
8+
69
- interrupt-controller: Identifies the node as an interrupt controller.
710
- #interrupt-cells: The number of cells to define the interrupts. It should be 3.
811
The first cell is the IRQ number (aka "Peripheral IDentifier" on datasheet).

drivers/irqchip/irq-atmel-aic5.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ static void __init sama5d3_aic_irq_fixup(void)
313313
static const struct of_device_id aic5_irq_fixups[] __initconst = {
314314
{ .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup },
315315
{ .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup },
316+
{ .compatible = "microchip,sam9x60", .data = sama5d3_aic_irq_fixup },
316317
{ /* sentinel */ },
317318
};
318319

@@ -390,3 +391,12 @@ static int __init sama5d4_aic5_of_init(struct device_node *node,
390391
return aic5_of_init(node, parent, NR_SAMA5D4_IRQS);
391392
}
392393
IRQCHIP_DECLARE(sama5d4_aic5, "atmel,sama5d4-aic", sama5d4_aic5_of_init);
394+
395+
#define NR_SAM9X60_IRQS 50
396+
397+
static int __init sam9x60_aic5_of_init(struct device_node *node,
398+
struct device_node *parent)
399+
{
400+
return aic5_of_init(node, parent, NR_SAM9X60_IRQS);
401+
}
402+
IRQCHIP_DECLARE(sam9x60_aic5, "microchip,sam9x60-aic", sam9x60_aic5_of_init);

0 commit comments

Comments
 (0)