linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: iio: humidity: add ENS21x sensor family
@ 2024-07-09 12:55 Joshua Felmeden
  2024-07-09 12:55 ` [PATCH 2/2] iio: humidity: Add support for ENS21x Joshua Felmeden
  2024-07-09 15:19 ` [PATCH 1/2] dt-bindings: iio: humidity: add ENS21x sensor family Krzysztof Kozlowski
  0 siblings, 2 replies; 5+ messages in thread
From: Joshua Felmeden @ 2024-07-09 12:55 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, Joshua Felmeden

Add device tree documentation for ENS21x family of temperature and
humidity sensors

Signed-off-by: Joshua Felmeden <jfelmeden@thegoodpenguin.co.uk>
---
 .../iio/humidity/sciosense,ens21x.yaml        | 50 +++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/humidity/sciosense,ens21x.yaml

diff --git a/Documentation/devicetree/bindings/iio/humidity/sciosense,ens21x.yaml b/Documentation/devicetree/bindings/iio/humidity/sciosense,ens21x.yaml
new file mode 100644
index 000000000000..3140349a58b8
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/humidity/sciosense,ens21x.yaml
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/humidity/sciosense,ens21x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ScioSense ENS21x temperature and humidity sensor
+
+maintainers:
+  - Joshua Felmeden <jfelmeden@thegoodpenguin.co.uk>
+
+description: |
+  Temperature and Humidity sensor.
+
+  Datasheet:
+    https://www.sciosense.com/wp-content/uploads/2024/04/ENS21x-Datasheet.pdf
+    https://www.sciosense.com/wp-content/uploads/2023/12/ENS210-Datasheet.pdf
+
+properties:
+  compatible:
+    enum:
+      - sciosense,ens210
+      - sciosense,ens210a
+      - sciosense,ens211
+      - sciosense,ens212
+      - sciosense,ens213a
+      - sciosense,ens215
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    i2c {
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       temperature-sensor@43 {
+           compatible = "sciosense,ens210";
+           reg = <0x43>;
+       };
+    };
+...
+
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH 0/2] iio: humidity: Add support for en21x sensor family
@ 2024-07-09 16:36 Joshua Felmeden
  2024-07-09 16:36 ` [PATCH 1/2] dt-bindings: iio: humidity: add ENS21x " Joshua Felmeden
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Felmeden @ 2024-07-09 16:36 UTC (permalink / raw)
  To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-iio, devicetree, linux-kernel, Joshua Felmeden

This patch series adds support for the
ENS210/ENS210A/ENS211/ENS212/ENS213A/ENS215 temperature and humidity
sensors.

Patch 1 adds the required device tree bindings.

Patch 2 adds the driver, providing the probe and read functions.

Signed-off-by: Joshua Felmeden <jfelmeden@thegoodpenguin.co.uk>
---
Joshua Felmeden (2):
      dt-bindings: iio: humidity: add ENS21x sensor family
      iio: humidity: Add support for ENS21x

 .../bindings/iio/humidity/sciosense,ens21x.yaml    |  50 +++
 drivers/iio/humidity/Kconfig                       |  11 +
 drivers/iio/humidity/Makefile                      |   1 +
 drivers/iio/humidity/ens21x.c                      | 348 +++++++++++++++++++++
 4 files changed, 410 insertions(+)
---
base-commit: 1ebab783647a9e3bf357002d5c4ff060c8474a0a
change-id: 20240709-ens21x-8f2530968f2e

Best regards,
-- 
Joshua Felmeden <jfelmeden@thegoodpenguin.co.uk>


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09 12:55 [PATCH 1/2] dt-bindings: iio: humidity: add ENS21x sensor family Joshua Felmeden
2024-07-09 12:55 ` [PATCH 2/2] iio: humidity: Add support for ENS21x Joshua Felmeden
2024-07-09 15:19 ` [PATCH 1/2] dt-bindings: iio: humidity: add ENS21x sensor family Krzysztof Kozlowski
  -- strict thread matches above, loose matches on Subject: below --
2024-07-09 16:36 [PATCH 0/2] iio: humidity: Add support for en21x " Joshua Felmeden
2024-07-09 16:36 ` [PATCH 1/2] dt-bindings: iio: humidity: add ENS21x " Joshua Felmeden
2024-07-10 10:09   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).