Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1166698ybz; Sat, 25 Apr 2020 12:27:36 -0700 (PDT) X-Google-Smtp-Source: APiQypL6prgGKb2HOL0MaPxXuoPpjI7krrQqa8TtS6WtYTWHErv01/JrHyeZeKdImCs5uTxt+6Ca X-Received: by 2002:aa7:dcc3:: with SMTP id w3mr12072768edu.231.1587842856190; Sat, 25 Apr 2020 12:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587842856; cv=none; d=google.com; s=arc-20160816; b=Apn/ITluFKtzjCc+U2HOcgKS4M88byc3VrdB1eLdGBhqs88uoxL2FwG7IIwzQcPOrO rpzgfLhdWPpicv7rO2xM5kLqQnhv5cRFnrmR41t7KuXNn52hjsBv6ywUcNpH1K06bq4Q 8LIkPNLt4SVSQL+Z98GjNSqyUHrzw/mF1YHGA2j4rXlSzOtqCF3g7GReZ5ntXXTk6YI9 OyzjILH6SAuf8y8nTc0TzM/7qZqYgBJcu0gk4qS7XKIA71FhqV0SBEhndCDXfHKQCThK s0mqDYMLcfEWV1EWIsZhhQNz3SxJannXKue5Srmo638VvJY9ErwWNpudQMGmbfXuCv1+ l7Bg== 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=3E1YrNTnxXqsbHafgv2KnwF7CN3fHIJRI6gaS1sUYqQ=; b=fl554UrQrsmK13MX4aHZrIUBaZI0xkIY92DfLf+qwg5fvbNRLW7aOU2fLzTFgzGRNL suUkZh8tgr0+7UGZ49IEppnPHOm+rwvfwCOzfaAEKVbkQwoObEFzeYK2KoG8iybyqCDs prTHxHleOidPlOTOfUBvWuCC7nYP9XTwgDOoTYDkAwNW/hu3Rd/m2GcoZDtTLVbVF4im 47BzcHI4N84To5uxg+4pivWZC+ozeu6iz4Ob6WMjWD+Bkf/bjzAcrYy922K7gvvZogtJ eCLE60wkj2gXmdLqfkhzVXL7Yc3X2GHOokr6a+6ADCfm21aqPdtcEHG7g6OPtTuqQxWT Pyag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HlFvJ60P; 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 k18si1484282edx.296.2020.04.25.12.27.13; Sat, 25 Apr 2020 12:27:36 -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=HlFvJ60P; 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 S1726362AbgDYTXq (ORCPT + 99 others); Sat, 25 Apr 2020 15:23:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:35588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbgDYTXq (ORCPT ); Sat, 25 Apr 2020 15:23:46 -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 7C36C20714; Sat, 25 Apr 2020 19:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587842625; bh=7xT0CJYyctX/za7aIrPT0FcmDTrVX7/KZzusycnTbGw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HlFvJ60PnH+YbWSiAq1+P2/m+MDmT6K00GWCV+Tybx27lZ+AmLnOGjBguupwtuZGA LwhXG/kM9+lK9PqhusGz3PXPLKBbCJ/TdADnsMbeyeNxVso1eRebrPJ3GtKEhmTzph phMiQdBDzDbrA2j/h9gdDZXLV6/s+ybloqg2Q6o0= Date: Sat, 25 Apr 2020 20:23:41 +0100 From: Jonathan Cameron To: Tomasz Duszynski Cc: , , , Subject: Re: [PATCH 5/6] dt-bindings: iio: scd30: add device binding file Message-ID: <20200425202341.53e614d8@archlinux> In-Reply-To: <20200422141135.86419-6-tomasz.duszynski@octakon.com> References: <20200422141135.86419-1-tomasz.duszynski@octakon.com> <20200422141135.86419-6-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, 22 Apr 2020 16:11:34 +0200 Tomasz Duszynski wrote: > Add SCD30 sensor binding file. > > Signed-off-by: Tomasz Duszynski > --- > .../iio/chemical/sensirion,scd30.yaml | 71 +++++++++++++++++++ > 1 file changed, 71 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..b092b2530c76 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license preferred with BSD for bindings. > +%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 > + - vdd-supply Only enable it I think in the driver. Should be fine with a stub regulator as provided if we don't specify one in the dt binding because it's not controllable and we are lazy. > + > +additionalProperties: false > + > +examples: > + - | > + # include > + # include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + scd30@61 { > + compatible = "sensirion,scd30"; > + reg = <0x61>; > + vdd-supply = <&vdd>; > + interrupt-parrent = <&gpio0>; > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + - | > + # include Why gpio? > + # include > + serial { > + scd30 { > + compatible = "sensirion,scd30"; > + vdd-supply = <&vdd>; > + interrupt-parrent = <&gpio0>; > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + > +...