From patchwork Thu Jun 20 19:50:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 11007903 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 7857814B6 for ; Thu, 20 Jun 2019 19:52:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 688A428891 for ; Thu, 20 Jun 2019 19:52:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AE1E2890E; Thu, 20 Jun 2019 19:52: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 042C128745 for ; Thu, 20 Jun 2019 19:52:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726931AbfFTTwq (ORCPT ); Thu, 20 Jun 2019 15:52:46 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:39631 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfFTTwo (ORCPT ); Thu, 20 Jun 2019 15:52:44 -0400 Received: by mail-lf1-f66.google.com with SMTP id p24so3300649lfo.6; Thu, 20 Jun 2019 12:52:42 -0700 (PDT) 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=SgOvaybFVx8Zvodjw3FTHh7WY9oh8C3cTwy/9CQA0B4=; b=F0eb+SVnwJuZ6txyj6/fbZCjJoYMlFhpR9tEneH4igsKkJT9M9Ec1KiFfr8RkBK5zq Yntqpdj9ur5NQ7Y2gEa+pSI3AAoiFcw6mVjG/huQr1209hW2Lz5JgfTlWf6+/eLCzURN EPtFRawoXsmHWf8brKwNz+tpkVv7XFq+/shSOpQs0IFTPkmOsDucCjpxTSxuefPzcSF2 bCs1ZQSQbZMf6SZJkP5LBtNDMqH6EOAu9dRwo6To0xhzJ6Eh3gCV4nN4qaciope1pPYs K1fp6ukzQz/diwewgyLEg9k6u1UV6fKzuRX+7f7tUch78ldcHaFezQnnM41ROgzjO3Lm 7u+A== 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=SgOvaybFVx8Zvodjw3FTHh7WY9oh8C3cTwy/9CQA0B4=; b=nRgymk1VFZ2SfwKqs8lUO77rgwhZM/oGOW07unPw418piitii9iyYjAwaAya71iRNd 13TF1v2uHnG1TUWXfIcWdeYcCyEz8NeNaVOHZ6CNnDz3fJDdrypVV6729EaePgYaaJFd undlXEqNM29fR28EaDBkalHkTR3jMPxy4iCAXQM3Xr0NwEJ2oif3RWo/C8IFTxXYYJ1z mkqjMHA+M/TBrM3CsU5zmwEeJmDfbof4i/GczfyTmzOkQmxzCz79v48p6d0MYWJAbVLo GHpfEm65Lwzlr+W3IwBSOUhyDeritnsX3FDSLvsWB//k2rxALuPAzjTCmJSnQl35BzBB wrcA== X-Gm-Message-State: APjAAAXbVI+PgA1Zr0GgSEZYPWyOu2Lt9Nhkq3kHIRQq+6XbwBUmZgOx Mzn3PNKWb2Z3WSs2Bi3lW5aFkBhuxvULVg== X-Google-Smtp-Source: APXvYqzCMHyz5LV/Dxn+p0BfDH2RL00iMtlOLHv2SMvlJvLnaOL8Ap+zWKh25kukExgA+IxVMY4Fiw== X-Received: by 2002:ac2:518d:: with SMTP id u13mr1638021lfi.40.1561060361592; Thu, 20 Jun 2019 12:52:41 -0700 (PDT) Received: from localhost.localdomain (89-64-59-58.dynamic.chello.pl. [89.64.59.58]) by smtp.gmail.com with ESMTPSA id t17sm74645ljj.55.2019.06.20.12.52.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 20 Jun 2019 12:52:41 -0700 (PDT) From: Tomasz Duszynski To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, jic23@kernel.org, robh+dt@kernel.org, Tomasz Duszynski Subject: [PATCH 1/2] dt-bindings: iio: chemical: sps30: convert bindings to yaml Date: Thu, 20 Jun 2019 21:50:10 +0200 Message-Id: <20190620195011.30942-2-tduszyns@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620195011.30942-1-tduszyns@gmail.com> References: <20190620195011.30942-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 Convert existing device tree bindings to yaml. Signed-off-by: Tomasz Duszynski Reviewed-by: Rob Herring --- .../bindings/iio/chemical/sensirion,sps30.txt | 12 ------ .../iio/chemical/sensirion,sps30.yaml | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+), 12 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.yaml -- 2.22.0 diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt b/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt deleted file mode 100644 index 6eee2709b5b6..000000000000 --- a/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt +++ /dev/null @@ -1,12 +0,0 @@ -* Sensirion SPS30 particulate matter sensor - -Required properties: -- compatible: must be "sensirion,sps30" -- reg: the I2C address of the sensor - -Example: - -sps30@69 { - compatible = "sensirion,sps30"; - reg = <0x69>; -}; diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.yaml b/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.yaml new file mode 100644 index 000000000000..50a50a0d7070 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/chemical/sensirion,sps30.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sensirion SPS30 particulate matter sensor + +maintainers: + - Tomasz Duszynski + +description: | + Air pollution sensor capable of measuring mass concentration of dust + particles. + +properties: + compatible: + enum: + - sensirion,sps30 + reg: + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + air-pollution-sensor@69 { + compatible = "sensirion,sps30"; + reg = <0x69>; + }; + }; + +... From patchwork Thu Jun 20 19:50: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: 11007905 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 676EA14B6 for ; Thu, 20 Jun 2019 19:52:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5996928900 for ; Thu, 20 Jun 2019 19:52:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B4C528906; Thu, 20 Jun 2019 19:52: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 C4123288E2 for ; Thu, 20 Jun 2019 19:52:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726969AbfFTTwu (ORCPT ); Thu, 20 Jun 2019 15:52:50 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42557 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbfFTTwp (ORCPT ); Thu, 20 Jun 2019 15:52:45 -0400 Received: by mail-lj1-f194.google.com with SMTP id t28so3812866lje.9; Thu, 20 Jun 2019 12:52:43 -0700 (PDT) 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=4H4GxMclDvVAq723JYHDFWc6hksl9ud+nP2g0Z/0gCg=; b=rXxKuD+wOBnhqosxvMYJXMmPxBOV/JL2zZ7pLXea1KitFyKk7c1FTyOm4Di6BUBrsw aFpGsAsROLfk2EBCbABqbW27S+iPX2+XWWtiitpP10Ei7PW2P+MYtF+33woS9metPwqm g+qNGecWxETr3vETqDmIFDMYL4gvLb32aePP+l61d77drvPtErE0ZYD8EjTYtb8+YRq7 DH7dYAJUtDBIzfTWm9SNTHkqn9GKVc9/D040XFC5/5vA47DklJ3BV+lD1fG4+Nmpv6pH un7OshTVQdgx4sutaQVHxSTuxRcBBfypJ++sD1C1L9e88/NGmEv1TA4F5VBSqvRY6NAs 9cSQ== 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=4H4GxMclDvVAq723JYHDFWc6hksl9ud+nP2g0Z/0gCg=; b=CF5Na2NRP0SVoI9Hk8tJsfNTNfsiXURQsvRK83L1bHpPHUMT3TNVVs9V134xDy803O VKV7TAIMBcdj3wVsSgLHdCBPBnyradKiMFA/NuohaLQYRy8muzpJDdwVWX2RvjzioTqW MNBF/ZUL5c6I4XuUMQGO2u1Cr3TD/BORFK2m0f1yMBxRH3vwS07Fv9VHO57sBijFeyfz aVtx/TKzxai57w45iHMGxq2X8jjn2wAjU8j/Yu+tSjUmem4D2wvTWw4JsUnTXmOC0dC1 VAQSNFnhWZlgNL/Kz4qrNSYZD0nfhUsrv/5SltDqqlF/NKqK+Z+1TDNEEYCCjUij4WeF 1sFA== X-Gm-Message-State: APjAAAX/rsvVV7LkKABQ/hZj1AhcSKoOpUjHlkbi1k9iSz5DZ5v6SDiE 1fMJqR8gv5PTzpF9k0rZ561LMU9dyydqyg== X-Google-Smtp-Source: APXvYqya7BBXkKtzUdSgB7JBQXIPFLnUtFzubzm765BAVvS/2T7Gzq4mqoIfn2HYZcuAsXDD99Eslw== X-Received: by 2002:a2e:124c:: with SMTP id t73mr38012548lje.190.1561060362705; Thu, 20 Jun 2019 12:52:42 -0700 (PDT) Received: from localhost.localdomain (89-64-59-58.dynamic.chello.pl. [89.64.59.58]) by smtp.gmail.com with ESMTPSA id t17sm74645ljj.55.2019.06.20.12.52.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 20 Jun 2019 12:52:42 -0700 (PDT) From: Tomasz Duszynski To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, jic23@kernel.org, robh+dt@kernel.org, Tomasz Duszynski Subject: [PATCH 2/2] MAINTAINERS: add entry for sensirion sps30 driver Date: Thu, 20 Jun 2019 21:50:11 +0200 Message-Id: <20190620195011.30942-3-tduszyns@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620195011.30942-1-tduszyns@gmail.com> References: <20190620195011.30942-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 myself as a sensirion sps30 driver maintainer. Signed-off-by: Tomasz Duszynski --- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1eb971608ac4..dafa02ba161c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14172,6 +14172,12 @@ S: Maintained F: drivers/misc/phantom.c F: include/uapi/linux/phantom.h +SENSIRION SPS30 AIR POLLUTION SENSOR DRIVER +M: Tomasz Duszynski +S: Maintained +F: drivers/iio/chemical/sps30.c +F: Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.yaml + SERIAL DEVICE BUS M: Rob Herring L: linux-serial@vger.kernel.org