Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1610447ybm; Sat, 30 May 2020 14:42:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzS65CD+3yu8xBfZh/CWMSGqQdhlBO0M7QvSSYYvSfOhIpIR8wtWUhLstb6mtYJtuf5vA6 X-Received: by 2002:a05:6402:b70:: with SMTP id cb16mr15207707edb.234.1590874943691; Sat, 30 May 2020 14:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590874943; cv=none; d=google.com; s=arc-20160816; b=naEsy4KHLkUUshwqUeTZjbpygPXsebi3iLZo4K6Gczu21ShWQzcMkiv4XxYrTmvkhy fsbtuz2SEjjC18X5ALbLHXFWcDm2b0YehJELhCliC8WZwWSe0nPnz2lj6E/RIJ1vK2IP UR29Oop2Uf0Q3suxvinoW+5E0NC4fgHXTEOfPTuS71V6btHEcnYqart5IuAr7xQndSzT wQXiasF8cvhi8i4gDpUXglrm3LwcMu+Qe2qnpfijRNRUM8ccrqNPZvFSUU3Rdifi56yu mGC+RUHBWPkGnJXGpZa5HGrccmLxESFWZXWWyyX1B/8Z95XyrvoXYcV/JQ5elSQLpClf JP6g== 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:date:subject:cc:to:from; bh=hJ++Rc/NtsxMsYcK/F8hSIRdawSEA3ZOU9OYGtIjCq8=; b=uU/FQNX5QHQ+/MAYj8fw2T9B6kodo+54OB94hblyv+kPswE54sk27TvOItmYrdc8y7 gfOuL+1t6iJsvb7QQ4VUYIbzM+QYPoahMv0sc3Zsb8TosiHNyKWdx27VkSiKt+o7w1UE 6nUjD3+2N1ROI2xvynx4B4pWfxTznnaejoeSqHhIAzM7EEoev+KeOZMpJyClH0ZeOCfv 0ftzGVFTFOoFL6+VDemCVbtiqzUbSggTFYsuSB6PbzKmFZ+Vv7zmk6wh23SMc7xdych7 AG+y/uF0ABGq7qemBVsJgpEvaeEb25jAHYSMjioB1WSf+aabiEKbG0bNBFy3lvicj9uN x2jQ== 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 g10si2636053ejk.392.2020.05.30.14.41.43; Sat, 30 May 2020 14:42:23 -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 S1729329AbgE3Viw (ORCPT + 99 others); Sat, 30 May 2020 17:38:52 -0400 Received: from smtpout1.mo803.mail-out.ovh.net ([79.137.123.219]:45909 "EHLO smtpout1.mo803.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729340AbgE3Viu (ORCPT ); Sat, 30 May 2020 17:38:50 -0400 Received: from pro2.mail.ovh.net (unknown [10.109.143.168]) by mo803.mail-out.ovh.net (Postfix) with ESMTPS id F325F54AA49B; Sat, 30 May 2020 23:38:47 +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; Sat, 30 May 2020 23:38:42 +0200 From: Tomasz Duszynski To: CC: , , , , , , Tomasz Duszynski Subject: [PATCH v2 4/4] dt-bindings: iio: scd30: add device binding file Date: Sat, 30 May 2020 23:36:30 +0200 Message-ID: <20200530213630.87159-5-tomasz.duszynski@octakon.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200530213630.87159-1-tomasz.duszynski@octakon.com> References: <20200530213630.87159-1-tomasz.duszynski@octakon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [89.70.180.118] X-ClientProxiedBy: DAG2EX1.emp2.local (172.16.2.11) To DAG2EX1.emp2.local (172.16.2.11) X-Ovh-Tracer-Id: 15161368149047467031 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudeftddgudeiudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkffojghfggfgtghisehtkeertdertddtnecuhfhrohhmpefvohhmrghsiicuffhushiihihnshhkihcuoehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomheqnecuggftrfgrthhtvghrnhepvdffkeeuteekhfetudffffdtudethedvvdevhefhkeffgeeufeevteejiedttdelnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucfkpheptddrtddrtddrtddpkeelrdejtddrudektddruddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehprhhovddrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomhdprhgtphhtthhopehpmhgvvghrfiesphhmvggvrhifrdhnvght 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..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 { + 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 -- 2.26.2