Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp870809imj; Sat, 9 Feb 2019 09:37:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IYGjtfgGowEl3ZOgeNzzuiOAEgkbft/OSO2imRa1LjJPJ1wNKLIXuWnth1pv0FX0u0Jqo1f X-Received: by 2002:a17:902:aa07:: with SMTP id be7mr29189317plb.63.1549733835553; Sat, 09 Feb 2019 09:37:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549733835; cv=none; d=google.com; s=arc-20160816; b=D3fAtSImZIbDWIqhl103umCaLRwrVTX3T/lkAkKiWwkJrpLPnGrw3pbewadiaclhvQ sdvApBmga8ICcy9wdFfM1irL4zWl6Wm8RrhGu9PKGhGDM/X2Fs69+kNrWWcqzpQGBQ5g EntzAfUhMl2x7dzkmmLpaoglcbeQ0lZ8R8jFv5Gji2bNVC3zz2hjbaXAXdYooW1Yzjbw l6KAs2WAmGdFyz3IJbLnH1m2NzPBzp4sfjKoAxTZbF/kthkKbwPLgrG9LLekBhuDIuJB meEDeApme70xB28RO/0dAT/NwePGQP/Y2XbBGu16Ak7U5CaJ91XxzhUGNrP91xLefS18 xyIA== 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=pWUDt6MxnVmk+/hRCdmQbHGfGO1VjvxQfobMdJrFKoE=; b=ZLdnVaa2/9LrfrdJh29zqCW78wO41W3LBBksb+6waKInPHuVu/CahPLhLmEPB+uSyU oJv1Yj0oo/Tyms/ljDzdcdYCCfUzkBcZcdbHztxjtUFr/cEMYhFXPg7Wt1b7pIAUJjJt QKs1ygpKIDyD0ch9gD84RBOQzisD91Xyd8RQ5jtP6jE/M36iXElzE3bUgGkQIGKOlk6B aDI+BjChP4xb3A0w1e8CE+FS3HDJDXYOXqSxMvkSEuJt7DkkibFLf0i6HP9UoxmThgB6 RmYyfxmSk5W0ejsOasrEkeMBqrrYmiQ1w3VP1M/Qe58nv+AnRW1fCpfbSejFYgUB0Aqc r3zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AFTYrDun; 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 l22si5629489pfg.275.2019.02.09.09.36.58; Sat, 09 Feb 2019 09:37:15 -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=AFTYrDun; 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 S1728044AbfBIRgu (ORCPT + 99 others); Sat, 9 Feb 2019 12:36:50 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35610 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728018AbfBIRgp (ORCPT ); Sat, 9 Feb 2019 12:36:45 -0500 Received: by mail-lj1-f196.google.com with SMTP id j13-v6so5607994ljc.2; Sat, 09 Feb 2019 09:36: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=pWUDt6MxnVmk+/hRCdmQbHGfGO1VjvxQfobMdJrFKoE=; b=AFTYrDunE7JhyCP6nUpAaRSmBF1X1V5Oyd/vUAF5sBRob6jGf9XdfHMK1P0kHoaUFn yA6+pWfHmIxEkjfy8rMP/IAW6nf60VYByMzm7mdCk+uXUjC2a3kHt36F5CXybh61Zo3p tQQDczAjSBkt3AUOEMEpChe7bOqHjGwc1rWgKJK8vxO+JxSfX/siqY0i+p+Qf8YwLVUi lNhR5VX1HoHC8dm/ijpdfms50KonqBa6irYRWuT1cipKtkRBCUq4NFaJbD349wz3+t82 fcRO89PGmD6WB/8AT/F2auwPHLfMlaUL4btjiAKBc/jbrVJ50pe2LdMbLDKVuaoOkpoG jLjw== 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=pWUDt6MxnVmk+/hRCdmQbHGfGO1VjvxQfobMdJrFKoE=; b=YkrYsnXaowJ8Lpm2PyIYVVfuI8/FIyJIJPmtwIwYRu+9nWFJR0qcCwU7+9/P+U7L5c flSmXXMHa5ZlZW6aALPp7FzJOtKgMeCinR7Z+VSOFoCuSN6fxepmLVbPFnlJ1yOhnmF+ 74hkUy92BBEdqOMBknz3KZCBZTA2akNOSd48SJMiD9uU+ZdwhGBdLIMEnkIQnWi9qtqK +5EVKj+3GxBXYdJBYet+wVu8U7cZv2YRdmOKvPHDr3zmII+MvTvrNEtGZK5APxFlUwRl i2/yA5snD0vlGKdxvIsMRii1104//PFU9V3TPY059EkdqA/cB29WvQzfWqxuR3z178bg L0xA== X-Gm-Message-State: AHQUAuYByOiR3KMIzeoPEzI7QmWI4Foz2nTgbPkuUxQuN9oLHIskzzeU A9eLZJk9r69rNwEjmhQHiEZM+G8RtBk= X-Received: by 2002:a05:651c:101:: with SMTP id a1mr8362206ljb.59.1549733802283; Sat, 09 Feb 2019 09:36: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 n12-v6sm1080508ljj.32.2019.02.09.09.36.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Feb 2019 09:36:41 -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, pmeerw@pmeerw.net, johan@kernel.org, Tomasz Duszynski Subject: [PATCH v4 3/3] dt-bindings: iio: chemical: pms7003: add device tree support Date: Sat, 9 Feb 2019 18:36:09 +0100 Message-Id: <20190209173609.13220-4-tduszyns@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190209173609.13220-1-tduszyns@gmail.com> References: <20190209173609.13220-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 | 20 +++++++++++++++++++ 1 file changed, 20 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..7b5f06f324c8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt @@ -0,0 +1,20 @@ +* Plantower PMS7003 particulate matter sensor + +Required properties: +- compatible: must be "plantower,pms7003" +- vcc-supply: phandle to the regulator that provides power to the sensor + +Optional properties: +- plantower,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 { + air-pollution-sensor { + compatible = "plantower,pms7003"; + vcc-supply = <®_vcc5v0>; + }; +}; -- 2.20.1