Documentation/devicetree/bindings/virtio/virtio-device.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/virtio/virtio-device.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/virtio/virtio-device.yaml
Extension
.yaml
Size
1009 bytes
Lines
42
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/virtio/virtio-device.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Virtio device

maintainers:
  - Viresh Kumar <viresh.kumar@linaro.org>

description:
  These bindings are applicable to virtio devices irrespective of the bus they
  are bound to, like mmio or pci.

# We need a select here so we don't match all nodes with 'virtio,mmio'
properties:
  compatible:
    pattern: "^virtio,device[0-9a-f]{1,8}$"
    description: Virtio device nodes.
      "virtio,deviceID", where ID is the virtio device id. The textual
      representation of ID shall be in lower case hexadecimal with leading
      zeroes suppressed.

required:
  - compatible

additionalProperties: true

examples:
  - |
    virtio@3000 {
        compatible = "virtio,mmio";
        reg = <0x3000 0x100>;
        interrupts = <43>;

        i2c {
            compatible = "virtio,device22";
        };
    };
...

Annotation

Implementation Notes