All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Add support for the ICU unit in Marvell Armada 7K/8K
@ 2017-05-30  9:16 ` Thomas Petazzoni
  0 siblings, 0 replies; 107+ messages in thread
From: Thomas Petazzoni @ 2017-05-30  9:16 UTC (permalink / raw)
  To: Thomas Gleixner, Jason Cooper, Marc Zyngier, linux-kernel,
	devicetree, Rob Herring, Ian Campbell, Pawel Moll, Mark Rutland,
	Kumar Gala, Andrew Lunn, Sebastian Hesselbarth, Gregory Clement
  Cc: linux-arm-kernel, Nadav Haklai, Hanna Hawa, Yehuda Yitschak,
	Antoine Tenart, Thomas Petazzoni

Hello,

The Marvell Armada 7K/8K SoCs are composed of two parts: the AP (which
contains the CPU cores) and the CP (which contains most
peripherals). The 7K SoCs have one CP, while the 8K SoCs have two CPs,
doubling the number of available peripherals.

In terms of interrupt handling, all devices in the CPs are connected
through wired interrupt to a unit called ICU located in each CP. This
unit converts the wired interrupts from the devices into memory
transactions.

Inside the AP, there is a GIC extension called GICP, which allows a
memory write transaction to trigger a GIC SPI interrupt. The ICUs in
each CP are therefore configured to trigger a memory write into the
appropriate GICP register so that a wired interrupt from a CP device
is converted into a memory write, itself converted into a regular GIC
SPI interrupt.

Until now, the configuration of the ICU was done statically by the
firmware, and therefore the Device Tree files in Linux were specifying
directly GIC interrupts for the interrupts of CP devices. However,
with the growing number of devices in the CP, a static allocation
scheme doesn't work for the long term.

This patch series therefore makes Linux aware of the ICU: GIC SPI
interrupts are dynamically allocated, and the ICU is configured
accordingly to route a CP wired interrupt to the allocated GIC SPI
interrupt.

In detail:

 - The first two patches are the Device Tree binding patches

 - The third patch is a minimal driver for the GICP unit. All it does
   is clear interrupts that may have been left pending by the
   firmware.

 - The fourth patch is the most important done, which adds the driver
   for the ICU itself.

 - The fifth patch adjust Kconfig.platforms to select the GICP and ICU
   drivers.

 - The last patch adjusts the Device Tree files of the Armada 7K/8K to
   use the ICU.

Best regards,

Thomas

Thomas Petazzoni (6):
  dt-bindings: interrupt-controller: add DT binding for the Marvell GICP
  dt-bindings: interrupt-controller: add DT binding for the Marvell ICU
  irqchip: irq-mvebu-gicp: new driver for Marvell GICP
  irqchip: irq-mvebu-icu: new driver for Marvell ICU
  arm64: marvell: enable ICU and GICP drivers
  arm64: dts: marvell: enable GICP and ICU on Armada 7K/8K

 .../bindings/interrupt-controller/marvell,gicp.txt |  20 ++
 .../bindings/interrupt-controller/marvell,icu.txt  |  57 ++++
 arch/arm64/Kconfig.platforms                       |   2 +
 arch/arm64/boot/dts/marvell/armada-ap806.dtsi      |   5 +
 .../boot/dts/marvell/armada-cp110-master.dtsi      |  60 ++--
 .../arm64/boot/dts/marvell/armada-cp110-slave.dtsi |  54 +--
 drivers/irqchip/Kconfig                            |   6 +
 drivers/irqchip/Makefile                           |   2 +
 drivers/irqchip/irq-mvebu-gicp.c                   |  53 +++
 drivers/irqchip/irq-mvebu-icu.c                    | 373 +++++++++++++++++++++
 .../dt-bindings/interrupt-controller/mvebu-icu.h   |  15 +
 11 files changed, 599 insertions(+), 48 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/marvell,gicp.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/marvell,icu.txt
 create mode 100644 drivers/irqchip/irq-mvebu-gicp.c
 create mode 100644 drivers/irqchip/irq-mvebu-icu.c
 create mode 100644 include/dt-bindings/interrupt-controller/mvebu-icu.h

-- 
2.7.4

^ permalink raw reply	[flat|nested] 107+ messages in thread

end of thread, other threads:[~2017-06-25  6:47 UTC | newest]

Thread overview: 107+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-30  9:16 [PATCH 0/6] Add support for the ICU unit in Marvell Armada 7K/8K Thomas Petazzoni
2017-05-30  9:16 ` Thomas Petazzoni
2017-05-30  9:16 ` Thomas Petazzoni
2017-05-30  9:16 ` [PATCH 1/6] dt-bindings: interrupt-controller: add DT binding for the Marvell GICP Thomas Petazzoni
2017-05-30  9:16   ` Thomas Petazzoni
2017-05-30  9:16 ` [PATCH 2/6] dt-bindings: interrupt-controller: add DT binding for the Marvell ICU Thomas Petazzoni
2017-05-30  9:16   ` Thomas Petazzoni
2017-05-30 10:37   ` Marc Zyngier
2017-05-30 10:37     ` Marc Zyngier
2017-05-30 10:37     ` Marc Zyngier
2017-05-30 11:41     ` Thomas Petazzoni
2017-05-30 11:41       ` Thomas Petazzoni
2017-05-30 11:41       ` Thomas Petazzoni
2017-05-30  9:16 ` [PATCH 3/6] irqchip: irq-mvebu-gicp: new driver for Marvell GICP Thomas Petazzoni
2017-05-30  9:16   ` Thomas Petazzoni
2017-05-30 13:55   ` Marc Zyngier
2017-05-30 13:55     ` Marc Zyngier
2017-05-30 13:55     ` Marc Zyngier
2017-05-30 14:54     ` Thomas Petazzoni
2017-05-30 14:54       ` Thomas Petazzoni
2017-05-30 14:54       ` Thomas Petazzoni
2017-05-30 15:17       ` Marc Zyngier
2017-05-30 15:17         ` Marc Zyngier
2017-05-30 15:17         ` Marc Zyngier
2017-05-30 15:25         ` Thomas Petazzoni
2017-05-30 15:25           ` Thomas Petazzoni
2017-05-30 15:33           ` Marc Zyngier
2017-05-30 15:33             ` Marc Zyngier
2017-05-30 15:33             ` Marc Zyngier
2017-05-30  9:16 ` [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni
2017-05-30  9:16   ` Thomas Petazzoni
2017-05-30 11:10   ` Marc Zyngier
2017-05-30 11:10     ` Marc Zyngier
2017-05-30 12:05     ` Thomas Petazzoni
2017-05-30 12:05       ` Thomas Petazzoni
2017-05-30 12:05       ` Thomas Petazzoni
2017-05-30 13:06       ` Marc Zyngier
2017-05-30 13:06         ` Marc Zyngier
2017-05-30 13:06         ` Marc Zyngier
2017-05-30 13:17         ` Thomas Petazzoni
2017-05-30 13:17           ` Thomas Petazzoni
2017-05-30 13:17           ` Thomas Petazzoni
2017-05-30 13:40           ` Marc Zyngier
2017-05-30 13:40             ` Marc Zyngier
2017-06-25  6:47       ` [EXT] " Yehuda Yitschak
2017-06-25  6:47         ` Yehuda Yitschak
2017-06-25  6:47         ` Yehuda Yitschak
2017-05-30 12:04   ` Antoine Tenart
2017-05-30 12:04     ` Antoine Tenart
2017-05-30 12:04     ` Antoine Tenart
2017-05-30 12:19   ` Russell King - ARM Linux
2017-05-30 12:19     ` Russell King - ARM Linux
2017-05-30 12:19     ` Russell King - ARM Linux
2017-05-30 12:33     ` Thomas Petazzoni
2017-05-30 12:33       ` Thomas Petazzoni
2017-05-30 12:33       ` Thomas Petazzoni
2017-05-30 12:56       ` Russell King - ARM Linux
2017-05-30 12:56         ` Russell King - ARM Linux
2017-05-30 12:56         ` Russell King - ARM Linux
2017-05-30 13:27         ` Andrew Lunn
2017-05-30 13:27           ` Andrew Lunn
2017-05-30 13:27           ` Andrew Lunn
2017-05-30 13:34           ` Thomas Petazzoni
2017-05-30 13:34             ` Thomas Petazzoni
2017-05-30 13:34             ` Thomas Petazzoni
2017-05-30 13:42           ` Russell King - ARM Linux
2017-05-30 13:42             ` Russell King - ARM Linux
2017-05-30 13:42             ` Russell King - ARM Linux
2017-05-30 14:03             ` Andrew Lunn
2017-05-30 14:03               ` Andrew Lunn
2017-05-30 14:03               ` Andrew Lunn
2017-05-30 14:36               ` Russell King - ARM Linux
2017-05-30 14:36                 ` Russell King - ARM Linux
2017-05-30 14:36                 ` Russell King - ARM Linux
2017-05-30 14:26             ` Thomas Petazzoni
2017-05-30 14:26               ` Thomas Petazzoni
2017-05-30 14:26               ` Thomas Petazzoni
2017-05-30 14:39           ` Russell King - ARM Linux
2017-05-30 14:39             ` Russell King - ARM Linux
2017-05-30 14:39             ` Russell King - ARM Linux
2017-05-30 14:49             ` Andrew Lunn
2017-05-30 14:49               ` Andrew Lunn
2017-05-30 14:49               ` Andrew Lunn
2017-05-30 15:08               ` Russell King - ARM Linux
2017-05-30 15:08                 ` Russell King - ARM Linux
2017-05-30 13:28         ` Thomas Petazzoni
2017-05-30 13:28           ` Thomas Petazzoni
2017-05-30 13:28           ` Thomas Petazzoni
2017-05-30  9:16 ` [PATCH 5/6] arm64: marvell: enable ICU and GICP drivers Thomas Petazzoni
2017-05-30  9:16   ` Thomas Petazzoni
2017-05-30  9:16   ` Thomas Petazzoni
2017-05-30  9:16 ` [PATCH 6/6] arm64: dts: marvell: enable GICP and ICU on Armada 7K/8K Thomas Petazzoni
2017-05-30  9:16   ` Thomas Petazzoni
2017-05-30 14:02   ` Marc Zyngier
2017-05-30 14:02     ` Marc Zyngier
2017-05-30 14:02     ` Marc Zyngier
2017-05-30 14:28     ` Thomas Petazzoni
2017-05-30 14:28       ` Thomas Petazzoni
2017-05-30 14:28       ` Thomas Petazzoni
2017-05-30  9:16 ` [PATCH 6/6] arm64: dts: marvell: enable GICP and ICU Thomas Petazzoni
2017-05-30  9:16   ` Thomas Petazzoni
2017-05-30  9:22   ` Thomas Petazzoni
2017-05-30  9:22     ` Thomas Petazzoni
2017-05-30  9:22     ` Thomas Petazzoni
2017-05-30 14:15 ` [PATCH 0/6] Add support for the ICU unit in Marvell Armada 7K/8K Marc Zyngier
2017-05-30 14:15   ` Marc Zyngier
2017-05-30 14:15   ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.