From patchwork Sun Feb 17 19:22:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 10817195 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 BD723922 for ; Sun, 17 Feb 2019 19:22:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6C3229F1B for ; Sun, 17 Feb 2019 19:22:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9AA5429F29; Sun, 17 Feb 2019 19:22:51 +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 4AEEB29F1B for ; Sun, 17 Feb 2019 19:22:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726403AbfBQTWp (ORCPT ); Sun, 17 Feb 2019 14:22:45 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43403 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfBQTWo (ORCPT ); Sun, 17 Feb 2019 14:22:44 -0500 Received: by mail-lj1-f196.google.com with SMTP id z20so11453629ljj.10; Sun, 17 Feb 2019 11:22:42 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=qljl+laKgAawohlKJZtgdt0AW8/6HgeMue2UYobsbiQ=; b=QsyEzi9J4pN7o9qjZrtuwE3EF8SfpytoCP52XlHFeD5R/ZzIVdqwuWUsepC92n5/HE SooYapW3U1vJU0WULTGsNIwNwmm2ZptdnNl3t0i73K4XO18NXdVHjtCJBSsJjwJVIKa3 UayIvzyZeF2hgCReXkHLY7pdgPLaISKW7E1YGz8fYsZhWrcEqu8J+TuCoOHMJLUuy/1D kMCve+WPAgndCFNhpZM7LcFFCboY0K+gKusAye9vG9hEUXYV2xb9z/foYDF0VTvi9L3d v+f3GEmiCT1V77lAPz4LjsxFbdoLOygZnVb+1pHjhEAVF0NFZHQAQaGZV5f/aRaLyUfu 0nAQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=qljl+laKgAawohlKJZtgdt0AW8/6HgeMue2UYobsbiQ=; b=YG9iO0lIVd7JIvphp8n0cqRwByB2SnCNndgAVykJjUkLdWZbp1LzeYPLxgVTChDHn7 vbVmZO4Az2mP9defKuO6V91VJ4W9lP4hKh+HtnRSjwTf7YHzlu1IKqHosItEO/B7d6gb JsqiH3MURzFxrirAeVPck06w3dYoisD7ZVfdV8awnsfbyEhkUL109UINBTQfkJ3lAvic h76YSzni0MyIGt7v3xs13Mpws2CpL747fjW1zbwxxpSsHZhr212T9Sp1dXzFO4VirUpE aSCnzFsFzrDzfoYDar9P6bNkqZOrZPzcREbQ0YKpWQI7o/DBVSh494Hj207JBdWajsTo xsBw== X-Gm-Message-State: AHQUAuZWwgK8EZA/UgIsYZMdq3UkHwxCycMwU259vXk77URKPz5Gd+9o 3Lwi9/RNhdr2IDsfq6ztwljT87b6 X-Google-Smtp-Source: AHgI3IbJwrAYvtfGULQ/pmbAhH3T2CzhOHmf2uND8lxbvqdqbC2gCOg3ey1DNxNw6W61s5tQ2tfHSg== X-Received: by 2002:a2e:2202:: with SMTP id i2mr7423822lji.170.1550431361436; Sun, 17 Feb 2019 11:22:41 -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 j14sm2916766lji.32.2019.02.17.11.22.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Feb 2019 11:22:40 -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 1/2] iio: chemical: pms7003: extend supported sensors list Date: Sun, 17 Feb 2019 20:22:12 +0100 Message-Id: <20190217192213.15803-2-tduszyns@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190217192213.15803-1-tduszyns@gmail.com> References: <20190217192213.15803-1-tduszyns@gmail.com> 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 Add other sensors to the compatible list. Signed-off-by: Tomasz Duszynski --- drivers/iio/chemical/pms7003.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/iio/chemical/pms7003.c b/drivers/iio/chemical/pms7003.c index db8e7b2327b3..23c9ab252470 100644 --- a/drivers/iio/chemical/pms7003.c +++ b/drivers/iio/chemical/pms7003.c @@ -321,7 +321,12 @@ static int pms7003_probe(struct serdev_device *serdev) } static const struct of_device_id pms7003_of_match[] = { + { .compatible = "plantower,pms1003" }, + { .compatible = "plantower,pms3003" }, + { .compatible = "plantower,pms5003" }, + { .compatible = "plantower,pms6003" }, { .compatible = "plantower,pms7003" }, + { .compatible = "plantower,pmsa003" }, { } }; MODULE_DEVICE_TABLE(of, pms7003_of_match); From patchwork Sun Feb 17 19:22:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 10817197 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 38E426C2 for ; Sun, 17 Feb 2019 19:22:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23E6929F1B for ; Sun, 17 Feb 2019 19:22:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 161F629F29; Sun, 17 Feb 2019 19:22:57 +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 0A6DB29F1B for ; Sun, 17 Feb 2019 19:22:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbfBQTWu (ORCPT ); Sun, 17 Feb 2019 14:22:50 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:41558 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfBQTWp (ORCPT ); Sun, 17 Feb 2019 14:22:45 -0500 Received: by mail-lj1-f194.google.com with SMTP id z25so4646428ljk.8; Sun, 17 Feb 2019 11:22:43 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=eVlAb1nlnwMUT9ENbqmaXwTU9ISgXl4wbcvuVZUrWqM=; b=iQ9QFSD8PyCCnIzy5ZXWCXPVvsPW/HFzXqti7GWj4QtuEXdX/S/uvjE9xfBZJZd3cQ AVer6m5qMIPSLOcZekOcCiFD5eyHrFLoMJ35NaP6yJ/lUTjHj1uuwGNIsZLiAn+xnfsJ HV6r+ibGLbsjFGjHDla4ZGbyaGdi1yr3m5GL1wWaMs1VK1pR/O9o/BeyE64yvZDoWDWf yOBw5cQLj853sRyJTKOtWibc3ZRvWOWae0wACCoxj/98YC1tqbarfJh1ws0dEkf7QIho 7GKyPPcoYCv0p8x0slZryMHBYf9fov1g9/Bx2gcnYR6SuG/Xppir6pwnV/nuZ6Unvd92 QRiA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=eVlAb1nlnwMUT9ENbqmaXwTU9ISgXl4wbcvuVZUrWqM=; b=ZrdCa8lYF309/5BPT3kZ6YV5FTUz3UszmjRxdI4h4QI2uwDyTPsCHjMjbn8N831HnS PjzYz+PmoYGVsM16Yc8K/6yo/RRI55LXiIlCd2oLPYTJVJ745IYe19x8b6Oc7Axshotl LhBv2abI5AtAMFcf6WtzdShNIOBDS+zBiyOTVSRqF1yKSvdr0gzKBhMDde8OBni3UDHv ZCIEbaJBLqm69OEPQ6L+G4FVg2k/mj+pUhFa1q4oq94e74NPa74MRq/3lEizZt+8f0yx 7ZoopnoXpeswHnIfLhk2mGCB0jjXQ05VvMlaAqyaHN7KbUN/09I/Sa2TgivkyZHiaTDp cEaQ== X-Gm-Message-State: AHQUAuYF1KlxDpk64GNGbaCUQBBMke12XXSq19IZdKoYDQK91Qr3rw9Z 1fFVm6XaYFUOvdLIVHqCDg+uga8o X-Google-Smtp-Source: AHgI3IZI9hT1YxGFqKabzlVtYFwmgjtr0eN7na1fHp1BoR2Nsh28G7W1tcKJfxUPmohkOWi6brlT5g== X-Received: by 2002:a2e:3319:: with SMTP id d25-v6mr11599810ljc.187.1550431362465; Sun, 17 Feb 2019 11:22:42 -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 j14sm2916766lji.32.2019.02.17.11.22.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Feb 2019 11:22:41 -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 2/2] dt-bindings: iio: chemical: pms7003: extend supported sensors list Date: Sun, 17 Feb 2019 20:22:13 +0100 Message-Id: <20190217192213.15803-3-tduszyns@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190217192213.15803-1-tduszyns@gmail.com> References: <20190217192213.15803-1-tduszyns@gmail.com> 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 Add other sensors to the compatible list. Signed-off-by: Tomasz Duszynski --- .../bindings/iio/chemical/plantower,pms7003.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt index 7b5f06f324c8..c52ea2126eaa 100644 --- a/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt +++ b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt @@ -1,7 +1,13 @@ * Plantower PMS7003 particulate matter sensor Required properties: -- compatible: must be "plantower,pms7003" +- compatible: must one of: + "plantower,pms1003" + "plantower,pms3003" + "plantower,pms5003" + "plantower,pms6003" + "plantower,pms7003" + "plantower,pmsa003" - vcc-supply: phandle to the regulator that provides power to the sensor Optional properties: