Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3014412ybg; Sat, 6 Jun 2020 08:11:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMIQ1FRdLtVtOxIdmq92Sp4U6HnwgsulTzpwpUOf+8PSDzxK53Vdjm9eYkTGS2HfqIAlWu X-Received: by 2002:a17:906:481b:: with SMTP id w27mr13225287ejq.27.1591456264046; Sat, 06 Jun 2020 08:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591456264; cv=none; d=google.com; s=arc-20160816; b=gNJ0Ls/dd7AlwF8hWRpQqY3irPxRZwIYZk2V1bx8I7Pbqj2xLb5yAraamPpQcUGZel JIfqb71hZqHQt40oD1Jkz18ZKKU3BIT60gZsDibrvrXqbW6ss7OCFWWhAGZoZmeDTi8G 03cWCBRcM4Ha/zvmfehHV99sHHtBongVdIJurfL2v2tM2woTYzK1iqO/9jVw89cYWBek K6gjpk6su2FHdwUPt5lJb/leqqwruZragRuTomXjT/l+zpapqouBlCPG4svevXoUmT3p lKrhwPCT5nysEv4Lc38+rIqiHWJnVPYTDa50FgOGvQ0R0MVkz5/dBbfPJpv7qZGGKRD1 oEYg== 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 :dkim-signature; bh=FPB6pBuR5ebwmUtum7T2ayG4s7XyNJZRrcb9B9+36c8=; b=UoqASUYloaTUz+ux2CbN17D/WI31Ns9gUr2Udg8lJiuuqF1jhR6YF7xZj55HbvRD0A JKivheYzAZ8zvTlbMc0a8Jrv7XSeZtdPGq+p8lsQNFBx9LZ8EvyxeRMjDtyH3iUpSnCV xAd7J5o+qxDhVA2ZOrZ7QRBCEMn+r08dM8taTVzE0+bvkU0tixFxiZvGdQz7av4ZQ/RO t6vgqkC+Ywe8LdWxXzDwDBwBFoI4iLy4EziqeQDFFZRGYgBP6bR9CEuO6izCoZxsUzTo lemHMYajkpAcxgwB4XP2zgnDN6L0e3dcEx95JekgsSaom24y7zrUONBObgxBB2Umacdd 5Cgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PlUACo8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si6635146ejo.179.2020.06.06.08.10.41; Sat, 06 Jun 2020 08:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PlUACo8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728785AbgFFPI4 (ORCPT + 99 others); Sat, 6 Jun 2020 11:08:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:37368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgFFPI4 (ORCPT ); Sat, 6 Jun 2020 11:08:56 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 867482067B; Sat, 6 Jun 2020 15:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591456135; bh=Den8Wsncp0pVwO031pIyBfHrfFxB7H6+G53zJ8VfhoA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PlUACo8AoILX9GGQOL8MYcHk8OAP77lR/pDv0d0YjogMbGUT9PsTnVH9jkLP3O1xj ttldBkZzuvcQYoHCIhtO5IY6kcZE7PpHTN2D3j1XGmBmUauw8/crs4T4WYMTNldtfE anSW6trgup0VmAxpjURHnpy44DzvkV0QTVYmo1Oc= Date: Sat, 6 Jun 2020 16:08:51 +0100 From: Jonathan Cameron To: Tomasz Duszynski Cc: , , , , , Subject: Re: [PATCH v4 4/4] dt-bindings: iio: scd30: add device binding file Message-ID: <20200606160851.6433843e@archlinux> In-Reply-To: <20200603084441.33952-5-tomasz.duszynski@octakon.com> References: <20200603084441.33952-1-tomasz.duszynski@octakon.com> <20200603084441.33952-5-tomasz.duszynski@octakon.com> X-Mailer: Claws Mail 3.17.5 (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 Wed, 3 Jun 2020 10:44:41 +0200 Tomasz Duszynski wrote: > Add SCD30 sensor binding file. > > Signed-off-by: Tomasz Duszynski Looks fine to me (as do the previous 2 patches), however I'd ideally like to leave time for a DT review from Rob. Thanks, Jonathan > --- > .../iio/chemical/sensirion,scd30.yaml | 68 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 69 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml > > diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml b/Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml > new file mode 100644 > index 000000000000..40d87346ff4c > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml > @@ -0,0 +1,68 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/chemical/sensirion,scd30.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sensirion SCD30 carbon dioxide sensor > + > +maintainers: > + - Tomasz Duszynski > + > +description: | > + Air quality sensor capable of measuring co2 concentration, temperature > + and relative humidity. > + > +properties: > + compatible: > + enum: > + - sensirion,scd30 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + vdd-supply: true > + > + sensirion,sel-gpios: > + description: GPIO connected to the SEL line > + maxItems: 1 > + > + sensirion,pwm-gpios: > + description: GPIO connected to the PWM line > + maxItems: 1 > + > +required: > + - compatible > + > +additionalProperties: false > + > +examples: > + - | > + # include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + co2-sensor@61 { > + compatible = "sensirion,scd30"; > + reg = <0x61>; > + vdd-supply = <&vdd>; > + interrupt-parent = <&gpio0>; > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + - | > + # include > + serial { > + co2-sensor { > + compatible = "sensirion,scd30"; > + vdd-supply = <&vdd>; > + interrupt-parent = <&gpio0>; > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index 5db4b446c8ba..0ab9cf39e051 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -15140,6 +15140,7 @@ F: include/uapi/linux/phantom.h > SENSIRION SCD30 CARBON DIOXIDE SENSOR DRIVER > M: Tomasz Duszynski > S: Maintained > +F: Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml > F: drivers/iio/chemical/scd30.h > F: drivers/iio/chemical/scd30_core.c > F: drivers/iio/chemical/scd30_i2c.c