Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2108453ybm; Sun, 31 May 2020 08:50:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwptw9DX9K/6e9+I7+jI3QfqS/W/4/7J85Re7XnBnTwxVMAoMLixY1IIIdgxYYy+tq0F2nP X-Received: by 2002:aa7:c492:: with SMTP id m18mr17345403edq.249.1590940241520; Sun, 31 May 2020 08:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590940241; cv=none; d=google.com; s=arc-20160816; b=fwHsC+vhs2tsEGEQOUWQhaPTJUAujUoCFUzruehJ2MpSG9e0pYjxsmQoNAo9CSt/qA uZ9dopt2UZkXbzwdTKWVwSQ/DiiMWttRV9e6uVthz3r/Nx5N7ej9XacbppJ/YGSHIN0n yT9BS8H+h4s/8wR0np6zzzwwubx3h3nMP40leBAipdFwgvwoptGfQhRYe0Of13j8CYc+ eKHUhO35YFjWDBrUqbDegosovXMLeR3W1llmfMGN7mE36FwE5wtnZ3m6n6h3c3b7vTiV /Qnn8CgqTANIL9J+6k3VV4kdxjxFim7mO6IDXLgxpw5v3JIveHpVfMJtmM6ORTa2SnWd 15xg== 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=NpRY4CkprgclPZFeQuIw+P6svtRUwdGK/DddUoWslb4=; b=bNqxTtWQghrJMMT0NU1bJlkh+BSU4YAJvy+Ype2I+0/CiHEVE5CVgooFtstDh2Md26 we+YP9vU0kLRIAUNgQHxSSkVWn9Vxr+7YpzvhkvALhWtirWydnQJEOQQeeeK3yKVw9Q5 2/g0acM9VKHfFKmzuCRZAvl8O0p/3tqX5tjSu5sokdwrR8A0/llAaXUwcLuU9NvQ9cQw 7xJzFk2yczR2hNC9WiNr92lD2KNjrTaAv/ZrrFMXsQjFfgNpsOxsB1YyNqPYwhz0EPhv urQDX+ueG43oiMWpUnqA5Tn7W9r3AiqLDFIzOoPZ8Tiv5RNS+k0XDGs6fcNFHmKXe1Qs NV6w== 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 y2si6270928edu.320.2020.05.31.08.50.17; Sun, 31 May 2020 08:50:41 -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 S1728102AbgEaPqS (ORCPT + 99 others); Sun, 31 May 2020 11:46:18 -0400 Received: from smtpout1.mo803.mail-out.ovh.net ([79.137.123.219]:51683 "EHLO smtpout1.mo803.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbgEaPqS (ORCPT ); Sun, 31 May 2020 11:46:18 -0400 Received: from pro2.mail.ovh.net (unknown [10.108.1.191]) by mo803.mail-out.ovh.net (Postfix) with ESMTPS id 7F74754B9C51; Sun, 31 May 2020 17:46:15 +0200 (CEST) Received: from localhost (89.70.180.118) 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, 31 May 2020 17:46:14 +0200 Date: Sun, 31 May 2020 17:44:06 +0200 From: Tomasz Duszynski To: Jonathan Cameron CC: Tomasz Duszynski , , , , , , Subject: Re: [PATCH v2 4/4] dt-bindings: iio: scd30: add device binding file Message-ID: <20200531154406.GA27246@arch> References: <20200530213630.87159-1-tomasz.duszynski@octakon.com> <20200530213630.87159-5-tomasz.duszynski@octakon.com> <20200531111914.56dbff8b@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20200531111914.56dbff8b@archlinux> X-Originating-IP: [89.70.180.118] X-ClientProxiedBy: DAG2EX2.emp2.local (172.16.2.12) To DAG2EX1.emp2.local (172.16.2.11) X-Ovh-Tracer-Id: 15080021879647853650 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudeffedgledtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpeffhffvuffkfhggtggujghisehttdertddttdejnecuhfhrohhmpefvohhmrghsiicuffhushiihihnshhkihcuoehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomheqnecuggftrfgrthhtvghrnhepleekkeeuhfdtleehlefgffeltedthfekveefueevteeuvdejgeejtdetueffgeefnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucfkpheptddrtddrtddrtddpkeelrdejtddrudektddruddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehprhhovddrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomhdprhgtphhtthhopehpmhgvvghrfiesphhmvggvrhifrdhnvght Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 31, 2020 at 11:19:14AM +0100, Jonathan Cameron wrote: > 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? > There are already a few recommended node names ending with '-sensor' on the list like air-pollution-sensor or temperature-sensor. I'd say co2-sensor would work here. > 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 >