Path: blob/master/Documentation/devicetree/bindings/firmware/qemu,fw-cfg-mmio.yaml
26308 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.242526properties:27compatible:28const: qemu,fw-cfg-mmio2930reg:31maxItems: 132description: |33* Bytes 0x0 to 0x7 cover the data register.34* Bytes 0x8 to 0x9 cover the selector register.35* Further registers may be appended to the region in case of future interface36revisions / feature bits.3738dma-coherent: true3940required:41- compatible42- reg4344additionalProperties: false4546examples:47- |4849fw-cfg@9020000 {50compatible = "qemu,fw-cfg-mmio";51reg = <0x9020000 0xa>;52};53...545556