Path: blob/master/Documentation/devicetree/bindings/firmware/qemu,fw-cfg-mmio.yaml
54345 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/firmware/qemu,fw-cfg-mmio.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: QEMU Firmware Configuration78maintainers:9- Rob Herring <robh@kernel.org>1011description: |12Various QEMU emulation / virtualization targets provide the following13Firmware Configuration interface on the "virt" machine type:1415- A write-only, 16-bit wide selector (or control) register,16- a read-write, 64-bit wide data register.1718QEMU exposes the control and data register to guests as memory mapped19registers; their location is communicated to the guest's UEFI firmware in the20DTB that QEMU places at the bottom of the guest's DRAM.2122The authoritative guest-side hardware interface documentation to the fw_cfg23device can be found in "docs/specs/fw_cfg.txt" in the QEMU source tree.2425properties:26compatible:27const: qemu,fw-cfg-mmio2829reg:30maxItems: 131description: |32* Bytes 0x0 to 0x7 cover the data register.33* Bytes 0x8 to 0x9 cover the selector register.34* Further registers may be appended to the region in case of future interface35revisions / feature bits.3637dma-coherent: true3839required:40- compatible41- reg4243additionalProperties: false4445examples:46- |4748fw-cfg@9020000 {49compatible = "qemu,fw-cfg-mmio";50reg = <0x9020000 0xa>;51};52...535455