From: Arthur Becker <arthur.becker@xxxxxxxxxx> Device tree bindings for the vishay VEML6040 RGBW light sensor iio driver Signed-off-by: Arthur Becker <arthur.becker@xxxxxxxxxx> --- V1 -> V3: Addressed review comments (v1 of the dt-bindings was sent along with v2 of the driver but not in a set) --- .../bindings/iio/light/vishay,veml6040.yaml | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/light/vishay,veml6040.yaml b/Documentation/devicetree/bindings/iio/light/vishay,veml6040.yaml new file mode 100644 index 000000000000..101c2cc6506e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/vishay,veml6040.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/vishay,veml6040.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: VEML6040 RGBW Light Sensor + +maintainers: + - Arthur Becker <arthur.becker@xxxxxxxxxx> + +description: + Datasheet at https://www.vishay.com/docs/84276/veml6040.pdf + +properties: + compatible: + const: vishay,veml6040 + + reg: + enum: + - 0x10 + + vdd-supply: true + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@10 { + compatible = "vishay,veml6040"; + reg = <0x10>; + vdd-supply = <&vdd_reg>; + }; + }; +... -- 2.34.1