QEMU Firmware Configuration

Schema identifier ($id): "http://devicetree.org/schemas/firmware/qemu,fw-cfg-mmio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

Various QEMU emulation / virtualization targets provide the following Firmware Configuration interface on the "virt" machine type:

- A write-only, 16-bit wide selector (or control) register, - a read-write, 64-bit wide data register.

QEMU exposes the control and data register to guests as memory mapped registers; their location is communicated to the guest's UEFI firmware in the DTB that QEMU places at the bottom of the guest's DRAM.

The authoritative guest-side hardware interface documentation to the fw_cfg device can be found in "docs/specs/fw_cfg.txt" in the QEMU source tree.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qemu,fw-cfg-mmio"

reg — required here #

Maximum number of items (maxItems): 1

* Bytes 0x0 to 0x7 cover the data register.
* Bytes 0x8 to 0x9 cover the selector register.
* Further registers may be appended to the region in case of future interface
  revisions / feature bits.

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #


fw-cfg@9020000 {
    compatible = "qemu,fw-cfg-mmio";
    reg = <0x9020000 0xa>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page