Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp1877549ima; Sat, 2 Feb 2019 09:14:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7AxxgaxwGaFXfrqkWHr/JYcqpn09zyWO2lTMbJ3HCK5Ux4PpJ1vraMrq6RFGS6teHYn8H/ X-Received: by 2002:a17:902:161:: with SMTP id 88mr45659438plb.306.1549127675653; Sat, 02 Feb 2019 09:14:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549127675; cv=none; d=google.com; s=arc-20160816; b=r4siugysV2vA0FAW2F3EsyqRCUv4zj5R6Rb24BgcZeUGbWEn4SV/3nS7E/sLEIWI7X HDX6zL3c7A+hvGmWs9I+sJA99R3pK8wfNZFAgT3nMLhB7E79jcGyaSV0PU+G1PpmesSJ QYw2yf+QqIzyTT7d16zXoQDp1X7b3aQsk5gsuhPYgVNLOsc0m2y8Bp17IrPvs67RN5zV yaRwxSLutsLk+bcWVWRuqEmrnbTRFY8935YhmTy6fpyXqEEoUR0VFFzGwAnTsAxVM3Ze 3tVqac4Wd27EGjRMcmbsy0y1k86bRJ/KzxoxDZztSRSOeRJXXBTKGCURC61w3+l14LSr qXJQ== 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:subject:cc:to:from:date :dkim-signature; bh=/UlahxoRUnlPsOzUhuWShbIPDfP8i+uXWMnYtLzNE3Y=; b=JbIG1vT0uCTGYqvXF27Wg+1J3pSKZY2rd3AISdr2P0DmSdGgEqwkTvcIb7o8bqEWc8 pXAXRvjy3mfrBb92UhubFiOMUtUfX3yazC866OwaT++Js/Rn3i8bzCvsXdUvJvXdZMPC MplWHaCkgXaVFOpfF6shNZPkwjf7iIKiwSVf6k20rLaN9MUL5nuxjMxZE9oBCUCZbor+ bHQpJDoZcxSBZ50Ng3nDWW1iXYeSxCdbVGqssTRTOyhTzHpg/22p6OkNNGRbqkXaMZnL 84j+/Kh5BlZMNmsw2YawJkc93T6WsTEV65x3QDhilHpMv84UzTyMEraBhWizouyVdSks GydA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RYwwlF3J; 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=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 v8si2105702plp.215.2019.02.02.09.14.19; Sat, 02 Feb 2019 09:14:35 -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=@kernel.org header.s=default header.b=RYwwlF3J; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726483AbfBBRMx (ORCPT + 99 others); Sat, 2 Feb 2019 12:12:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:53848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfBBRMx (ORCPT ); Sat, 2 Feb 2019 12:12:53 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98D242083B; Sat, 2 Feb 2019 17:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549127572; bh=mKkYrcDRCZK6vi4IUz1PeXhVZ5SIiQanZCGwD+JfiqA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RYwwlF3JkaJj5DDOI316E1r7zGnQA3dk8EbQIRY2tLv3xx2gfV4EJX1roHRPc96pc rK7CfJh9QI3OUNKBX2zU3pPO5F9b7HVIaANMlYWECLABl88iaUiAr3xhk+JpP8TG3z 1zAS6GII8drWC1yLjey1lJPJvcoHThdRfwFEqvjU= Date: Sat, 2 Feb 2019 17:12:47 +0000 From: Jonathan Cameron To: Tomasz Duszynski Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, pmeerw@pmeerw.net, johan@kernel.org Subject: Re: [PATCH v3 3/3] dt-bindings: iio: chemical: pms7003: add device tree support Message-ID: <20190202171247.0d0fc122@archlinux> In-Reply-To: <20190201215759.14569-4-tduszyns@gmail.com> References: <20190201215759.14569-1-tduszyns@gmail.com> <20190201215759.14569-4-tduszyns@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Feb 2019 22:57:59 +0100 Tomasz Duszynski wrote: > Add device tree support for Plantower PMS7003 particulate matter sensor. > > Signed-off-by: Tomasz Duszynski Hi Tomasz, Sorry, I clearly didn't look at this in enough detail on earlier versions. I think the set gpio is rather device specific so should have a vendor prefix. I would also like to get an opinion on the generic name from the devicetree maintainers before we start to standardise on it. Thanks, Jonathan > --- > .../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..cbad95480e04 > --- /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: > +- set-gpios: phandle to the GPIO connected to the SET line Hmm. This is a somewhat 'unusual' one so should probably have a vendor prefix. > +- reset-gpios: phandle to the GPIO connected to the RESET line reset is common and clear in meaning, so vendor prefix probably not appropriate. > + > +Refer to serial/slave-device.txt for generic serial attached device bindings. > + > +Example: > + > +&uart0 { > + air-pollution-sensor { > + vcc-supply = <®_vcc5v0>; > + compatible = "plantower,pms7003"; > + }; > +};