From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: "Alistair Francis" <alistair.francis@xilinx.com>,
"Edgar E . Iglesias" <edgar.iglesias@xilinx.com>,
"Andreas Färber" <afaerber@suse.de>,
"Igor Mammedov" <imammedo@redhat.com>,
"Eduardo Habkost" <ehabkost@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
qemu-devel@nongnu.org, qemu-arm@nongnu.org
Subject: [Qemu-devel] [RFC PATCH v2 0/9] resolv device by Flattened Device Tree alias name
Date: Mon, 8 Jan 2018 23:00:45 -0300 [thread overview]
Message-ID: <20180109020054.32553-1-f4bug@amsat.org> (raw)
Hi,
This RFC series is intended to simplify Flattened Device Tree support,
in particular the 'compatible' FDT entry, when Linux names mismatches
QEMU ones, but this is the same device modelled.
So far this is only a 'proof of concept'.
To see how the qtests perform, I only modified the Xilinx ZynqMP machine.
This is only the 6th generic alias compatibility API in QEMU ¯\_(ツ)_/¯
Since v2:
- Follow Eduardo advice:
"If aliases exist only for compatibility, they should be restricted to
the places where compatibility is really needed."
- Do not modify QOM/qobject, use a specific GHashTable for FDT alias resolv.
- The aliases aren't display in HMP / -device help
If a machine is expected to use FDT, it needs to explicitely resolv any
device name with the type_resolve_fdt_alias() function.
Regards,
Phil.
Philippe Mathieu-Daudé (9):
hw/sysbus: add helpers to register FDT aliases
hw/char/cadence_uart: add FDT aliases
hw/net/cadence_gem: add FDT aliases
hw/timer/cadence_ttc: add FDT aliases
hw/dma/axidma: add 'xlnx,eth-dma' FDT alias
hw/usb/hcd-ehci: add 'xlnx,ps7-usb' FDT aliases
hw/ssi/xlnx-spips: add 'xlnx.zynq-qspi' FDT alias
hw/dma/xlnx_dpdma: add 'xlnx,axi-dpdma-1.0' FDT alias
hw/arm/xlnx-zynqmp: use Linux FDT names
include/hw/sysbus-fdt.h | 18 ++++++++++++++++++
hw/arm/xlnx-zynqmp.c | 14 ++++++++++----
hw/char/cadence_uart.c | 12 ++++++++++++
hw/core/sysbus-fdt.c | 30 ++++++++++++++++++++++++++++++
hw/dma/xilinx_axidma.c | 2 ++
hw/dma/xlnx_dpdma.c | 2 ++
hw/net/cadence_gem.c | 10 ++++++++++
hw/ssi/xilinx_spips.c | 2 ++
hw/timer/cadence_ttc.c | 8 ++++++++
hw/usb/hcd-ehci-sysbus.c | 8 ++++++++
hw/core/Makefile.objs | 1 +
11 files changed, 103 insertions(+), 4 deletions(-)
create mode 100644 include/hw/sysbus-fdt.h
create mode 100644 hw/core/sysbus-fdt.c
--
2.15.1
next reply other threads:[~2018-01-09 2:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-09 2:00 Philippe Mathieu-Daudé [this message]
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 1/9] hw/sysbus: add helpers to register FDT aliases Philippe Mathieu-Daudé
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 2/9] hw/char/cadence_uart: add " Philippe Mathieu-Daudé
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 3/9] hw/net/cadence_gem: " Philippe Mathieu-Daudé
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 4/9] hw/timer/cadence_ttc: " Philippe Mathieu-Daudé
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 5/9] hw/dma/axidma: add 'xlnx, eth-dma' FDT alias Philippe Mathieu-Daudé
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 6/9] hw/usb/hcd-ehci: add 'xlnx, ps7-usb' FDT aliases Philippe Mathieu-Daudé
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 7/9] hw/ssi/xlnx-spips: add 'xlnx.zynq-qspi' FDT alias Philippe Mathieu-Daudé
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 8/9] hw/dma/xlnx_dpdma: add 'xlnx, axi-dpdma-1.0' " Philippe Mathieu-Daudé
2018-01-09 2:00 ` [Qemu-devel] [RFC PATCH v2 9/9] hw/arm/xlnx-zynqmp: use Linux FDT names Philippe Mathieu-Daudé
2018-01-09 9:51 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180109020054.32553-1-f4bug@amsat.org \
--to=f4bug@amsat.org \
--cc=afaerber@suse.de \
--cc=alistair.francis@xilinx.com \
--cc=armbru@redhat.com \
--cc=edgar.iglesias@xilinx.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).