Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6122897imu; Sun, 2 Dec 2018 10:31:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/XK0WSGEew/bgo1PEJyDmjM/S/R5DnlHZwwnX+v4mYxCv79JV/S981jcS5u1cbZRkwvOllY X-Received: by 2002:a63:a002:: with SMTP id r2mr10751203pge.212.1543775492875; Sun, 02 Dec 2018 10:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543775492; cv=none; d=google.com; s=arc-20160816; b=z6GB+JqJ6ZCG5gCSRVeY5TiRwmUrjJpcmok43Vjb5aBPZfiJgEFbHd6Q0Z9dFRiMLR CdSskwgZjwuLjwS7DvpV4HVe+Lm24yc6lRJZLDblRhsq+d/lC4eZeHP+Or5cmPqOqnqq Tgpv6vQosEEYKuuI6LwLZQp7BFGOHe6OBB3HTTJXX/EL/Yt7zMdzpZm69B/mPJIs1nk/ 7mFr0VVgt9mP19fg8MifbLSuBWTV7OKgwQv6knkFf+vTepHBbbmW7J5MJodfZgFDW5uF j4bNHTtAUkNJ0Lw9FMESgymNQCMHrDCIUFdYbBS3nhsUkwJO8IuXAnX0gDxVGG4rz+ES UMaw== 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=ZXursNr3Y7FGpdsuTl0nEcaVlPiTtalREFY2a4vvFVI=; b=xTIDghpQPmg9f4EWJKN7dmUZcI1tt8je4FuT3sAmMlmLHwJ9bNDiApWfpZGIWUF5Nq 7w8wiEmuzqjGgNkSkSLsy56p+nhdp5tWrjs9+K5y4sWpaRKOqkflsP24oJcNv7s33oqn ZXr4U5n0cKfcJFx9qathZ2uagYgsTOyQxFIOY07IyJyRUd3qfVQPvfDdSVua/DcNBm6s h3/BixI2bEq/9wwe1Em+vsohrQReS1Wg6srfFwhDkS16jBW7uQ4g1SZib8lo3kDWEGU/ 8sO+vnLi2GrXOlFW7TN8JNvj/NiyNqqxPmk+SDEa4G2nWQurzxVYzlP0XIq+SBdmIWYG t7Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LsnS0myD; 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 p14si11685530pfi.12.2018.12.02.10.31.05; Sun, 02 Dec 2018 10:31:32 -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=LsnS0myD; 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 S1725769AbeLBSaI (ORCPT + 99 others); Sun, 2 Dec 2018 13:30:08 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:45410 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbeLBSaI (ORCPT ); Sun, 2 Dec 2018 13:30:08 -0500 Received: by mail-lf1-f66.google.com with SMTP id b20so7459717lfa.12; Sun, 02 Dec 2018 10:30:04 -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=ZXursNr3Y7FGpdsuTl0nEcaVlPiTtalREFY2a4vvFVI=; b=LsnS0myDN+lLp1IoO7QFkSz8NHVSshWC+poHHnNR64sucBEce7heBM3Ewpeb2Gqgo8 YNSG3kx1uKf585sSvnAQ8Ei7aVL+yVVCC16NZ/xmqm4cybFEeWBTCkH/xwT59/ZasWEI wYgnuh8HqGvtXVpyoPny5p86A+PkjZDa9olSKecIrTD9jQvZ7ojJwhRSBpP+o6ha63Mw fC4jkgQ4aMcfiqDhZaqZMxOXBnvwAjBp19Akq258Hm2eWXnn5lZxSrxHljtavCmIrUi2 dGK1NZbG8DayWwxyGQsX/+ZE46RoMJ07ojsK0x+YFWE8ZzigMAxJ3jIP0GUzR9pL00j3 j57g== 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=ZXursNr3Y7FGpdsuTl0nEcaVlPiTtalREFY2a4vvFVI=; b=Swtw90Mw6NRd+ln2mRnh1B2sOYyl+KV91gaTxW7fd7q/hf1cIiMj5SspqIN+H1b3v3 GPt2HnF683W8iMNgwaujFrPTNWUA1X++xZJ0fM3AmA1zuuQePLTJUE253cFxrKFXMdyF v8bB5iDxnts8aaq4g2rkUB2xtjqsdKak8odnezl0aOXAscncK5C2uBoahsm+N1awGEZ7 oLv7PEjaU0RwiJjpcQatI6Sf/LcPo1TWANchJXWsIOberfb+Grmz3+Kfho8YzM9EPCH7 F2NwAgawyTo5ywZQ0zjib5Sl6bJoL8fv8pJnMj1q0RbVHHvMcCUlW2zqZFbo5+3lgxc1 6S8w== X-Gm-Message-State: AA+aEWaxQOsUvleQ9czltpm1mLxia2NQQUMDiEpznxBPpC8TBgYfM75K VPAIt/Y3WYj4MCX/JoX6H9g= X-Received: by 2002:a19:5e5d:: with SMTP id z29mr7281933lfi.105.1543775403282; Sun, 02 Dec 2018 10:30:03 -0800 (PST) Received: from localhost (89-70-226-70.dynamic.chello.pl. [89.70.226.70]) by smtp.gmail.com with ESMTPSA id a18-v6sm2042659ljk.86.2018.12.02.10.30.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Dec 2018 10:30:02 -0800 (PST) Date: Sun, 2 Dec 2018 19:29:44 +0100 From: Tomasz Duszynski To: Jonathan Cameron Cc: Tomasz Duszynski , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring Subject: Re: [PATCH 3/3] iio: chemical: sps30: add device tree support Message-ID: <20181202182943.GA8286@arch> References: <20181124221415.10081-1-tduszyns@gmail.com> <20181124221415.10081-4-tduszyns@gmail.com> <20181125085939.421523d6@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181125085939.421523d6@archlinux> User-Agent: Mutt/1.11.0 (2018-11-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 25, 2018 at 08:59:39AM +0000, Jonathan Cameron wrote: > On Sat, 24 Nov 2018 23:14:15 +0100 > Tomasz Duszynski wrote: > > > Add device tree support for Sensirion SPS30 particulate > > matter sensor. > > > > Signed-off-by: Tomasz Duszynski > one comment inine, around the fact we are trying to move > to generic names in DT where ever possible. Now we don't > have a suitable one (IIRC) yet so time to make one up ;) > > +CC Rob for his input on that. > > --- > > .../bindings/iio/chemical/sensirion,sps30.txt | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt > > > > diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt b/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt > > new file mode 100644 > > index 000000000000..6eee2709b5b6 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt > > @@ -0,0 +1,12 @@ > > +* Sensirion SPS30 particulate matter sensor > > + > > +Required properties: > > +- compatible: must be "sensirion,sps30" > > +- reg: the I2C address of the sensor > > + > > +Example: > > + > > +sps30@69 { > We should define a generic type. Rob, what would work for this > one? > > particlesensor@69? > Wouldn't air-pollution-sensor be somewhat more generic? At least wikipedia has some article about that. Various other names like particle-sensor, pm-sensor, particulate-matter-sensor, air-quality-sensor, tend to return more or less similar number of search hits. Which means there's no universal naming convention. > > + compatible = "sensirion,sps30"; > > + reg = <0x69>; > > +}; >