Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3931687imu; Sat, 24 Nov 2018 14:16:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/XDl29lpBy1wj4xFvNTAkbuRqu4v6ZfIfp7JuH6aUooIS1XJMKMYf51YZVmgewBx+olLCcC X-Received: by 2002:a17:902:ac1:: with SMTP id 59mr10836812plp.36.1543097785637; Sat, 24 Nov 2018 14:16:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543097785; cv=none; d=google.com; s=arc-20160816; b=DJ3M47G29pMM4j8ItnIElzMk6xlY5Hux8q8ihd2yinWrp9UhnAhJ2PIzNifVo4LbVf gjS/HLb/ZpmvNZ6H6kKHTxqZlhcY6Yj4YLC3IKvKvcQ0MW+jhVn+twzNQ5hu9wpVJzFy BIsd0t7fVnrqfO5UgQ4RhlafpGR+SA2DBZ7ImYdJhX87nzI77HSFQ0a3BU215ddgD8yP 3fYddOMe/sLoj36u1A2kC2vBMF0ZLkRtG82nG7PJPN2OP2bujYvL0dBNV2bAqY6GY7CS 7OokhcKe5qLUi9oHBYQtISr+5lPyv+Rr+VR7h4nWMzBtH2/up+t8y/wt0VmNelkgYQiN KB1A== 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:dkim-signature; bh=YixfoGq2C6OjiqyibDtG2o7lmVehH+2+6x/tT8ESK+s=; b=n6gZED39lsgNlbA/9ROATIzdGVhWbSqmkAOt6DmYTofla9cluu+tdZBF8ybXZzFHrb m7ygV1ESDqjZKONm5HAa6VQGtwSRxybpOs+Wb9oFr/iy+Jb6VyS7pFtQZtWIu+BcOhiT 8yVNkDjp2p+Z357rWU+m6MsAQwoOikEFG0eP06f5iJUOmg9N/0m2RGdoYk16zDUBeLbb DmxH07huAmlT52aCd64afW9h8mubd6hf3ZjH0tX75p+vDqhXi7UKt8M73rwJLGV4jKDT Vtwen7tlhGzITLzwYpPbbalO+80B3Mhb9TGBSBw2+lgJIXMTp7y+Qhg8IBATP9VkUynf DtJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kKhAr+CU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z126-v6si63446496pfb.280.2018.11.24.14.16.10; Sat, 24 Nov 2018 14:16:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kKhAr+CU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726537AbeKYJEC (ORCPT + 99 others); Sun, 25 Nov 2018 04:04:02 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40171 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbeKYJEC (ORCPT ); Sun, 25 Nov 2018 04:04:02 -0500 Received: by mail-lj1-f193.google.com with SMTP id n18-v6so13356712lji.7; Sat, 24 Nov 2018 14:14:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YixfoGq2C6OjiqyibDtG2o7lmVehH+2+6x/tT8ESK+s=; b=kKhAr+CUkhIlMmYPQP4zWvvbpinzvmMBhzFaBTzW+/4lnGVgYf28KTmJGHTnXT13KC Uc7bcF9JAHGHOKKLaoCpjZx7TLe2txeAtaZZR+8LWfm/1IKGNb5qW9LfB49J9N14LMAQ 98NcZh0Gg+W3eIWQTBIUlKGOpinNKTfdXlDLqttcZ3NRA0Q8jH/TKlsS58Wjpv04nnI1 lie2hnQLEwawzgcGSS6fk4UAwSaGuEr1JnC8uJwoRp6m02ciLjb43Gjplu5zyBeho55T dIhWJnoQ3+ZHLJrL2Y6E9q9FajcopX2pn+ryh+8UA/IMdjRuJjiE5gYMk9lgcYKLfIe7 68kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YixfoGq2C6OjiqyibDtG2o7lmVehH+2+6x/tT8ESK+s=; b=SsRxFNhGMcgOwgYmhiDX88YfjhxZzltHPqU1xb+/hb2+CdiYZrSbbIC4ngG2NJwdvt V8UaPo7XUUyA/DQODFrqAEpCKCdiebpEK+Nk8SSMr2WlBzsbZpaOVwwCG/3PQmhZSOgQ QNlZSuw28pxowJBo5hV9CdqZwVKEL7sGHJJh8WTwCJZic4obYDF2UXs7+UgEIO4e/ffj IbE6PK//DjYLmyH3erFzh3bLgI4NcrLyXahy1n6SIXLsNyxEYsVgLrl0IRpA+1uCp24c 9QFsZNxTqw5E5gB+F7RsoFWPcJWRq7a0h1KDrTTSqEouYq/UFSvIrWgNt5aQZ/KJuNoH AGRg== X-Gm-Message-State: AA+aEWaW0sWdu4N5WRj1gwua4dG/T0Gu2AgAV0OIpqDdDtN3MrSNWLnc 6j2wtrtwLcRdJ+8fXV50gQzCntpBSno= X-Received: by 2002:a2e:b00a:: with SMTP id y10-v6mr12668273ljk.109.1543097674205; Sat, 24 Nov 2018 14:14:34 -0800 (PST) Received: from arch.domain.name (89-70-226-70.dynamic.chello.pl. [89.70.226.70]) by smtp.gmail.com with ESMTPSA id x16sm8369281lff.26.2018.11.24.14.14.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Nov 2018 14:14:33 -0800 (PST) From: Tomasz Duszynski To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tomasz Duszynski Subject: [PATCH 0/3] add support for Sensirion SPS30 PM sensor Date: Sat, 24 Nov 2018 23:14:12 +0100 Message-Id: <20181124221415.10081-1-tduszyns@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds support for Sensirion SPS30 particulate matter sensor. Along with a driver itself, new channel type and two modifiers for distinguishing between coarse and fine particles measurements are introduced. Sensor datasheet can be downloaded from https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/0_Datasheets/Particulate_Matter/Sensirion_PM_Sensors_SPS30_Datasheet.pdf Tomasz Duszynski (3): iio: add IIO_MASSCONCENTRATION channel type iio: chemical: add support for Sensirion SPS30 sensor iio: chemical: sps30: add device tree support Documentation/ABI/testing/sysfs-bus-iio | 11 +- .../bindings/iio/chemical/sensirion,sps30.txt | 12 + drivers/iio/chemical/Kconfig | 11 + drivers/iio/chemical/Makefile | 1 + drivers/iio/chemical/sps30.c | 359 ++++++++++++++++++ drivers/iio/industrialio-core.c | 3 + include/uapi/linux/iio/types.h | 3 + tools/iio/iio_event_monitor.c | 6 + 8 files changed, 405 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt create mode 100644 drivers/iio/chemical/sps30.c -- 2.19.2