0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/dynaimage,al3010.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Dyna-Image AL3010 sensor
0008
0009 maintainers:
0010 - David Heidelberg <david@ixit.cz>
0011
0012 properties:
0013 compatible:
0014 const: dynaimage,al3010
0015
0016 reg:
0017 maxItems: 1
0018
0019 interrupts:
0020 maxItems: 1
0021
0022 vdd-supply:
0023 description: Regulator that provides power to the sensor
0024
0025 required:
0026 - compatible
0027 - reg
0028
0029 additionalProperties: false
0030
0031 examples:
0032 - |
0033 #include <dt-bindings/interrupt-controller/irq.h>
0034
0035 i2c {
0036 #address-cells = <1>;
0037 #size-cells = <0>;
0038
0039 light-sensor@1c {
0040 compatible = "dynaimage,al3010";
0041 reg = <0x1c>;
0042 vdd-supply = <&vdd_reg>;
0043 interrupts = <0 99 4>;
0044 };
0045 };