devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: iio: light: add veml6040 RGBW-LS bindings
@ 2024-05-13 14:35 Arthur Becker
  2024-05-13 16:26 ` Conor Dooley
  2024-05-14  7:10 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 7+ messages in thread
From: Arthur Becker @ 2024-05-13 14:35 UTC (permalink / raw)
  To: Jonathan Cameron, robh@kernel.org
  Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org

This commit adds device tree bindings for the veml6040 RGBW Light Sensor

signed-off-by: Arthur Becker <arthur.becker@sentec.com>
---

 .../bindings/iio/light/veml6040.yaml          | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/light/veml6040.yaml

diff --git a/Documentation/devicetree/bindings/iio/light/veml6040.yaml b/Documentation/devicetree/bindings/iio/light/veml6040.yaml
new file mode 100644
index 000000000000..796c22f75575
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/veml6040.yaml
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/veml6040.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: VEML6040 RGBW Light Sensor
+
+maintainers:
+  - Arthur Becker <arthur.becker@sentec.com>
+
+description: |
+  Datasheet at https://www.vishay.com/docs/84276/veml6040.pdf
+
+properties:
+  compatible:
+    enum:
+      - vishay,veml6040
+
+  reg:
+    description:
+      I2C address of the device.
+    enum:
+      - 0x10
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        light-sensor@10 {
+                compatible = "vishay,veml6040";
+                reg = <0x10>;
+        };
+    };
+...
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-19 12:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 14:35 [PATCH] dt-bindings: iio: light: add veml6040 RGBW-LS bindings Arthur Becker
2024-05-13 16:26 ` Conor Dooley
2024-05-19 11:57   ` Jonathan Cameron
2024-05-19 12:02     ` Conor Dooley
2024-05-19 12:25   ` Jonathan Cameron
2024-05-14  7:10 ` Krzysztof Kozlowski
2024-05-14  7:11   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).