virtio-device.yaml 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/virtio/virtio-device.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Virtio device
  7. maintainers:
  8. - Viresh Kumar <viresh.kumar@linaro.org>
  9. description:
  10. These bindings are applicable to virtio devices irrespective of the bus they
  11. are bound to, like mmio or pci.
  12. # We need a select here so we don't match all nodes with 'virtio,mmio'
  13. properties:
  14. compatible:
  15. pattern: "^virtio,device[0-9a-f]{1,8}$"
  16. description: Virtio device nodes.
  17. "virtio,deviceID", where ID is the virtio device id. The textual
  18. representation of ID shall be in lower case hexadecimal with leading
  19. zeroes suppressed.
  20. required:
  21. - compatible
  22. additionalProperties: true
  23. examples:
  24. - |
  25. virtio@3000 {
  26. compatible = "virtio,mmio";
  27. reg = <0x3000 0x100>;
  28. interrupts = <43>;
  29. i2c {
  30. compatible = "virtio,device22";
  31. };
  32. };
  33. ...