Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3785198imu; Mon, 28 Jan 2019 10:44:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN6fQlQD5uuVgDfcphuWyfCUwrnAQptDCzYqnjMXkLCZICIa97YWeiwSQ7SgW+qkG2M/0eqV X-Received: by 2002:a63:7044:: with SMTP id a4mr20416255pgn.359.1548701083337; Mon, 28 Jan 2019 10:44:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548701083; cv=none; d=google.com; s=arc-20160816; b=KINhYHe6MiWiPTqLiJn8s5PvVFq24sdHu1nBo6r5JQmjStM2lkaD+hZrSkD0mF8fKh S/aIIjcx0CH2Oq41ICn36ItStnZkoj2R4WoMulmLlNH4bGYvr5VzzIPQImWhKcNs6zwr hqDHmfABR2wC3Wl5/1WpW64cDY8XkYnPqEWkVFEATVKP3R+ge7oiTEeEHhjtd6/azuzp pp/JpZqZGazgnC5g5kwGAUC3tohqb/wTxwNQcS63ixmUNUKTBAZ9EiKRKsUbjx75Dzcp n/d/dh4XoKabiH4DcfRnY1pURVlrRxFDHSLBb8gUPdzj+SZ+b9kta0puzbZt9D0iWXri T2+Q== 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=r4zUJqc+m8YUpL+Cj3RgPHO6l7vNeVHz7qug0AjpLNg=; b=ywpw0tDoS0+32GmIgn+T5zWMizDattjkZU2Ig+jjE89CTyduoKOaLMNCGFVrfWaakH bUMzj297pw+Br86pInzOZI4KW/U/q1GI07R3xseO6t/l56BfPkHdedR4nGbgGso4RsQz goZo6ahzn7RnWtpDzoMsF0XjmTE3USevEyPJiMQA43q8i7usq7VN3LmrWvGp9l2B41OO 38y5b3Octg2E/LVucB0UDYw37qfNZFjsRUpd3k6O8N9zyHAFhEdL0LxVwfE5Huthmrv5 /qN5Z1/GCHLBpouaZwRkamwrDwpvm0hloAO0p3tv7QYfrMaJgDCDrqwM2miUh+pr6nZJ ybdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hzW+8hMc; 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 i17si10202171pgk.233.2019.01.28.10.44.27; Mon, 28 Jan 2019 10:44:43 -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=hzW+8hMc; 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 S1728004AbfA1SoB (ORCPT + 99 others); Mon, 28 Jan 2019 13:44:01 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38220 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727052AbfA1Sn6 (ORCPT ); Mon, 28 Jan 2019 13:43:58 -0500 Received: by mail-lf1-f68.google.com with SMTP id a8so12658878lfk.5; Mon, 28 Jan 2019 10:43:56 -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=r4zUJqc+m8YUpL+Cj3RgPHO6l7vNeVHz7qug0AjpLNg=; b=hzW+8hMcGt7yih5v+ybRWRdyH/RAOBtryHacUjmSVEY+NLLg03U312TiA7Y0avdRvf RJu6hremQOcG0oZKxit32pgXu9ADBr9QS/C8MHJ8IKp7WQsYD6qBqfFAkXLvzZSWBHOv oGmkDLaDEyEEK3SVM4qZaQHRTOSzLynxJidgsNeQBmCW+p1QD0evHcI9bTPp32GJY8gS Rl2kxM/MNleLaR46mK+bK7IDFdb+hFrfJ9Ou38yfM2aGqVEqePScmHdJewegAFuENjej 8nnYJzB7nUfV/GaHuf7fni40Z5sDVRSKDif07PixNKgg5xh/bvnBSRsbK51amj7TMasI pEQQ== 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=r4zUJqc+m8YUpL+Cj3RgPHO6l7vNeVHz7qug0AjpLNg=; b=Lf2hbdVvJ1PNmXt/qaYjr430i7KzVI8XipgDcwm9SYbVD2kJ2TGg0K6+KGtvbOa4fj 8J9CL2Hdm2XAwfCMQ6KiarGR9UfuXmVR63k/M6iRO8AMT10Czpe9SKOrkcoEuYAWa70U Qj77IRLAvWLE3Lj/cnXeDB95vcCsAEFPiPgwSb4pKndquIJPlSEJ7u6uJngI8fjgJC/P hCDJ6ryjD2DHyJj936dfPRNSFqWgfTB5Lq4uPhzXpvw+eRH99mYVBzcRI6Jjr4SBvu6l ARVN9aiVnImdMvSYfUO74xK3C9R3Kt863eQ0i3FT/0IFdrx9xYBC79Cl3oFZgDAqC+Mt O0DQ== X-Gm-Message-State: AJcUukcogbvu9XdqriNwtQ3TcnSOJyL2K++0NG3oWJM09bCUfCD7X3nl C0LWNPKfWzPO714ZjzhNpCBd/ajAM1w= X-Received: by 2002:a19:9e11:: with SMTP id h17mr17219797lfe.73.1548701035998; Mon, 28 Jan 2019 10:43:55 -0800 (PST) Received: from localhost (89-70-37-207.dynamic.chello.pl. [89.70.37.207]) by smtp.gmail.com with ESMTPSA id s17sm3430994lfk.9.2019.01.28.10.43.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 10:43:55 -0800 (PST) Date: Mon, 28 Jan 2019 19:43:33 +0100 From: Tomasz Duszynski To: Johan Hovold Cc: Tomasz Duszynski , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.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: <20190128184332.GA25627@arch> References: <20190127181916.19948-1-tduszyns@gmail.com> <20190127181916.19948-4-tduszyns@gmail.com> <20190128075819.GK3691@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190128075819.GK3691@localhost> 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 Mon, Jan 28, 2019 at 08:58:19AM +0100, Johan Hovold wrote: > 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? > Driver does not use regulator framework hence to me this property fits here better. > > +- 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. > Agree, ideally we should have a generic dt name for this kind of sensors (something like air-pollution-sensor perhaps?). But unfortunately there isn't anything available now so I guess compatible part name should be okay (besides this is the type of naming commonly used in other iio bindings). > > + compatible = "plantower,pms7003"; > > + }; > > +}; > > Johan