Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3803273ybg; Sun, 7 Jun 2020 11:05:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkMUlWnoVfX6OvniXjCfEH0zfQzr/qWyuw/sN4IVN8oDgxW8VsOYqQlXclTnpyXO8yd0XZ X-Received: by 2002:a17:906:8488:: with SMTP id m8mr16492581ejx.236.1591553133195; Sun, 07 Jun 2020 11:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591553133; cv=none; d=google.com; s=arc-20160816; b=k3pFaJvvfgwsW6cPFNkv3u6SdtyAOmDIyHe+Mg89JlPHdoiKu29ax2TsWF6ahqlEHO 553s+bgWnwUz6dJlFPvmaqULfv6u06Y+mOrNDwyzhLrsUTFTxUR/B0m9y9IT8EatGUdf UIBDxx8P1YSiq1E8yzbZFuE2Z7uyyNYI0uku10WtH5KCkneoWcY8QdHbrnCNSLOZj9Z8 Jki0oJBaGeV2H1b2z9Ew/8rEGhCraeMC90NgfTZAIk5AV/Gmf6sWyq26RMFEF21ucdXZ mv18HL3xvBjXXqVhNt5YqPBUMG27p8Dy86FRSW+m6FMs6jlnv71sgX/hqsi1MLDZLLO0 oJgg== 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 :message-id:date:subject:cc:to:from; bh=CbJ25yAD61aGPY31LfDdWqevTMjcIXlDWQ2IadQKpBY=; b=Y0u+LC5xXvV5vNjQfAlc5Lg4SRjAJtyKTK1V8phgUUPWgrWoFhCxnQ6Hebvhj9gonG 9VvwG89wTHbmpMU9VeBceah1mpQRQvChtRObxCl6Guc80pNcttC3kq66Gw6tpzVbH9bV F4QZlqMwUf/K748I4N5devhS7YTtzIPorVkQ+iZPnlAYG96CZwLRBkk0EA6U8+OZVQwe 6+/0UvyH38bC46aI3DGLVf93XHqjxwdyz0Le7UjfzerLtMiXnhmTzvEAAy9eZ8gQD7SZ jiYqXu5YAkOoHp5+toSz26B2wusfDet95BKN+yEMovI7s6bu1WVlvq52vXR5zXYpAbf/ z+/A== 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 t13si7748075edj.100.2020.06.07.11.05.10; Sun, 07 Jun 2020 11:05:33 -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 S1727786AbgFGSBB (ORCPT + 99 others); Sun, 7 Jun 2020 14:01:01 -0400 Received: from smtpout1.mo803.mail-out.ovh.net ([79.137.123.219]:43659 "EHLO smtpout1.mo803.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726870AbgFGSAp (ORCPT ); Sun, 7 Jun 2020 14:00:45 -0400 Received: from pro2.mail.ovh.net (unknown [10.109.156.68]) by mo803.mail-out.ovh.net (Postfix) with ESMTPS id 4516A55D9B74; Sun, 7 Jun 2020 20:00:43 +0200 (CEST) Received: from arch.lan (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, 7 Jun 2020 20:00:37 +0200 From: Tomasz Duszynski To: CC: , , , , , , Tomasz Duszynski Subject: [PATCH v5 4/4] dt-bindings: iio: scd30: add device binding file Date: Sun, 7 Jun 2020 19:58:12 +0200 Message-ID: <20200607175812.95777-5-tomasz.duszynski@octakon.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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: 3119587170107218967 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudegledguddvvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkffoggfgtghisehtkeertdertddtnecuhfhrohhmpefvohhmrghsiicuffhushiihihnshhkihcuoehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomheqnecuggftrfgrthhtvghrnhepgfethfeffedtffelheevgfehkeehkeeuueetiedvheetledufffhudfhueelgefhnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucfkpheptddrtddrtddrtddpkeelrdejtddrudektddruddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehprhhovddrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomhdprhgtphhtthhopehpmhgvvghrfiesphhmvggvrhifrdhnvght Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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..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 -- 2.27.0