[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231202041651.719963-1-alkuor@gmail.com>
Date: Fri, 1 Dec 2023 23:16:50 -0500
From: Abdel Alkuor <alkuor@...il.com>
To: jic23@...nel.org, krzysztof.kozlowski+dt@...aro.org
Cc: robh+dt@...nel.org, lars@...afoo.de, conor+dt@...nel.org,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, Abdel Alkuor <alkuor@...il.com>
Subject: [PATCH v2 1/2] dt-bindings: iio: temperature: Add AMS AS6200
as6200 is high accuracy temperature sensor of -/+ 0.4C degree
with a range between -40C to 125C degrees
Signed-off-by: Abdel Alkuor <alkuor@...il.com>
---
Changes in v2:
- Add vdd-supply
.../bindings/iio/temperature/ams,as6200.yaml | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml
diff --git a/Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml b/Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml
new file mode 100644
index 000000000000..a1817795cdca
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/temperature/ams,as6200.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: AMS AS6200 Temperature Sensor
+
+maintainers:
+ - Abdel Alkuor <alkuor@...il.com>
+
+description: |
+ https://ams.com/documents/20143/36005/AS6200_DS000449_4-00.pdf
+
+properties:
+ compatible:
+ const: ams,as6200
+
+ reg:
+ maxItems: 1
+
+ vdd-supply: true
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - vdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ temperature-sensor@48 {
+ compatible = "ams,as6200";
+ reg = <0x48>;
+ vdd-supply = <&vdd>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
+ };
+ };
+...
--
2.34.1
Powered by blists - more mailing lists