summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring (Arm) <robh@kernel.org>2026-09-23 14:16:15 -0500
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:36 +0100
commit696bd6909e77bd5bdddb6b3c2fcbe6cfd5796f1e (patch)
treed799cb5f7be4cadba47355a36740d0bfc09b3c41
parentef04fdc999ee40a58d513ea48d391c7dc78c908c (diff)
downloadlinux-next-696bd6909e77bd5bdddb6b3c2fcbe6cfd5796f1e.tar.gz
linux-next-696bd6909e77bd5bdddb6b3c2fcbe6cfd5796f1e.zip
dt-bindings: iio: Add dedicated CM32181 schema
Add a dedicated Capella CM32181 ambient light sensor schema. The device has optional vdd-supply and interrupt properties, so it no longer fits in trivial-devices. Include both optional properties in the binding example. Assisted-by: LLM Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
-rw-r--r--Documentation/devicetree/bindings/iio/light/capella,cm32181.yaml44
-rw-r--r--Documentation/devicetree/bindings/trivial-devices.yaml2
2 files changed, 44 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/iio/light/capella,cm32181.yaml b/Documentation/devicetree/bindings/iio/light/capella,cm32181.yaml
new file mode 100644
index 000000000000..e64085a9cb2b
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/capella,cm32181.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/capella,cm32181.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Capella CM32181 ambient light sensor
+
+maintainers:
+ - Kevin Tsai <ktsai@capellamicro.com>
+
+properties:
+ compatible:
+ const: capella,cm32181
+
+ reg:
+ maxItems: 1
+
+ vdd-supply: true
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ light-sensor@10 {
+ compatible = "capella,cm32181";
+ reg = <0x10>;
+ vdd-supply = <&vdd_3v3>;
+ interrupt-parent = <&gpio>;
+ interrupts = <17 IRQ_TYPE_EDGE_RISING>;
+ };
+ };
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 1e4ad1a18f26..002543c71edf 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -79,8 +79,6 @@ properties:
- atmel,atsha204a
# BPA-RS600: Power Supply
- blutek,bpa-rs600
- # CM32181: Ambient Light Sensor
- - capella,cm32181
# CM3232: Ambient Light Sensor
- capella,cm3232
# CM3323: Ambient Light Sensor