0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/maxim,max44009.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: MAX44009 Ambient Light Sensor
0008
0009 maintainers:
0010 - Robert Eshleman <bobbyeshleman@gmail.com>
0011
0012 properties:
0013 compatible:
0014 const: maxim,max44009
0015
0016 reg:
0017 maxItems: 1
0018 description: Default address is 0x4a
0019
0020 interrupts:
0021 maxItems: 1
0022 description: Should be configured with type IRQ_TYPE_EDGE_FALLING
0023
0024 additionalProperties: false
0025
0026 required:
0027 - compatible
0028 - reg
0029
0030 examples:
0031 - |
0032 #include <dt-bindings/interrupt-controller/irq.h>
0033 i2c {
0034 #address-cells = <1>;
0035 #size-cells = <0>;
0036
0037 light-sensor@4a {
0038 compatible = "maxim,max44009";
0039 reg = <0x4a>;
0040
0041 interrupt-parent = <&gpio1>;
0042 interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
0043 };
0044 };
0045 ...