noa1305.yaml 812 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/iio/light/noa1305.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ON Semiconductor NOA1305 Ambient Light Sensor
  7. maintainers:
  8. - Martyn Welch <martyn.welch@collabora.com>
  9. description: |
  10. Ambient sensing with an i2c interface.
  11. https://www.onsemi.com/pub/Collateral/NOA1305-D.PDF
  12. properties:
  13. compatible:
  14. enum:
  15. - onnn,noa1305
  16. reg:
  17. maxItems: 1
  18. vin-supply:
  19. description: Regulator that provides power to the sensor
  20. required:
  21. - compatible
  22. - reg
  23. additionalProperties: false
  24. examples:
  25. - |
  26. i2c {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. light@39 {
  30. compatible = "onnn,noa1305";
  31. reg = <0x39>;
  32. };
  33. };
  34. ...