Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings:iio:temperature:melexis,mlx90614 yaml conversion

Simple conversion from txt to yaml.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Crt Mori <cmo@melexis.com>
Cc: Peter Meerwald <pmeerw@pmeerw.net>
Link: https://lore.kernel.org/r/20201031134110.724233-25-jic23@kernel.org

+50 -24
+50
Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/temperature/melexis,mlx90614.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Melexis MLX90614 contactless IR temperature sensor 8 + 9 + maintainers: 10 + - Peter Meerwald <pmeerw@pmeerw.net> 11 + - Crt Mori <cmo@melexis.com> 12 + 13 + description: | 14 + http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx 15 + 16 + properties: 17 + compatible: 18 + const: melexis,mlx90614 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + wakeup-gpios: 24 + description: 25 + GPIO connected to the SDA line to hold low in order to wake up the 26 + device. In normal operation, the GPIO is set as input and will 27 + not interfere in I2C communication. There is no need for a GPIO 28 + driving the SCL line. If no GPIO is given, power management is disabled. 29 + maxItems: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/gpio/gpio.h> 40 + i2c { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + 44 + temp-sensor@5a { 45 + compatible = "melexis,mlx90614"; 46 + reg = <0x5a>; 47 + wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; 48 + }; 49 + }; 50 + ...
-24
Documentation/devicetree/bindings/iio/temperature/mlx90614.txt
··· 1 - * Melexis MLX90614 contactless IR temperature sensor 2 - 3 - http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx 4 - 5 - Required properties: 6 - 7 - - compatible: should be "melexis,mlx90614" 8 - - reg: the I2C address of the sensor 9 - 10 - Optional properties: 11 - 12 - - wakeup-gpios: device tree identifier of the GPIO connected to the SDA line 13 - to hold low in order to wake up the device. In normal operation, the 14 - GPIO is set as input and will not interfere in I2C communication. There 15 - is no need for a GPIO driving the SCL line. If no GPIO is given, power 16 - management is disabled. 17 - 18 - Example: 19 - 20 - mlx90614@5a { 21 - compatible = "melexis,mlx90614"; 22 - reg = <0x5a>; 23 - wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; 24 - };