From patchwork Thu Dec 6 21:04:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 10716767 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 6676217DB for ; Thu, 6 Dec 2018 21:05:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57B1A2F23E for ; Thu, 6 Dec 2018 21:05:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BF162F246; Thu, 6 Dec 2018 21:05:30 +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 030EE2F23E for ; Thu, 6 Dec 2018 21:05:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726034AbeLFVFY (ORCPT ); Thu, 6 Dec 2018 16:05:24 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33396 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeLFVFP (ORCPT ); Thu, 6 Dec 2018 16:05:15 -0500 Received: by mail-lj1-f196.google.com with SMTP id v1-v6so1725352ljd.0; Thu, 06 Dec 2018 13:05:14 -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=DInuEKdbNHvaSBbjubOXmw0RPlkgMluOKS1WEsr6y5c=; b=gQudOtgPnk+ovQWOqW8yAo+fK1O02eOjiYcpHSE8HGAYa615Re2Rxf0RloFfoqK1U6 MsuNrJ2v/VoomfFtM+w+EMi45yVFQokShfw194a2556q/SVgGfS4z/cOQikXfO4oUIEc l4DSRFONdolyn5eeIDysA6D6a9J2+RTdMENrnW1JJpB/QRXYe/p7aVvknk7T22KAhNE9 /UOOUPXsl84nIf/OJgIv4FLZtRtfMtTJYqL9bqcwSe3cVRoV1fQAl6KgWbDiBloZ7UYy CRuEJYxm5ssOUOysFVq+a3PRjjH6erltF4dXtyGR32bWopXEySwN98dBFjHVDpzfDk7y 8Elw== 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=DInuEKdbNHvaSBbjubOXmw0RPlkgMluOKS1WEsr6y5c=; b=HIJtrZS11SX5RQbKk52iVurh4uSTYnr1UJAqT5YrmwR1f+30s9ze7zmZ79Zgd4Pz9I +DYyoyIFxZRElUG3sPXS0u80q0qguOpoJth8BiZcqg34/bVRz9JEyMPJ7WB3HAuMJTiV Pk7Blw5Co6tJynhJktX9aSTz2imZqtWCJ+hG+8TX8apA8FB3IKW2RdWA3zXT5akrLU0K Ov6Lt/g95aGPIfHDczNAUVOBQG9n6NDBIHVPaXuVSkLROUso250eBDHNlTJnE/Y8WqmZ hq8lFKPYUgUkLmTahKilwZ1Umu07NRlLNgYYsyVLU+H0V30L0TCJ9wdlnXJkcNSBVmzX uZcQ== X-Gm-Message-State: AA+aEWYiKQ/SMQyOrSdL12K+4NMgK8/evKNgwvluysScXNtlgW9D/BAx XDtvxntnWiuftmjoVPDiVdiQtPTxZVM= X-Google-Smtp-Source: AFSGD/WpPBhgUdwNoJRphrT0yMkN/NdTOV8ft94yXAR4iEhWEwVP98UjY9in+/si+uv6yG096Iueqw== X-Received: by 2002:a2e:5b93:: with SMTP id m19-v6mr16760115lje.115.1544130313167; Thu, 06 Dec 2018 13:05:13 -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 e94sm267366lfi.23.2018.12.06.13.05.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 13:05:12 -0800 (PST) From: Tomasz Duszynski To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, jic23@jic23.retrosnub.co.uk, a.brauchli@elementarea.net, Tomasz Duszynski Subject: [PATCH v2 3/3] iio: chemical: sps30: add device tree support Date: Thu, 6 Dec 2018 22:04:43 +0100 Message-Id: <20181206210443.21052-4-tduszyns@gmail.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206210443.21052-1-tduszyns@gmail.com> References: <20181206210443.21052-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 device tree support for Sensirion SPS30 particulate matter sensor. Signed-off-by: Tomasz Duszynski --- .../bindings/iio/chemical/sensirion,sps30.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt b/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt new file mode 100644 index 000000000000..6eee2709b5b6 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt @@ -0,0 +1,12 @@ +* 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>; +};