From patchwork Sun Jan 6 17:16:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 10749583 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 039C314E5 for ; Sun, 6 Jan 2019 17:16:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D60CB28875 for ; Sun, 6 Jan 2019 17:16:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C87842888A; Sun, 6 Jan 2019 17:16:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51CFE28760 for ; Sun, 6 Jan 2019 17:16:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726034AbfAFRQr (ORCPT ); Sun, 6 Jan 2019 12:16:47 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:33674 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbfAFRQr (ORCPT ); Sun, 6 Jan 2019 12:16:47 -0500 Received: by mail-lf1-f65.google.com with SMTP id i26so28581956lfc.0; Sun, 06 Jan 2019 09:16:44 -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=ECo3UMwhJhcU25xjwIsa4xBOPP2q83et6OCuOIefeik=; b=IcdnRzXZN68+hwCb5BXME04XPXSkGkoxtlqMd71XaaG/ScTdbkTvNiikecb56mj3cm S2A/H5HRJgX3gzkgLO1XZqLq5luT+05BMqmrCEc2mOXAUsMnUZZ8efzhzm2mrBDTrKDe ZXKNdgkPcRfIDu4zK1Xi/88GR5f2r/BXVAtmq3qc1Qo5lfrip5bvLo/p+ICn2FhFMm2t 25d2soJyHH9aShG/P/ioK+i0xYScGgT4rgdFKkYWFoDFk7xfB0/mtZA1Ipyg08vTlEnl eMHr3k59iaojc8ANHItGhyyC1cZldUIbePJvTuq8TbLWzvVQgYh6S/+t6lU6TyBSxsyg 6DCg== 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=ECo3UMwhJhcU25xjwIsa4xBOPP2q83et6OCuOIefeik=; b=SEJ810GReIVbO3DVTJjsikka0ea1yKEnLln+Da3ZIGG6eyQ8O9rQcsymmeElxVQ07d Gwr3/xOvvkQ3QyFMzFDoUEM7HhDwyfkPXV8RfHMJyjQ/Urw6iMZuSTnj5x6H2sbu7fMJ f1s64o5OIxUwUfg6K0Bu85/WwDxBg1wkDvxTVP+aq0z5fgiX79GEiLeZzBUhRNZPPNn1 IUcczlTkMWJAzHEWEbWAHeFJTJJBSi5bmNBfcUb3T7RqAZWfX/OflrnVppQDseWkIX4y lK39OaDZ/kfBEvwVL2DQNXsGNPJc/pw4JercgGIEKDD4b3P5U1T3QTqR7/Vv93tzwwbR CFQQ== X-Gm-Message-State: AA+aEWb8KRTP0CW+nfBIEkRfAYpSNVL2VDi+Sx3JMxK+SrvJJgUs1HlT GyKoC8xYjtfAADfs/Q7m49x2xI5k X-Google-Smtp-Source: AFSGD/XX+9WOJM3LXGFdfsa0QPPdUhhvqJYpk3HlYExSeeyO1Njrz3oNrN+EUKine9IFe3742/4X1A== X-Received: by 2002:a19:5154:: with SMTP id f81mr30649640lfb.96.1546795003116; Sun, 06 Jan 2019 09:16:43 -0800 (PST) Received: from arch.domain.name (89-70-37-207.dynamic.chello.pl. [89.70.37.207]) by smtp.gmail.com with ESMTPSA id b17sm12339409lfc.21.2019.01.06.09.16.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 09:16:42 -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 PMS7003 PM sensor Date: Sun, 6 Jan 2019 18:16:11 +0100 Message-Id: <20190106171614.12615-1-tduszyns@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch series adds support for Plantower PMS7003 PM matter sensor. Unfortunately datasheet is not available for download from the Plantower website so one needs to find it elsewhere, for instance here: https://download.kamami.com/p564008-p564008-PMS7003%20series%20data%20manua_English_V2.5.pdf Tomasz Duszynski (3): iio: chemical: add support for Plantower PMS7003 sensor dt-bindings: add Plantower to the vendor prefixes dt-bindings: iio: chemical: pms7003: add device tree support .../iio/chemical/plantower,pms7003.txt | 14 + .../devicetree/bindings/vendor-prefixes.txt | 1 + drivers/iio/chemical/Kconfig | 10 + drivers/iio/chemical/Makefile | 1 + drivers/iio/chemical/pms7003.c | 411 ++++++++++++++++++ 5 files changed, 437 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt create mode 100644 drivers/iio/chemical/pms7003.c --- 2.20.1