dac.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/iio/dac/dac.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: IIO Common Properties for DAC Channels
  7. maintainers:
  8. - Jonathan Cameron <jic23@kernel.org>
  9. description:
  10. A few properties are defined in a common way for DAC channels.
  11. properties:
  12. $nodename:
  13. pattern: "^channel(@[0-9a-f]+)?$"
  14. description:
  15. A channel index should match reg.
  16. reg:
  17. maxItems: 1
  18. label:
  19. description: Unique name to identify which channel this is.
  20. output-range-microamp:
  21. maxItems: 2
  22. minItems: 2
  23. description:
  24. Specify the channel output full scale range in microamperes.
  25. output-range-microvolt:
  26. maxItems: 2
  27. minItems: 2
  28. description:
  29. Specify the channel output full scale range in microvolts.
  30. anyOf:
  31. - oneOf:
  32. - required:
  33. - reg
  34. - output-range-microamp
  35. - required:
  36. - reg
  37. - output-range-microvolt
  38. - required:
  39. - reg
  40. additionalProperties: true