| 1 |
|
| 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 |
|
| 7 |
title: Vishay VEML6070 UVA, VEML6075 UVA/B and VEML6040 RGBW sensors |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Javier Carrasco <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
VEML6040 datasheet at https://www.vishay.com/docs/84276/veml6040.pdf |
| 14 |
|
| 15 |
properties: |
| 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 |
|
| 34 |
required: |
| 35 |
- compatible |
| 36 |
- reg |
| 37 |
- vdd-supply |
| 38 |
|
| 39 |
allOf: |
| 40 |
- if: |
| 41 |
properties: |
| 42 |
compatible: |
| 43 |
enum: |
| 44 |
- vishay,veml6040 |
| 45 |
- vishay,veml6075 |
| 46 |
then: |
| 47 |
properties: |
| 48 |
vishay,rset-ohms: false |
| 49 |
|
| 50 |
additionalProperties: false |
| 51 |
|
| 52 |
examples: |
| 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 |
... |