isl29018.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/iio/light/isl29018.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: |
  7. Intersil 29018/29023/29035 Ambient Light, Infrared Light, and Proximity Sensor
  8. maintainers:
  9. - Brian Masney <masneyb@onstation.org>
  10. description: |
  11. Ambient and infrared light sensing with proximity detection over an i2c
  12. interface.
  13. https://www.renesas.com/us/en/www/doc/datasheet/isl29018.pdf
  14. https://www.renesas.com/us/en/www/doc/datasheet/isl29023.pdf
  15. https://www.renesas.com/us/en/www/doc/datasheet/isl29035.pdf
  16. properties:
  17. compatible:
  18. enum:
  19. - isil,isl29018
  20. - isil,isl29023
  21. - isil,isl29035
  22. reg:
  23. maxItems: 1
  24. interrupts:
  25. maxItems: 1
  26. vcc-supply:
  27. description: Regulator that provides power to the sensor
  28. required:
  29. - compatible
  30. - reg
  31. additionalProperties: false
  32. examples:
  33. - |
  34. #include <dt-bindings/interrupt-controller/irq.h>
  35. i2c {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. sensor@44 {
  39. compatible = "isil,isl29018";
  40. reg = <0x44>;
  41. interrupts-extended = <&msmgpio 61 IRQ_TYPE_LEVEL_HIGH>;
  42. };
  43. };
  44. ...