Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3192379imu; Sun, 27 Jan 2019 23:59:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN4hGohcciXWmtdHPVKCKy8n9p8cN+izhDZFwv+JNJ4kqYqRwsn/Le1n1wjE4nhA+e5+o5VC X-Received: by 2002:a17:902:2c83:: with SMTP id n3mr21040723plb.104.1548662350388; Sun, 27 Jan 2019 23:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548662350; cv=none; d=google.com; s=arc-20160816; b=UKbgUrofMkw4D9cKYoxFff94wM7VWq+SuAqYQyxg8+nczp401vGXlWbcj8z8Kix/nn DlqCOH9VsHLoqNGbDwVMkrKJGeRXDsXJ4C5pMPLFDyZ2VTfgt8DAhsar9nyGHAdtKDla wFNT/NIehyUBvDZXdU2vTCsvLRRBuzxadKiMoq0yV2WHljkjjkFcLsxmdg+tOdiMoWkN XNGfmWkwDuyrpHtiRVITT3jKke5VcsyQO0ioqrg+jjT6v4PgaZK/QhjL8wb5hZ1e4XGu GxzyJVIcncq0EcxHDQchDqOotPcFCC4UsdFtRSzgzY70S3fDH+lXbDT0unqWccGGLxT6 nEUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uX4EWl+872Z83SHKtTPVAAO1e9XNAnakGSaGM3zqyVY=; b=BFbSAZL53JQg2UCeKC21us2nkTONSDKxWzyVeyNzkH+6gxwut0Gu500095MV6fpGlJ PN8Ry4ta6VVVszkUCCPgwM379FWJ06v4z9L/uJBqx9wqXNpB2nXJEB5D2dHPdqnYmklj S/3Tl3Q0EOg76LuU/vnOTumLrkOHq/LZymNAu7ZA3nEGfW00s+tTjL0LRDv5+akz2VpC 5Fyrkwnhueq8pF1BCafMgZvaGu1JuK2MieXNdzzP/qPQv+UQcgxnPcAa0t0XJS1E9e5Q /zqxkgN+hoQR2Qmf+4z2rRfyQI1NLgW/SDDgtSnUc42BzpS+vg3DosQ7f72wt6lNtc71 t6Lw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k25si32831106pfe.10.2019.01.27.23.58.55; Sun, 27 Jan 2019 23:59:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726828AbfA1H6a (ORCPT + 99 others); Mon, 28 Jan 2019 02:58:30 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34051 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbfA1H62 (ORCPT ); Mon, 28 Jan 2019 02:58:28 -0500 Received: by mail-lj1-f195.google.com with SMTP id u89-v6so13401595lje.1; Sun, 27 Jan 2019 23:58:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uX4EWl+872Z83SHKtTPVAAO1e9XNAnakGSaGM3zqyVY=; b=TowfRVOa4u4eikpTYZYpMO50+dCm5ur0fKYBeEw24xqYv0nM53NE6yG20Pd3hxoK7R CJ2irbZ+PaxQRFkn9BeuYMsBs9YVUN/TWlA2+fHvxyZlRrkEdbKHc6jPlTSEUL3Sq50L W3czxVUcVw+IMnMu/YREGcnXufqVNtsuKbCXtefmh544BeE+12dNSu3remmmXqIC42Xc bzBiWD/GHjYHBUPJcAxhSjHxZOSDIwxuUQjgssfSiFqgPidni+545luMD4O7LO9sDgK/ D17MkoAoCCO0WQQ5xhWcr5snB8JUaf7+Y/OUzis4NIK+STSYPuQzcdOa6IGWmeLJJu7d t9zw== X-Gm-Message-State: AJcUukf6AJFH0B75gkeqfYTVvc/o5btgLIst/36ScxEnnJclmPaeLO1y 5dltTOZC86fg97y828Hxt/s= X-Received: by 2002:a2e:310a:: with SMTP id x10-v6mr16006353ljx.6.1548662306567; Sun, 27 Jan 2019 23:58:26 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id y23-v6sm2904753ljk.95.2019.01.27.23.58.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 23:58:25 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1go1oB-0000R0-UG; Mon, 28 Jan 2019 08:58:19 +0100 Date: Mon, 28 Jan 2019 08:58:19 +0100 From: Johan Hovold To: Tomasz Duszynski Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, johan@kernel.org, robh@kernel.org, jic23@jic23.retrosnub.co.uk Subject: Re: [PATCH v2 3/3] dt-bindings: iio: chemical: pms7003: add device tree support Message-ID: <20190128075819.GK3691@localhost> References: <20190127181916.19948-1-tduszyns@gmail.com> <20190127181916.19948-4-tduszyns@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190127181916.19948-4-tduszyns@gmail.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 27, 2019 at 07:19:16PM +0100, Tomasz Duszynski wrote: > 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 Shouldn't this one be a required property? > +- 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 { The node name should be generic and reflect the functionality rather than model. Perhaps "pms" will do here. > + compatible = "plantower,pms7003"; > + }; > +}; Johan