diff options
author | Pawel Moll <pawel.moll@arm.com> | 2011-10-24 15:07:03 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-11-02 02:11:01 +0100 |
commit | edfd52e6367270c90f3fd7cc302b375ffa89f91e (patch) | |
tree | 1a847022a6ee87524461ecd2427e7f23acab48ce /Documentation/devicetree/bindings/virtio | |
parent | virtio: Dont add "config" to list for !per_vq_vector (diff) | |
download | linux-edfd52e6367270c90f3fd7cc302b375ffa89f91e.tar.xz linux-edfd52e6367270c90f3fd7cc302b375ffa89f91e.zip |
virtio: Add platform bus driver for memory mapped virtio device
This patch, based on virtio PCI driver, adds support for memory
mapped (platform) virtio device. This should allow environments
like qemu to use virtio-based block & network devices even on
platforms without PCI support.
One can define and register a platform device which resources
will describe memory mapped control registers and "mailbox"
interrupt. Such device can be also instantiated using the Device
Tree node with compatible property equal "virtio,mmio".
Cc: Anthony Liguori <aliguori@us.ibm.com>
Cc: Michael S.Tsirkin <mst@redhat.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'Documentation/devicetree/bindings/virtio')
-rw-r--r-- | Documentation/devicetree/bindings/virtio/mmio.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/virtio/mmio.txt b/Documentation/devicetree/bindings/virtio/mmio.txt new file mode 100644 index 000000000000..5069c1b8e193 --- /dev/null +++ b/Documentation/devicetree/bindings/virtio/mmio.txt @@ -0,0 +1,17 @@ +* virtio memory mapped device + +See http://ozlabs.org/~rusty/virtio-spec/ for more details. + +Required properties: + +- compatible: "virtio,mmio" compatibility string +- reg: control registers base address and size including configuration space +- interrupts: interrupt generated by the device + +Example: + + virtio_block@3000 { + compatible = "virtio,mmio"; + reg = <0x3000 0x100>; + interrupts = <41>; + } |