xref: /freebsd-src/sys/contrib/device-tree/Bindings/virtio/virtio-device.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/virtio/virtio-device.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Virtio device
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Viresh Kumar <viresh.kumar@linaro.org>
11354d7675SEmmanuel Vadot
12354d7675SEmmanuel Vadotdescription:
13354d7675SEmmanuel Vadot  These bindings are applicable to virtio devices irrespective of the bus they
14354d7675SEmmanuel Vadot  are bound to, like mmio or pci.
15354d7675SEmmanuel Vadot
16354d7675SEmmanuel Vadot# We need a select here so we don't match all nodes with 'virtio,mmio'
17354d7675SEmmanuel Vadotproperties:
18354d7675SEmmanuel Vadot  compatible:
19354d7675SEmmanuel Vadot    pattern: "^virtio,device[0-9a-f]{1,8}$"
20354d7675SEmmanuel Vadot    description: Virtio device nodes.
21354d7675SEmmanuel Vadot      "virtio,deviceID", where ID is the virtio device id. The textual
22354d7675SEmmanuel Vadot      representation of ID shall be in lower case hexadecimal with leading
23354d7675SEmmanuel Vadot      zeroes suppressed.
24354d7675SEmmanuel Vadot
25354d7675SEmmanuel Vadotrequired:
26354d7675SEmmanuel Vadot  - compatible
27354d7675SEmmanuel Vadot
28354d7675SEmmanuel VadotadditionalProperties: true
29354d7675SEmmanuel Vadot
30354d7675SEmmanuel Vadotexamples:
31354d7675SEmmanuel Vadot  - |
32354d7675SEmmanuel Vadot    virtio@3000 {
33354d7675SEmmanuel Vadot        compatible = "virtio,mmio";
34354d7675SEmmanuel Vadot        reg = <0x3000 0x100>;
35354d7675SEmmanuel Vadot        interrupts = <43>;
36354d7675SEmmanuel Vadot
37354d7675SEmmanuel Vadot        i2c {
38354d7675SEmmanuel Vadot            compatible = "virtio,device22";
39354d7675SEmmanuel Vadot        };
40354d7675SEmmanuel Vadot    };
41354d7675SEmmanuel Vadot...
42