Skip to content

RFC Yet another GIC OF binding series

Rob Herring linux-arm-kernel linux-devicetree 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt: irq: add interrupt controller descriptor structinclude/linux/of_irq.h+6 -01 reply
1/3dt: irq: add interrupt controller descriptor struct+0 -00 replies
2/3ARM: gic: allow irq_start to be 0arch/arm/common/gic.c+1 -10 replies
3/3ARM: gic: add OF based initializationDocumentation/devicetree/bindings/arm/gic.txt arch/arm/common/gic.c arch/arm/include/asm/hardware/gic.h+64 -01 reply
3/3ARM: gic: add OF based initialization+0 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchShawn GuoThomas Abraham
SeriesA-b T-b T-b
1/3
1/3
2/3
3/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/3] Yet another GIC OF binding series

From: Rob Herring <[email protected]>

Grant,

Here's yet another patch series for GIC binding and init.

You keep saying we should have a common DT function scanning for interrupt controller nodes and calling their initialization functions. But that will not work until we have dynamic assignment of linux irq numbers. So either everyone should just stop trying to do DT bindings for GIC/VIC until that is in place, or we need an interim solution. This is another attempt at the latter. I reworked gic_of_init intending for it to be the interrupt controller specific initialization function that DT interrupt controller scanning code would call. For now, it is just called by the platform code. The platform initialization looks something like this:

struct of_intc_desc desc;
memset(&desc, 0, sizeof(desc));
desc.controller = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-gic"); gic_of_init(&desc);

I've addressed your previous comments and in particular initializing more than 1 GIC is supported now.

Rob

Rob Herring (3):
dt: irq: add interrupt controller descriptor struct
ARM: gic: allow irq_start to be 0
ARM: gic: add OF based initialization

 Documentation/devicetree/bindings/arm/gic.txt |   28 +++++++++++++++++++
 arch/arm/common/gic.c                         |   36 ++++++++++++++++++++++++-
 arch/arm/include/asm/hardware/gic.h           |    2 +
 include/linux/of_irq.h                        |    6 ++++
 4 files changed, 71 insertions(+), 1 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/gic.txt
Signature · 1 line
1.7.4.1