Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2679395imu; Sun, 27 Jan 2019 10:23:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Wne5zUEJMLr1YtN/LZCC7H7pYtlr4JGET5tfv5qbI5lDgS0yzV7d2LGkKZOwJMwHXtUrL X-Received: by 2002:a63:557:: with SMTP id 84mr16774156pgf.411.1548613392351; Sun, 27 Jan 2019 10:23:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548613392; cv=none; d=google.com; s=arc-20160816; b=rfk6pgvige5uEQCdYJPpeI7dYwNGa+WTqFom4qgk9Wapq7vdEDXUhC2RmddYj5yZpQ KjGwCgZcxT6BHJH5uQRlJ8x1r8WknplIo65IhWaeWbbcHs5rsqV03Vv63yV1O2DCMVnw g35JPN7J3vlSTkfwJAuIi5tVKwKusPPi87Lm1wBJTwRv2nmmPStBqppoJf8Rojytyxrm /DrwiwYQeaN9sT1/rt4z3Rg9bEDmZrZXuNgcEjm9nFGnRNCLwZH+n+tR7sMWXGNPPD3S qSIbyRm1qcbu83kGKy886Ebnl/kY/7v++CAhXMqu7ilKSK0N2zLXtxtqLnv/+BOdm7W8 tGoQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nhlUzCAvM06ADAGBHQ3dulgtXj987yKS2acj/AIOnU0=; b=smXmiM+dlQz7LuiEuO0NCw2PCiFCF7kcf803NdfVc+hhTbd0UEBnJvBdGG2iyKbQNr u+ZBfLtft6CSS0ORaCXCAaIWXIGMcEiB/3nBfVVuLaSmtBOgZltzBmeZtkWdL1KYjaVw 6e8nPQCX2TbgVm7clV6kP+zQckQLO1N5sc3GZ19ItpkqeC5yMBQu7+AjsIhZsJa+uh2L 47NzF8de2ONbglMQFTrDYS+oaliQRNVMROhaUoPaP3+lbeKDh0yZTwuIMfXftoL6ErDE glk+nDI8qsN9mIrqkkOZymWkach+kbmQmVx1hGZaYwtqlyqxiwxP4eLHfvI34T8N1Ktz Afpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZHYyoEHk; 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 r18si7661819pgo.9.2019.01.27.10.22.57; Sun, 27 Jan 2019 10:23:12 -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=ZHYyoEHk; 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 S1727048AbfA0SUA (ORCPT + 99 others); Sun, 27 Jan 2019 13:20:00 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33156 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726967AbfA0STv (ORCPT ); Sun, 27 Jan 2019 13:19:51 -0500 Received: by mail-lj1-f195.google.com with SMTP id v1-v6so12345131ljd.0; Sun, 27 Jan 2019 10:19:50 -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=nhlUzCAvM06ADAGBHQ3dulgtXj987yKS2acj/AIOnU0=; b=ZHYyoEHk8//rkhJKXahdN5AhfhYySnzpwt8f5LS7lODEWdKlQ73aTAtsJNLWYBXt8/ SRmqOTzlFZoMRpPyCxw5qFmPcobSdNBomKxiXFoCkKc7L97/my804+SZTkGZKfwHPdTl ScwrPEvahIpNIdFUrRRHcXC9qHG+SijiNoFs8Hp0C/oqOSoCpBn+URYl2+zFIULPEf1Q XX/T8UZ69mtdLa76Azr2k3T3JBIjieptaq9bDFX8jm1BBsL7hYWp84/uk/u3smWBneiy lFjWm+qO9cmUJoTqA9lz+ZwpASOdR1Yy8VsXmLqO+kepwI/PwJLTjKDvynAnVWfet6MN BPaw== 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=nhlUzCAvM06ADAGBHQ3dulgtXj987yKS2acj/AIOnU0=; b=VjKbSc8vpkW4RYqKXE4PcTj6nJMIiWmO6+st00DKt9V9YaRq5znz4JL0EEYk/MwkdQ etRl+daDskuj/ARxIoL4QbtsDWbTzw8xUEkT/BXm3VFaLVZJk6v9/+xmgrNT/d3KX0ra UiE1P3aYG00q7KU/lKflknptZC9/GTKGlB0IRZRcxU0qZx7Bed+F3WjxKq6WdUvF0dGX I5hbR/mX4FHpkseMNdM0xLdZdxhWqYk7PSBxTp7UlQhE95F/hwlxb/namsbHGlJo+MHj BMjZffA8EwXf60Rbgbe6ApdrhVlUgEfNb2/Hcstd4HAWEWoIOFlLY1ufSFwyfgfcT6xt kMNg== X-Gm-Message-State: AJcUukd4kbiovCvAdkm0p6GaiH2FxHY47G/iGUe9Txg+EDoiUCUHfibg R3Aal7w/KJ82AA9R5Qnl4hurvvyNx+w= X-Received: by 2002:a2e:7011:: with SMTP id l17-v6mr14566152ljc.147.1548613189101; Sun, 27 Jan 2019 10:19:49 -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 c20sm2518923lfj.67.2019.01.27.10.19.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 10:19:48 -0800 (PST) From: Tomasz Duszynski To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, johan@kernel.org, robh@kernel.org, jic23@jic23.retrosnub.co.uk, Tomasz Duszynski Subject: [PATCH v2 3/3] dt-bindings: iio: chemical: pms7003: add device tree support Date: Sun, 27 Jan 2019 19:19:16 +0100 Message-Id: <20190127181916.19948-4-tduszyns@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190127181916.19948-1-tduszyns@gmail.com> References: <20190127181916.19948-1-tduszyns@gmail.com> 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 Add device tree support for Plantower PMS7003 particulate matter sensor. Signed-off-by: Tomasz Duszynski --- .../iio/chemical/plantower,pms7003.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt diff --git a/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt new file mode 100644 index 000000000000..e4c7f2fb1e30 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt @@ -0,0 +1,19 @@ +* Plantower PMS7003 particulate matter sensor + +Required properties: +- compatible: must be "plantower,pms7003" + +Optional properties: +- vcc-supply: phandle to the regulator that provides power to the sensor +- set-gpios: phandle to the GPIO connected to the SET line +- reset-gpios: phandle to the GPIO connected to the RESET line + +Refer to serial/slave-device.txt for generic serial attached device bindings. + +Example: + +&uart0 { + pms7003 { + compatible = "plantower,pms7003"; + }; +}; -- 2.20.1