[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230123231028.26073-2-markuss.broks@gmail.com>
Date: Tue, 24 Jan 2023 01:10:24 +0200
From: Markuss Broks <markuss.broks@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Markuss Broks <markuss.broks@...il.com>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Paul Gazzillo <paul@...zz.com>,
Dmitry Osipenko <dmitry.osipenko@...labora.com>,
Shreeya Patel <shreeya.patel@...labora.com>,
Zhigang Shi <Zhigang.Shi@...eon.com>,
linux-iio@...r.kernel.org, devicetree@...r.kernel.org
Subject: [PATCH 1/2] dt-bindings: iio: tcs3490: Add bindings for AMS TCS3490 light sensor
Add device-tree bindings for the AMS TCS3490 Color ALS.
Signed-off-by: Markuss Broks <markuss.broks@...il.com>
---
.../bindings/iio/light/ams,tcs3490.yaml | 52 +++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/light/ams,tcs3490.yaml
diff --git a/Documentation/devicetree/bindings/iio/light/ams,tcs3490.yaml b/Documentation/devicetree/bindings/iio/light/ams,tcs3490.yaml
new file mode 100644
index 000000000000..0938d5edd791
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/ams,tcs3490.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/ams,tcs3490.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: AMS TCS3490 Color Light-to-Digital Converter
+
+maintainers:
+ - Markuss Broks <markuss.broks@...il.com>
+
+description: |
+ This color and IR light sensor is typically used to adjust the backlight
+ intensity and correct the display color gamut. Additionally can be used
+ for light source type detection as it reports the IR content of the light.
+ It can sense four channels of visible light (red, green, blue, clear) and
+ IR light.
+
+properties:
+ compatible:
+ enum:
+ - ams,tcs3490
+
+ reg:
+ description:
+ I2C address of the device (typically 0x39).
+ maxItems: 1
+
+ vdd-supply: true
+
+required:
+ - compatible
+ - reg
+ - vdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ light@39 {
+ compatible = "ams,tcs3490";
+ reg = <0x39>;
+ vdd-supply = <&cam_vio_vreg>;
+ };
+ };
+...
--
2.39.0
Powered by blists - more mailing lists