xref: /linux/Documentation/devicetree/bindings/iio/light/vishay,veml6075.yaml (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/light/vishay,veml6075.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Vishay VEML6070 UVA, VEML6075 UVA/B and VEML6040 RGBW sensors
8
9maintainers:
10  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
11
12description:
13  VEML6040 datasheet at https://www.vishay.com/docs/84276/veml6040.pdf
14
15properties:
16  compatible:
17    enum:
18      - vishay,veml6040
19      - vishay,veml6070
20      - vishay,veml6075
21
22  reg:
23    maxItems: 1
24
25  vishay,rset-ohms:
26    description:
27      Resistor used to select the integration time.
28    default: 270000
29    minimum: 75000
30    maximum: 1200000
31
32  vdd-supply: true
33
34required:
35  - compatible
36  - reg
37  - vdd-supply
38
39allOf:
40  - if:
41      properties:
42        compatible:
43          enum:
44            - vishay,veml6040
45            - vishay,veml6075
46    then:
47      properties:
48        vishay,rset-ohms: false
49
50additionalProperties: false
51
52examples:
53  - |
54    i2c {
55        #address-cells = <1>;
56        #size-cells = <0>;
57
58        uv-sensor@10 {
59            compatible = "vishay,veml6075";
60            reg = <0x10>;
61            vdd-supply = <&vdd_reg>;
62        };
63    };
64...
65