ti,opt4060.yaml 1006 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/iio/light/ti,opt4060.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Texas Instruments OPT4060 RGBW Color Sensor
  7. maintainers:
  8. - Per-Daniel Olsson <perdaniel.olsson@axis.com>
  9. description:
  10. Texas Instrument RGBW high resolution color sensor over I2C.
  11. https://www.ti.com/lit/gpn/opt4060
  12. properties:
  13. compatible:
  14. enum:
  15. - ti,opt4060
  16. reg:
  17. maxItems: 1
  18. interrupts:
  19. maxItems: 1
  20. vdd-supply: true
  21. required:
  22. - compatible
  23. - reg
  24. - vdd-supply
  25. additionalProperties: false
  26. examples:
  27. - |
  28. #include <dt-bindings/interrupt-controller/irq.h>
  29. i2c {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. light-sensor@44 {
  33. compatible = "ti,opt4060";
  34. reg = <0x44>;
  35. vdd-supply = <&vdd_reg>;
  36. interrupt-parent = <&gpio5>;
  37. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  38. };
  39. };
  40. ...