Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4322309imu; Sun, 25 Nov 2018 01:01:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/VeN3074+E8Ii4SvAcJwAE5ReOF55tM4khCdSzZN/B8Q1tRWkCxlJAkro6WlvqGKN64yO22 X-Received: by 2002:a17:902:2969:: with SMTP id g96mr22557039plb.295.1543136504899; Sun, 25 Nov 2018 01:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543136504; cv=none; d=google.com; s=arc-20160816; b=VNpQ9K3f2ZIx7Ll25PUe1CpSUeHjYsc3SFa8t0DXoRDkAZQFPTnoPGRlCDMGi58yEI PAkSh2I2etmSo+j90GswLQICx3pWVPjbIUr0U8MRf5SvMoj1DBiPp13E69oHc+LrhFb/ Xe1oZ2djFpAObIJnIUasLWvIuVQ8qhGfRMa2CsfuquZfn+LGXA0Y4D5q/ENheH5+Un7O gGvzW410yTljXqCb4a08ryK8MsBSf0x3/n7wOmQgdvFw10NSiTUKgWl467xLrsNk6uKL GEdAiTZH0OFasDta1ZIzlS6XSuV5YlzJ+XHyGwS0HTM7VnsDCrXSKoJiHqpfrgrTi8gz bIwg== 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; bh=XeXFekbgVxcmRo1+toiefeUP8uvi1DOBq38N6mWuI10=; b=a9Sy8Tu9bnKvIa2pKLegckGLfwbdDGeuF2Q3nHUj4h5IVyYZms/ycQQi/Af707bjNX WMg6qViqLGqv5o26uccrASMAShlHZ8zZ1FmTBHD9qFL5zSFh4PYXFnINFjk4NAjVbUHs yF5LgdrNO0mcDMVL0KqmOQLJpHzNZhV4atrC/uuto4I79X+LlfFBs+vA33y44RNI0JAw NAzW0O62Ukxa1dU7TqrrP/LGrsGp5J6PLjh+PhRNKIDzJi3G/nXtd4vq29sZ9HRLbPve 1gS9JMrzQSqEZ9CCsFOUqSUv7Bp0eyRD2o9RjMga30fsSasGXbf0nVHcVtBvInhHRfkD O7Iw== 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 cf14-v6si61563907plb.422.2018.11.25.01.01.29; Sun, 25 Nov 2018 01:01:44 -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 S1727487AbeKYTuS (ORCPT + 99 others); Sun, 25 Nov 2018 14:50:18 -0500 Received: from saturn.retrosnub.co.uk ([46.235.226.198]:34518 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727359AbeKYTuS (ORCPT ); Sun, 25 Nov 2018 14:50:18 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id C9B7B9E76F8; Sun, 25 Nov 2018 08:59:40 +0000 (GMT) Date: Sun, 25 Nov 2018 08:59:39 +0000 From: Jonathan Cameron To: Tomasz Duszynski Cc: 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: <20181125085939.421523d6@archlinux> In-Reply-To: <20181124221415.10081-4-tduszyns@gmail.com> References: <20181124221415.10081-1-tduszyns@gmail.com> <20181124221415.10081-4-tduszyns@gmail.com> X-Mailer: Claws Mail 3.17.1 (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 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? > + compatible = "sensirion,sps30"; > + reg = <0x69>; > +};