0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/adux1020.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Analog Devices ADUX1020 Photometric sensor
0008
0009 maintainers:
0010 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
0011
0012 description: |
0013 Photometric sensor over an i2c interface.
0014 https://www.analog.com/media/en/technical-documentation/data-sheets/ADUX1020.pdf
0015
0016 properties:
0017 compatible:
0018 enum:
0019 - adi,adux1020
0020
0021 reg:
0022 maxItems: 1
0023
0024 interrupts:
0025 maxItems: 1
0026
0027 required:
0028 - compatible
0029 - reg
0030
0031 additionalProperties: false
0032
0033 examples:
0034 - |
0035 #include <dt-bindings/interrupt-controller/irq.h>
0036
0037 i2c {
0038
0039 #address-cells = <1>;
0040 #size-cells = <0>;
0041
0042 adux1020@64 {
0043 compatible = "adi,adux1020";
0044 reg = <0x64>;
0045 interrupt-parent = <&msmgpio>;
0046 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
0047 };
0048 };
0049 ...