Skip to content

RFC QEMU patches to generate FDT from qdevs

Grant Likely linux-devicetree qemu-devel 1 version In review

Get series with b4
b4 am 20100407040129.20274.44284.stgit@angua

Versions newest first

  1. v1 RFC Latest7 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7devicetree: Add 8k instead of double dtb size when reserving extra memorydevice_tree.c+2 -22 replies
2/7devicetree: auto-populate the device tree with qdev datahw/arm_boot.c hw/qdev.c hw/qdev.h+102 -00 replies
3/7devicetree: add helper for determining IRQ properties in the device treehw/qdev.c hw/qdev.h+49 -00 replies
4/7devicetree: Add sysbus fdt populate hooks.hw/sysbus.c hw/sysbus.h+94 -00 replies
5/7devicetree: Add helper to register devices with an fdt_populate hookhw/sysbus.c hw/sysbus.h+17 -00 replies
6/7devicetree: Add fdt_populate hook to pl011 devicehw/pl011.c+25 -40 replies
7/7devicetree: Add fdt_populate hook to smc91x devicehw/smc91c111.c+20 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/7] QEMU patches to generate FDT from qdevs

Hi everyone,

This is an experimental set of patches for populating the flattened device tree (fdt) data from the actual set of qdevs in the platform. I'm not expecting this to get merged anytime soon, but I wanted to get it out there to solicit comments. My target for this is testing device tree support on ARM.

The approach is by no means final, and there are still a number of details to work out, but I've got it working well with the versatile platform and I've got the kernel using fdt data to bind against the smc91x device driver. I'll be posting my associated kernel patches real-soon-now.

This series is based on Jeremy Kerr's device tree branch found here:

git://kernel.ubuntu.com/jk/dt/qemu.git

Cheers,
g.

---

Grant Likely (7):
devicetree: Add fdt_populate hook to smc91x device
devicetree: Add fdt_populate hook to pl011 device
devicetree: Add helper to register devices with an fdt_populate hook
devicetree: Add sysbus fdt populate hooks.
devicetree: add helper for determining IRQ properties in the device tree
devicetree: auto-populate the device tree with qdev data
devicetree: Add 8k instead of double dtb size when reserving extra memory

 device_tree.c  |    4 +-
 hw/arm_boot.c  |    3 +
 hw/pl011.c     |   29 ++++++++++--
 hw/qdev.c      |  139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/qdev.h      |    9 ++++
 hw/smc91c111.c |   20 ++++++++
 hw/sysbus.c    |  107 +++++++++++++++++++++++++++++++++++++++++++
 hw/sysbus.h    |    4 ++
 8 files changed, 309 insertions(+), 6 deletions(-)
Signature · 1 line
Signature