public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] dt-bindings: iio: pressure: Add Sensirion SDP500
@ 2024-04-30 15:27 Petar Stoykov
  2024-04-30 15:37 ` Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Petar Stoykov @ 2024-04-30 15:27 UTC (permalink / raw)
  To: linux-iio
  Cc: Jonathan Cameron, Krzysztof Kozlowski, Lars-Peter Clausen,
	Rob Herring, Andy Shevchenko, Angel Iglesias, Conor Dooley,
	linux-kernel, devicetree

From 60f5cc7f65b07124f19428a713c3bc33b9e4a7a7 Mon Sep 17 00:00:00 2001
From: Petar Stoykov <pd.pstoykov@gmail.com>
Date: Mon, 15 Jan 2024 14:29:25 +0100
Subject: [PATCH 1/3] dt-bindings: iio: pressure: Add Sensirion SDP500

Sensirion SDP500 is a digital differential pressure sensor. It provides
a digital I2C output. Add devicetree bindings requiring the compatible
string and I2C slave address (reg).

Signed-off-by: Petar Stoykov <pd.pstoykov@gmail.com>
---
 .../iio/pressure/sensirion,sdp500.yaml        | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644
Documentation/devicetree/bindings/iio/pressure/sensirion,sdp500.yaml

diff --git a/Documentation/devicetree/bindings/iio/pressure/sensirion,sdp500.yaml
b/Documentation/devicetree/bindings/iio/pressure/sensirion,sdp500.yaml
new file mode 100644
index 000000000000..3cdf17df7d52
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/pressure/sensirion,sdp500.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/pressure/sdp500.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: sdp500/sdp510 pressure sensor with I2C bus interface
+
+maintainers:
+  - Petar Stoykov <pd.pstoykov@gmail.com>
+
+description: |
+  Pressure sensor from Sensirion with I2C bus interface.
+  There is no software difference between sdp500 and sdp510.
+
+properties:
+  compatible:
+    const: sensirion,sdp500
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+      pressure@40 {
+        compatible = "sensirion,sdp500";
+        reg = <0x40>;
+        vdd-supply = <&foo>;
+      };
+    };
-- 
2.30.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-05 10:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30 15:27 [PATCH v2 1/3] dt-bindings: iio: pressure: Add Sensirion SDP500 Petar Stoykov
2024-04-30 15:37 ` Andy Shevchenko
2024-04-30 16:50 ` Conor Dooley
2024-05-01 12:06   ` Petar Stoykov
2024-05-01 13:38     ` Conor Dooley
2024-05-05 10:20 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox