Thread (12 messages) 12 messages, 5 authors, 2021-04-03

Re: [PATCH v2 1/2] dt-bindings: iio: temperature: Add DT bindings for TMP117

From: Jonathan Cameron <jic23@kernel.org>
Date: 2021-04-01 18:43:06
Also in: linux-iio, lkml

On Thu,  1 Apr 2021 14:46:47 +0530
Puranjay Mohan [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Add devicetree binding document for TMP117, a digital temperature sensor.

Signed-off-by: Puranjay Mohan <redacted>
---
 .../bindings/iio/temperature/ti,tmp117.yaml   | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
new file mode 100644
index 000000000..1ead22317
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
@@ -0,0 +1,34 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/iio/temperature/ti,tmp117.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: "TI TMP117 - Digital temperature sensor with integrated NV memory"
+
+description: |
+    TI TMP117 - Digital temperature sensor with integrated NV memory that supports
+    I2C interface.
+      https://www.ti.com/lit/gpn/tmp1
+
+maintainers: 
+  - "Puranjay Mohan <puranjay12@gmail.com>"
+
+properties: 
+  compatible: 
+    enum: 
+      - "ti,tmp117"
+  reg: 
+    maxItems: 1
+required: 
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - | 
+    tmp117@48 {
+        compatible = "ti,tmp117";
+        reg = <0x48>;
+      };  
For the example embed it in an appropriate i2c description e.g.

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        tmp117@48 {
             compatible = "ti,tmp117";
             reg = <0x48>;
        };
    };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help