Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/temperature/melexis,mlx90614.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Melexis MLX90614 contactless IR temperature sensor
0008 
0009 maintainers:
0010   - Peter Meerwald <pmeerw@pmeerw.net>
0011   - Crt Mori <cmo@melexis.com>
0012 
0013 description: |
0014   http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx
0015 
0016 properties:
0017   compatible:
0018     const: melexis,mlx90614
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   wakeup-gpios:
0024     description:
0025       GPIO connected to the SDA line to hold low in order to wake up the
0026       device.  In normal operation, the GPIO is set as input and will
0027       not interfere in I2C communication.  There is no need for a GPIO
0028       driving the SCL line.  If no GPIO is given, power management is disabled.
0029     maxItems: 1
0030 
0031 required:
0032   - compatible
0033   - reg
0034 
0035 additionalProperties: false
0036 
0037 examples:
0038   - |
0039     #include <dt-bindings/gpio/gpio.h>
0040     i2c {
0041         #address-cells = <1>;
0042         #size-cells = <0>;
0043 
0044         temp-sensor@5a {
0045             compatible = "melexis,mlx90614";
0046             reg = <0x5a>;
0047             wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
0048         };
0049     };
0050 ...