All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] DT support for ARM GIC and TWD
@ 2011-06-24 14:10 ` Marc Zyngier
  0 siblings, 0 replies; 41+ messages in thread
From: Marc Zyngier @ 2011-06-24 14:10 UTC (permalink / raw)
  To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

This patch series expands my previous SMP timer effort, and adds
device tree support to two very common elements: the GIC and the TWD
timer.

As this is my first trip into DT land, I'm pretty sure there's a lot
to say about the bindings, and I'm specially looking for comments
around the following topics:

- The device_type attribute: when is it valid to use it?

- I used the compatible attribute as a generic way to probe for a
  whole class of device, and I feel this is not the indended usage.

- The TWD binding describes its interrupts inside sub nodes, which
  means the platform device doesn't contain the IRQ resources, and the
  driver has to parse the tree itself. As I'm under the impression
  that a platform driver should only parse the tree to get platform
  data, I wonder if there is some DT magic to solve this particular
  problem in an elegant way?

- early platform devices and DT: I've taken the brute-force approach
  here, and would be very glad if someone could come up with a better
  alternative.

This patch series also depends on a few patches by Grant Likely:
 dt/platform: allow device name to be overridden
 drivers/amba: create devices from device tree
 dt: add of_platform_populate() for creating device from the device tree
 dt: Add default match table for bus ids
 irq: add irq_domain translation infrastructure

The whole branch including the PPI infrastructure, the SMP timer
rework, Grant's patches, this patch series and a few others are (or
will soon be) in the following repository:

git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git local_timer_devices-v3.0-rc4

Marc Zyngier (4):
  dt: early platform devices support
  ARM: dt: register local timers as early platform devices
  ARM: dt: add GIC bindings and driver support
  ARM: dt: Add TWD bindings and driver support

 Documentation/devicetree/bindings/arm/gic.txt |   92 ++++++++
 Documentation/devicetree/bindings/arm/twd.txt |   54 +++++
 arch/arm/common/gic.c                         |  312 ++++++++++++++++++++-----
 arch/arm/include/asm/hardware/gic.h           |    4 +
 arch/arm/kernel/time.c                        |    4 +
 drivers/clocksource/arm_smp_twd.c             |   92 +++++++-
 drivers/of/platform.c                         |   26 ++
 include/linux/of_platform.h                   |    1 +
 8 files changed, 517 insertions(+), 68 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/gic.txt
 create mode 100644 Documentation/devicetree/bindings/arm/twd.txt

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

end of thread, other threads:[~2011-06-27 15:02 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-24 14:10 [RFC PATCH 0/4] DT support for ARM GIC and TWD Marc Zyngier
2011-06-24 14:10 ` Marc Zyngier
     [not found] ` <1308924659-31894-1-git-send-email-marc.zyngier-5wv7dgnIgG8@public.gmane.org>
2011-06-24 14:10   ` [RFC PATCH 1/4] dt: early platform devices support Marc Zyngier
2011-06-24 14:10     ` Marc Zyngier
2011-06-25  4:49     ` Grant Likely
2011-06-25  4:49       ` Grant Likely
2011-06-25  4:49       ` Grant Likely
2011-06-25 11:11       ` Marc Zyngier
2011-06-25 11:11         ` Marc Zyngier
2011-06-25 11:11         ` Marc Zyngier
2011-06-25 20:44         ` Grant Likely
2011-06-25 20:44           ` Grant Likely
2011-06-25 20:44           ` Grant Likely
2011-06-27  9:54           ` Marc Zyngier
2011-06-27  9:54             ` Marc Zyngier
2011-06-27  9:54             ` Marc Zyngier
2011-06-24 14:10   ` [RFC PATCH 2/4] ARM: dt: register local timers as early platform devices Marc Zyngier
2011-06-24 14:10     ` Marc Zyngier
2011-06-25 20:47     ` Grant Likely
2011-06-25 20:47       ` Grant Likely
     [not found]       ` <20110625204742.GB15026-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-06-25 21:20         ` Rob Herring
2011-06-25 21:20           ` Rob Herring
     [not found]           ` <4E06513B.4030706-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-06-26  7:00             ` Grant Likely
2011-06-26  7:00               ` Grant Likely
     [not found]               ` <BANLkTimy6iyQyyvNUK3Kc6skSKyVxBwWPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-26 19:22                 ` "Early" devices and the DT Mitch Bradley
     [not found]                   ` <4E0786FF.9010002-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2011-06-26 21:24                     ` glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org
2011-06-26 21:24                       ` glikely@secretlab.ca
2011-06-24 14:10   ` [RFC PATCH 3/4] ARM: dt: add GIC bindings and driver support Marc Zyngier
2011-06-24 14:10     ` Marc Zyngier
     [not found]     ` <1308924659-31894-4-git-send-email-marc.zyngier-5wv7dgnIgG8@public.gmane.org>
2011-06-26  8:01       ` Grant Likely
2011-06-26  8:01         ` Grant Likely
     [not found]         ` <20110626080135.GC15026-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-06-27 10:27           ` Marc Zyngier
2011-06-27 10:27             ` Marc Zyngier
     [not found]             ` <4E085B2E.5030605-5wv7dgnIgG8@public.gmane.org>
2011-06-27 15:02               ` Grant Likely
2011-06-27 15:02                 ` Grant Likely
2011-06-24 14:10   ` [RFC PATCH 4/4] ARM: dt: Add TWD " Marc Zyngier
2011-06-24 14:10     ` Marc Zyngier
     [not found]     ` <1308924659-31894-5-git-send-email-marc.zyngier-5wv7dgnIgG8@public.gmane.org>
2011-06-26  8:09       ` Grant Likely
2011-06-26  8:09         ` Grant Likely
     [not found]         ` <20110626080902.GA24241-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-06-27 10:39           ` Marc Zyngier
2011-06-27 10:39             ` 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.