Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp831465imj; Sat, 9 Feb 2019 08:50:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IbF7MTVM28f9XQbl8/tPI96wKRS2OfIWKt4q75uYPalUu4tMtOdIUuqwoDlGJbntfNCvJh3 X-Received: by 2002:a63:db04:: with SMTP id e4mr11757326pgg.40.1549731016479; Sat, 09 Feb 2019 08:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549731016; cv=none; d=google.com; s=arc-20160816; b=soTJV4gI2yOpfNwmF9BHdSvKEblIiqKIGU8nywCpo+dfj7plpQkWym8P6DXJranQqA pgyzO0aIptO/Nx7RmogM/uS/sI8U6RNY4aW2qsQo8ITpVb+4TGDM+HmEnWIFqRJsrTBu LrxQO9w2Wk7WgBG7KpDfpoOo1Nw70I7U/rmrQKS6g9IvUv5+AqyyZ6Ny2feWIQgZx95H r9x3Ej6wBwKfg+jZT2BjaDl/5woTQbKQHmJ1z7RY2AuKkD9iTITaKnDBIIo7DYMrF8SV 68HUEOdCr0YXnXu8Xe5v9kz3jQapbg5pmc56gPKSnuSqJ6nJTF8+q+YkYppavF4Ze4hl 7YFw== 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:dkim-signature; bh=i1gI8Zrbgf67gTz6FH6HJeQDuuHQ1TpXgfCnjb7wzNo=; b=OrfthlGOnAXTurKWBwOleQUeQ8rj24W8Re3fEhquesqVY9SisE5q/exCs2gP0dgP1L qzSJliGtwedQXne8tM9ZgpbXsHl/gUbQQvY3Fn31uky2LJc/awjGCJROGbLRC70fc5GW 3JRMWv/3kT9P8kT7nksOYdItSmCJvdk38mV9VFy2rotQH+4yOv/WHY1REIx+CSzML9ty C4k/f+85RBxsS+hV2AObFL+/sNLFPIoIacD4mT7qfK6H4HLJ03MbaROZcaGfeVHxNcrp yf9f6SZroOJxBE+gM68jhw5ACEvlu6SHmA1qlFA5ngaLRRO6bK6SVo+rHhQPCgAb6QM5 Hydw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JWP8UNN7; 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 e129si5160850pgc.333.2019.02.09.08.49.58; Sat, 09 Feb 2019 08:50:16 -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=JWP8UNN7; 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 S1727121AbfBIQth (ORCPT + 99 others); Sat, 9 Feb 2019 11:49:37 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38119 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727078AbfBIQth (ORCPT ); Sat, 9 Feb 2019 11:49:37 -0500 Received: by mail-lj1-f196.google.com with SMTP id c19-v6so5530403lja.5; Sat, 09 Feb 2019 08:49:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=i1gI8Zrbgf67gTz6FH6HJeQDuuHQ1TpXgfCnjb7wzNo=; b=JWP8UNN7Dnk9k46Hyia7Eb30yeuDaZO8ho467Jo1HYkbM6L2C96VT9+FLPAjPYni7g K90yv/VwprRe4A5+Zp0+xr06/g5A7mz+OGGxnmEuQu5H6pxLyCUV4fcCDpK4dNr7VAwM ncjGqUI3K4lkmOxv1TFinyEPg0HTalRAe0LMsZzQzfgVGqJ70E23kBCXlPrupKhjdpys T6hTglwKZcVAFAtm9ZpVUFr4wIrraw5hRzAuk/AwZH9NyeEuN5R4ckfu9mPYEzOiDJ05 qVr56KTHljRRmfi5XiqYjO7RmPUCLItTuhOOeOgxaE0R4ru+NTsWnNBjQ2MxQd02AorU fNvg== 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=i1gI8Zrbgf67gTz6FH6HJeQDuuHQ1TpXgfCnjb7wzNo=; b=d8uCIUKU9aJEVhFit57jnIYk63rcM16kCmO1vVhm6vhLai2nFNVI9Eaqaool+cCbJL 0uxC0to8m2wQkGpWdHdgSnfCvtW67IpvDjnh2cFPTEyp+qqw5r80vqzzlGD4JdVbCjTy gg6L8egC2+W4sI/5d122khbh+2siJxt03E0LH/7oahQr+4FT4f5D3l3lhwqgCA51vuAc 055OxsqKgli59fd4aSo6Ed1+TJXJB2H3rEvEU8WbSGZE3llQgPXjVs1Fshn+YkKHnNqO 6ASJCktD3Q8jg5WLyqiXHtf1/vnBapVRlDqJnNKHdcJwS+hlNAI+R0owVRbKeuxlXp4x Fc3Q== X-Gm-Message-State: AHQUAuZKs3NLvMDHGo8cn+g8BA1CYboER2UKrAjOZSqeuT5ph7ZyDbOp fXctoXLaD3RjqRhLRX7O2rc= X-Received: by 2002:a2e:9249:: with SMTP id v9-v6mr36050ljg.164.1549730975144; Sat, 09 Feb 2019 08:49:35 -0800 (PST) Received: from localhost (89-70-37-207.dynamic.chello.pl. [89.70.37.207]) by smtp.gmail.com with ESMTPSA id a9-v6sm623591ljf.52.2019.02.09.08.49.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Feb 2019 08:49:34 -0800 (PST) Date: Sat, 9 Feb 2019 17:49:12 +0100 From: Tomasz Duszynski To: Jonathan Cameron Cc: Tomasz Duszynski , 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: <20190209164908.GA2888@arch> References: <20190201215759.14569-1-tduszyns@gmail.com> <20190201215759.14569-4-tduszyns@gmail.com> <20190202171247.0d0fc122@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190202171247.0d0fc122@archlinux> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 02, 2019 at 05:12:47PM +0000, Jonathan Cameron wrote: > 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. > Makes sense. I'll respin the series with this extra change you're suggesting. > > +- 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"; > > + }; > > +}; >