microsoft,vmgenid.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/rng/microsoft,vmgenid.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Virtual Machine Generation ID
  7. maintainers:
  8. - Jason A. Donenfeld <Jason@zx2c4.com>
  9. description:
  10. Firmwares or hypervisors can use this devicetree to describe an
  11. interrupt and a shared resource to inject a Virtual Machine Generation ID.
  12. Virtual Machine Generation ID is a globally unique identifier (GUID) and
  13. the devicetree binding follows VMGenID specification defined in
  14. http://go.microsoft.com/fwlink/?LinkId=260709.
  15. properties:
  16. compatible:
  17. const: microsoft,vmgenid
  18. reg:
  19. description:
  20. Specifies a 16-byte VMGenID in endianness-agnostic hexadecimal format.
  21. maxItems: 1
  22. interrupts:
  23. description:
  24. Interrupt used to notify that a new VMGenID is available.
  25. maxItems: 1
  26. required:
  27. - compatible
  28. - reg
  29. - interrupts
  30. additionalProperties: false
  31. examples:
  32. - |
  33. #include <dt-bindings/interrupt-controller/arm-gic.h>
  34. rng@80000000 {
  35. compatible = "microsoft,vmgenid";
  36. reg = <0x80000000 0x1000>;
  37. interrupts = <GIC_SPI 35 IRQ_TYPE_EDGE_RISING>;
  38. };
  39. ...