Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1666817ybz; Sun, 26 Apr 2020 01:34:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLkX1f2J9ULsMDissIqfE18gL5NCnLlgXtEK2AncpXrdyAgANZFyKKPBwjoxSLhVaZomwWo X-Received: by 2002:a17:906:1490:: with SMTP id x16mr13673266ejc.323.1587890044967; Sun, 26 Apr 2020 01:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587890044; cv=none; d=google.com; s=arc-20160816; b=xhIuTsl4ZOm0rSUsNZGVCOkD7i2vDkBNAt6oTAcLy9/vd/KjpYyxReoTzJLxdxtK0R 25w/zt5wboaudEuzf5IxnbmdSoAESKDKsig5HYIuG7ucfUJFlkcCxvAB3rj43qMGL9/m 2aAvVcIXEIXNKcK0Z+YUdTvjHb4DOeh+GL1DeagiTi7eZUxmLste8ikyYFt340A+xU7d VPv0DDZzLal+9Kb2aRgxeix1YhSJy6YL301/p4CZMhFaYogPh5vvW1Wo5wH9d8uIat5X zOGiaMouBQp/gIfXw+58AW/r3HFxrFp+R0PE05m+k+p6XtRSnbOGVtL57kfChcLnn/l/ fIgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jMcnQ/ZCCnzl7jGLwQcoA/efhl57lHt7ahvzuKgSgFk=; b=FtvphpvExcbY21OT092A0/9t0uvJlbirTtJDd7piXpnyFLwlA4uJn4hBsIGgSfc927 dSsIm8b+j5jh7wEhE5ib4XLsEGaEaJ+YhjkRL9/3vzMj37y++WCt3MdiH5xonkt4yxGl s3LvgmsBo02M7Q9AjpgAdwjp7v2cZ4Q7GhI/8bv9lfrTIHcNj+rnR6wyJDZqtFohtcox bC6Y1ELGqLaCbwdTboY1IUqMQwDwQpHpG1DlVNxl7yPZdG7Tytfk4N2Qx2Przp0ZuZFY c0XxrfbZRVhZ5wBAnqmkJ4CvThka7a4nJPa9oRD+IzvWU6jxMHVDiZ25jK6M0tbfay/k uxIw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a41si6104234edf.489.2020.04.26.01.33.41; Sun, 26 Apr 2020 01:34: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726135AbgDZI3y (ORCPT + 99 others); Sun, 26 Apr 2020 04:29:54 -0400 Received: from smtpout1.mo528.mail-out.ovh.net ([46.105.34.251]:43733 "EHLO smtpout1.mo528.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbgDZI3y (ORCPT ); Sun, 26 Apr 2020 04:29:54 -0400 Received: from pro2.mail.ovh.net (unknown [10.108.1.157]) by mo528.mail-out.ovh.net (Postfix) with ESMTPS id C5AB15AE098D; Sun, 26 Apr 2020 10:29:50 +0200 (CEST) Received: from localhost (89.70.31.203) by DAG2EX1.emp2.local (172.16.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Sun, 26 Apr 2020 10:29:50 +0200 Date: Sun, 26 Apr 2020 10:28:25 +0200 From: Tomasz Duszynski To: Jonathan Cameron CC: Tomasz Duszynski , , , , Subject: Re: [PATCH 5/6] dt-bindings: iio: scd30: add device binding file Message-ID: <20200426082825.GA3282@arch> References: <20200422141135.86419-1-tomasz.duszynski@octakon.com> <20200422141135.86419-6-tomasz.duszynski@octakon.com> <20200425202341.53e614d8@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20200425202341.53e614d8@archlinux> X-Originating-IP: [89.70.31.203] X-ClientProxiedBy: DAG2EX2.emp2.local (172.16.2.12) To DAG2EX1.emp2.local (172.16.2.11) X-Ovh-Tracer-Id: 5079497430882606162 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrheejgddtiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepfffhvffukfhfgggtuggjihesthdtredttddtjeenucfhrhhomhepvfhomhgrshiiucffuhhsiiihnhhskhhiuceothhomhgrshiirdguuhhsiiihnhhskhhisehotghtrghkohhnrdgtohhmqeenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecukfhppedtrddtrddtrddtpdekledrjedtrdefuddrvddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehprhhovddrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomhdprhgtphhtthhopehrohgshhdoughtsehkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 25, 2020 at 08:23:41PM +0100, Jonathan Cameron wrote: > 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. > Okay. > > +%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? > That shouldn't be here. I have some local changes where I use sel-gpios hence this include. > > + # include > > + serial { > > + scd30 { > > + compatible = "sensirion,scd30"; > > + vdd-supply = <&vdd>; > > + interrupt-parrent = <&gpio0>; > > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > > + }; > > + }; > > + > > +... >