Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp753187ybz; Wed, 22 Apr 2020 07:24:26 -0700 (PDT) X-Google-Smtp-Source: APiQypJEV/Wg8e3uB8KXpPk7ZQAUFxsO8ymgD3oAOqMO+cqa68QhuPvfvcbyWmRnEhPlDBRjSMtO X-Received: by 2002:a05:6402:1ad0:: with SMTP id ba16mr23697885edb.11.1587565466453; Wed, 22 Apr 2020 07:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587565466; cv=none; d=google.com; s=arc-20160816; b=vgRh6nyKlUXNIJ0NwwZGO2T8jZT21umu7UGn20nSz8OpJSlqFxlMN6odQaSyXUw5KW Rl35Wks9bpcrz1Pxwx5yChhPRLvPAn0LoY2czHlGBpcova53ub+N4qSA/SGWshLFJ18q tjefKBDxt7tfHAWieKzogeXw3mrJBAi27tZlLzdDOQT6NwSXPPqf+qUUqhXnQvtscC2O SdtJ3dTKxiBLzjfJPv1FpZXbmK5zOFKzaD25Q3LM0oRR+wl2BE3CeJJR/xhgW7TDEfUr Y/N/88oNcbROJQaqEBgmTaD8tFJWQzsJffOgAStNw4YOFZMTsHMOII9CgRyr0YykuZc5 o6lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QlEdQa8YfRV2SuY/fIGOIiGHaf7NS3ZMo8Q1x8Cck0c=; b=OBgk7JtzAbwYIpAGn/rSodHPrLDQXKK4IY6PUOyUMO76NBRChp7TwaGIIo+/6O7has moNQiXQbpOjP+ja4FoVfOUj3UBZHMGGP7QnpseDjoVw+UwkAm99u9ax/NJRhYqfo5iWI abVnl42ElEwE+2CCJvq/7ldb+Cml9OLzrSJwuBlGN7p+qrJcEp4DworGeseAJIOZEgSk 23eNKxmB+aZcjH699nnmoddn5imjzVyRMVd4W5GLTT93at2qUTZ9I32Ylr+Cq9pgXAYe TAhUR/K6d2nJXnkazf5YFaXBXjHxHoaAPKShvV5SrbtkVrjk0odTmoBx21gUoZZ7aubD fiZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si3487322edc.160.2020.04.22.07.23.56; Wed, 22 Apr 2020 07:24:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727894AbgDVOWO (ORCPT + 99 others); Wed, 22 Apr 2020 10:22:14 -0400 Received: from smtpout1.mo803.mail-out.ovh.net ([79.137.123.219]:34267 "EHLO smtpout1.mo803.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726479AbgDVOWN (ORCPT ); Wed, 22 Apr 2020 10:22:13 -0400 Received: from pro2.mail.ovh.net (unknown [10.108.4.231]) by mo803.mail-out.ovh.net (Postfix) with ESMTPS id 984EE4F477ED; Wed, 22 Apr 2020 16:13:05 +0200 (CEST) Received: from arch.lan (89.70.31.203) by DAG2EX1.emp2.local (172.16.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Wed, 22 Apr 2020 16:13:04 +0200 From: Tomasz Duszynski To: CC: , , , , Tomasz Duszynski Subject: [PATCH 0/6] Add support for SCD30 sensor Date: Wed, 22 Apr 2020 16:11:29 +0200 Message-ID: <20200422141135.86419-1-tomasz.duszynski@octakon.com> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [89.70.31.203] X-ClientProxiedBy: DAG3EX2.emp2.local (172.16.2.22) To DAG2EX1.emp2.local (172.16.2.11) X-Ovh-Tracer-Id: 5832442993075313687 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrgeejgdeikecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkffoggfgtghisehtkeertdertddtnecuhfhrohhmpefvohhmrghsiicuffhushiihihnshhkihcuoehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomheqnecukfhppedtrddtrddtrddtpdekledrjedtrdefuddrvddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehprhhovddrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomhdprhgtphhtthhopehjihgtvdefsehkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Following series adds support for Sensirion SCD30 sensor module capable of measuring carbon dioxide, temperature and relative humidity. CO2 measurements base on NDIR principle while temperature and relative humidity are measured by the on board SHT31. As for sensor communication, both I2C and serial interfaces are supported. Tomasz Duszynski (6): iio: chemical: scd30: add core driver iio: chemical: scd30: add I2C interface driver iio: chemical: scd30: add serial interface driver Documentation: ABI: testing: scd30: document iio attributes dt-bindings: iio: scd30: add device binding file MAINTAINERS: add myself as a SCD30 driver maintainer Documentation/ABI/testing/sysfs-bus-iio-scd30 | 97 +++ .../iio/chemical/sensirion,scd30.yaml | 71 ++ MAINTAINERS | 9 + drivers/iio/chemical/Kconfig | 33 + drivers/iio/chemical/Makefile | 3 + drivers/iio/chemical/scd30.h | 72 ++ drivers/iio/chemical/scd30_core.c | 796 ++++++++++++++++++ drivers/iio/chemical/scd30_i2c.c | 141 ++++ drivers/iio/chemical/scd30_serial.c | 262 ++++++ 9 files changed, 1484 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-scd30 create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml create mode 100644 drivers/iio/chemical/scd30.h create mode 100644 drivers/iio/chemical/scd30_core.c create mode 100644 drivers/iio/chemical/scd30_i2c.c create mode 100644 drivers/iio/chemical/scd30_serial.c -- 2.26.1