0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/virtio/virtio-device.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Virtio device bindings
0008
0009 maintainers:
0010 - Viresh Kumar <viresh.kumar@linaro.org>
0011
0012 description:
0013 These bindings are applicable to virtio devices irrespective of the bus they
0014 are bound to, like mmio or pci.
0015
0016 # We need a select here so we don't match all nodes with 'virtio,mmio'
0017 properties:
0018 compatible:
0019 pattern: "^virtio,device[0-9a-f]{1,8}$"
0020 description: Virtio device nodes.
0021 "virtio,deviceID", where ID is the virtio device id. The textual
0022 representation of ID shall be in lower case hexadecimal with leading
0023 zeroes suppressed.
0024
0025 required:
0026 - compatible
0027
0028 additionalProperties: true
0029
0030 examples:
0031 - |
0032 virtio@3000 {
0033 compatible = "virtio,mmio";
0034 reg = <0x3000 0x100>;
0035 interrupts = <43>;
0036
0037 i2c {
0038 compatible = "virtio,device22";
0039 };
0040 };
0041 ...