common.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/iio/common.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Common properties for iio sensors
  7. maintainers:
  8. - Jonathan Cameron <jic23@kernel.org>
  9. - Guido Günther <agx@sigxcpu.org>
  10. description: |
  11. This document defines device tree properties common to several iio
  12. sensors. It doesn't constitute a device tree binding specification by itself but
  13. is meant to be referenced by device tree bindings.
  14. When referenced from sensor tree bindings the properties defined in this
  15. document are defined as follows. The sensor tree bindings are responsible for
  16. defining whether each property is required or optional.
  17. properties:
  18. proximity-near-level:
  19. $ref: /schemas/types.yaml#/definitions/uint32
  20. description: |
  21. For proximity sensors whether an object can be considered near to the
  22. device depends on parameters like sensor position, covering glass and
  23. aperture. This value gives an indication to userspace for which
  24. sensor readings this is the case.
  25. Raw proximity values equal or above this level should be
  26. considered 'near' to the device (an object is near to the
  27. sensor).
  28. additionalProperties: true
  29. ...