i2c-virtio.yaml 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/i2c/i2c-virtio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Virtio I2C Adapter
  7. maintainers:
  8. - Viresh Kumar <viresh.kumar@linaro.org>
  9. allOf:
  10. - $ref: /schemas/i2c/i2c-controller.yaml#
  11. - $ref: /schemas/virtio/virtio-device.yaml#
  12. description:
  13. Virtio I2C device, see /schemas/virtio/virtio-device.yaml for more details.
  14. properties:
  15. $nodename:
  16. const: i2c
  17. compatible:
  18. const: virtio,device22
  19. required:
  20. - compatible
  21. unevaluatedProperties: false
  22. examples:
  23. - |
  24. virtio@3000 {
  25. compatible = "virtio,mmio";
  26. reg = <0x3000 0x100>;
  27. interrupts = <41>;
  28. i2c {
  29. compatible = "virtio,device22";
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. light-sensor@20 {
  33. compatible = "dynaimage,al3320a";
  34. reg = <0x20>;
  35. };
  36. };
  37. };
  38. ...