Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6929023imu; Mon, 3 Dec 2018 05:13:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/VEFJgyAUEcyLbKK/9Ko1bbc7SRmI8OAZ/N598Z+3M1FjLhCv8eAI58pYusommhHoL/pHxe X-Received: by 2002:a17:902:5066:: with SMTP id f35mr16044652plh.78.1543842799787; Mon, 03 Dec 2018 05:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543842799; cv=none; d=google.com; s=arc-20160816; b=BppSxaoHe7c02ZMrQo3dnwOHUEHIq8l1tdgD/6KWZ5s7OqwoooUPGHaC6d52353m6u 55SyXo1fSvBhJD23/VDcoLWUIOIxut6rn34dpTD8vi2KW+nhhpBeLlYAOdPd0lLBqWm+ iNAZWsPRIC6x6KQolxGKalvQHoIf8Ycts9hTdze042hSl/IunjK6aTpHE5UpbUx2MZ4O FRcOM7kXrRvfeHoPP6/+ohOggfUE/RIqEaSDy378/mSo66v2p13EMMItSXLFcXLpWZiU 1PMuQRoPizeb7d3jI3U+wjIYRE1Dnf8awF9FNO+43MH+KGVSZ1MAGK54YcIC3HP/50XL hlWw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ag2nqpsb+uxS84UXmu2Z26WuCfaWg70xMB3A00lB5dg=; b=bSNUnAtskvf8BX0nLQ8d4sf2QnXYbF9e8RgwrR92rd6JDv8xjZNECm4kXqqDrT+CAp GR/RxMmSlDhulFx+2rlZZUDKx1KGACWOrFOJ90bGiSYjxFNaGxDXPlCxDLg6npa9eRje 4axuHbxPgYC06ZlcfiKvP5wBYDhLRmbwT++c42iWXZOdLp07ynZm0e3hCBL439ceOCN+ UTfRkE7OA93dEeJD2hGU8aFT4p0gabKdpxBZfEiJtKc654TvbP8gUNH32zsKX2eUl1Fk 4WY1QCgldZWnE4pxUlh69AxWda5jqOuSpmVXpQww+zIIWSw9k6gQ1Hwzfz8pAfr4b8xr zFsA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y40si6278415pla.251.2018.12.03.05.13.04; Mon, 03 Dec 2018 05:13:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726052AbeLCNLp (ORCPT + 99 others); Mon, 3 Dec 2018 08:11:45 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:41654 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725830AbeLCNLo (ORCPT ); Mon, 3 Dec 2018 08:11:44 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5603D6EBFD4FA; Mon, 3 Dec 2018 21:10:42 +0800 (CST) Received: from localhost (10.202.226.46) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.408.0; Mon, 3 Dec 2018 21:10:41 +0800 Date: Mon, 3 Dec 2018 13:10:31 +0000 From: Jonathan Cameron To: Tomasz Duszynski CC: Jonathan Cameron , , , , Rob Herring Subject: Re: [PATCH 3/3] iio: chemical: sps30: add device tree support Message-ID: <20181203131031.00006b26@huawei.com> In-Reply-To: <20181202182943.GA8286@arch> References: <20181124221415.10081-1-tduszyns@gmail.com> <20181124221415.10081-4-tduszyns@gmail.com> <20181125085939.421523d6@archlinux> <20181202182943.GA8286@arch> Organization: Huawei X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.46] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2 Dec 2018 19:29:44 +0100 Tomasz Duszynski wrote: > 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. I have not strong feeling in favor of a particular choice. Happy with wherever the discussion converges. Jonathan > > > > + compatible = "sensirion,sps30"; > > > + reg = <0x69>; > > > +}; > >