sharp,gp2ap020a00f.yaml 899 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/iio/light/sharp,gp2ap020a00f.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Sharp GP2AP020A00F I2C Proximity/ALS sensor
  7. maintainers:
  8. - Kyungmin Park <kyungmin.park@samsung.com>
  9. description: |
  10. The proximity detector sensor requires power supply for its built-in led.
  11. properties:
  12. compatible:
  13. const: sharp,gp2ap020a00f
  14. reg:
  15. maxItems: 1
  16. interrupts:
  17. maxItems: 1
  18. vled-supply: true
  19. additionalProperties: false
  20. required:
  21. - compatible
  22. - reg
  23. - interrupts
  24. - vled-supply
  25. examples:
  26. - |
  27. i2c {
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. light-sensor@39 {
  31. compatible = "sharp,gp2ap020a00f";
  32. reg = <0x39>;
  33. interrupts = <2 0>;
  34. vled-supply = <&als_reg>;
  35. };
  36. };
  37. ...