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:ti,tmp07 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: Manivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/20201031134110.724233-30-jic23@kernel.org

+57 -33
+57
Documentation/devicetree/bindings/iio/temperature/ti,tmp007.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/ti,tmp007.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: IR thermopile sensor with integrated math engine 8 + 9 + maintainers: 10 + - Manivannan Sadhasivam <manivannanece23@gmail.com> 11 + 12 + description: | 13 + http://www.ti.com/lit/ds/symlink/tmp007.pdf 14 + 15 + properties: 16 + compatible: 17 + const: ti,tmp007 18 + 19 + reg: 20 + description: | 21 + The I2C address of the sensor (changeable via ADR pins) 22 + ------------------------------ 23 + |ADR1 | ADR0 | Device Address| 24 + ------------------------------ 25 + 0 0 0x40 26 + 0 1 0x41 27 + 0 SDA 0x42 28 + 0 SCL 0x43 29 + 1 0 0x44 30 + 1 1 0x45 31 + 1 SDA 0x46 32 + 1 SCL 0x47 33 + maxItems: 1 34 + 35 + interrupts: 36 + maxItems: 1 37 + 38 + required: 39 + - compatible 40 + - reg 41 + 42 + additionalProperties: false 43 + 44 + examples: 45 + - | 46 + i2c { 47 + #address-cells = <1>; 48 + #size-cells = <0>; 49 + 50 + temp-sensor@40 { 51 + compatible = "ti,tmp007"; 52 + reg = <0x40>; 53 + interrupt-parent = <&gpio0>; 54 + interrupts = <5 0x08>; 55 + }; 56 + }; 57 + ...
-33
Documentation/devicetree/bindings/iio/temperature/tmp007.txt
··· 1 - * TI TMP007 - IR thermopile sensor with integrated math engine 2 - 3 - Link to datasheet: http://www.ti.com/lit/ds/symlink/tmp007.pdf 4 - 5 - Required properties: 6 - 7 - - compatible: should be "ti,tmp007" 8 - - reg: the I2C address of the sensor (changeable via ADR pins) 9 - ------------------------------ 10 - |ADR1 | ADR0 | Device Address| 11 - ------------------------------ 12 - 0 0 0x40 13 - 0 1 0x41 14 - 0 SDA 0x42 15 - 0 SCL 0x43 16 - 1 0 0x44 17 - 1 1 0x45 18 - 1 SDA 0x46 19 - 1 SCL 0x47 20 - 21 - Optional properties: 22 - 23 - - interrupts: interrupt mapping for GPIO IRQ (level active low) 24 - 25 - Example: 26 - 27 - tmp007@40 { 28 - compatible = "ti,tmp007"; 29 - reg = <0x40>; 30 - interrupt-parent = <&gpio0>; 31 - interrupts = <5 0x08>; 32 - }; 33 -