Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1936850ybm; Sun, 31 May 2020 03:22:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoDugPxcb4E1vORbZ7x0vvNvOOz1egmFJ02wDfPqIrVItReX4Lz380VRI42Yz3D5DOmtZL X-Received: by 2002:a17:906:33c9:: with SMTP id w9mr14563357eja.284.1590920533534; Sun, 31 May 2020 03:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590920533; cv=none; d=google.com; s=arc-20160816; b=agOXuFgeGS+Cay0iOA88fIX3Ep4C+c8t/rIV2rJMeZ4I1k5Ydcj7Ih30V17E1dYnT/ U9hM3tNUiS89D6q68DBrslosUurAmi04+WOVpbOG40emvo56uyXCMIBhpCq1/mM4fVbS JtHLdJj68gPjbDROgrjeA0ZLKgI6/C6qZrDYr9PwFR+kylLTt7d8cK0cCkLg5tyoZMdm Y+PuLgZIsbgX7QOT6MXVxok3RXwW43t4zEocjOaHIVbUgYarK4BaW6DkIrCQKfSFuGUA UKuZq0VGo6odMQV9/1rd7+pz38gdrDLw0D/4mGPbLPxXV4MAaTWpgfSRo39lgilwu8gf HsEQ== 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=I8R0ONg1ZZR61DSzYYLHVaW1r39+eHycz5RHKSJfC88=; b=MplTVzIeVgqehM/ulUj5cy4iGE6r7rKiBrmQxefTaVoefyH7lbeBcuCMsKnuaABmuB q7c0J8ANIyBkO4/IAkpClJ99/wMO8FS9+5g9KYpywt3lLTcznVkO3J/8FVsT0aSvIUTS KNmjCiXa5BoQwvNZKSpzdB8CDx4v8pE6YdbnzqaJm1D90HpAi/EcwD/qTWmLbC6xUAh8 gxT0T3RuwAr0I+5SQUvrc8cM83OqVqZFrC7bCoQWP0ep751wJN4Oy2VrfVsd70SnBGPf Cqa14nmpDAwTUh9aOTZWaVQYKQID0GcZzmMi7cE9u37DMNRS45rMVhDrSycx43PlUqmO UXvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XaQyYQwF; 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 z9si387242ejm.47.2020.05.31.03.21.50; Sun, 31 May 2020 03:22:13 -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=XaQyYQwF; 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 S1728200AbgEaKT0 (ORCPT + 99 others); Sun, 31 May 2020 06:19:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:47552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725813AbgEaKTT (ORCPT ); Sun, 31 May 2020 06:19:19 -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 8EFFA20707; Sun, 31 May 2020 10:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590920358; bh=2YCsEk60doZYjemvV6V2oezEz2eOnaYsBKkvBvxc8TA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XaQyYQwFjFwkXHgrYhw14E+183rjpqxyUctVWdF3IXB8K9tX4QHLBYXfsIBKt2/kS vF9tYKu/+q+sTk/3yD4Uv3UNbKrCAhs4u76JWIXkl4JFqiFoEeBUXrHc/uH41btMIj Tn9pwG0UEwTF+zBPZoZto379UeT0+qKnEM7UI+Us= Date: Sun, 31 May 2020 11:19:14 +0100 From: Jonathan Cameron To: Tomasz Duszynski Cc: , , , , , Subject: Re: [PATCH v2 4/4] dt-bindings: iio: scd30: add device binding file Message-ID: <20200531111914.56dbff8b@archlinux> In-Reply-To: <20200530213630.87159-5-tomasz.duszynski@octakon.com> References: <20200530213630.87159-1-tomasz.duszynski@octakon.com> <20200530213630.87159-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 Sat, 30 May 2020 23:36:30 +0200 Tomasz Duszynski wrote: > Add SCD30 sensor binding file. > > Signed-off-by: Tomasz Duszynski > --- > .../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..34cc3925d64d > --- /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>; > + > + scd30@61 { Nodes should have generic names. Not sure we have an appropriate one in the spec, but as main focus of people using this will be c02 herpas c02@61? Rob may well have a better suggestion! > + compatible = "sensirion,scd30"; > + reg = <0x61>; > + vdd-supply = <&vdd>; > + interrupt-parent = <&gpio0>; > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > + - | > + # include > + serial { > + scd30 { > + 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