Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2224661ybt; Sun, 21 Jun 2020 13:02:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBLCMMAuKNo8DiypHQCHQH9ro+185h5q42pxrNwQZl3+IfbTwyul1j85Nk1Som/vdX2x/b X-Received: by 2002:a50:a1e7:: with SMTP id 94mr13447578edk.165.1592769777321; Sun, 21 Jun 2020 13:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592769777; cv=none; d=google.com; s=arc-20160816; b=NI+SxAuTyN+AdMzCrIbP8Egwc09pHhFEDkzzV3DAqBR3PCu8ePmT5eYh/6NSd/De36 fJBDjgA6jAXf0WIhEO5Q0iuk9edQAqOsAuDqAM6UYLEAfVKbzjVvwMT3fyRHgfL/mh9y YK+rzuIXpZefNgNQfeT/C9HwSXZJHspKnvEOU27Dss2g2Bduzk+N1Yt6g+goxVYuwRBf bem+k4hfJtiFgctHCbaY7hhB8T6w+iqMKG0ArXzFHsyCK7uvfQR18zs08d6TH9u/eUtp WqrI3R059EWwZ+zGsReEZB6BrGG+Bup+viSLfKrVcWAE5Gp+YzF/YOtnOLnkINMIxcYN abfw== 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=/N4Y6JSAhxXNAAHrkujQgp0MRtT0J2PiwOqkjG8NBHI=; b=F0ikrgi0tq55L1bvSP7HQXtR4VEghKJgouTSV8tddzXepAoZOlzgqauZ/bWEUQ2SL0 nc7cXlwEGDgGvCPfk7QP1rIkb/W/yPWbZBAZu1TioozgVcDpStvhvFjz3oEI+ZAZJS91 O6HNie/IeLonAIyJVQjg8iwg/F2XmtrPlYUyhCbAxe6jsu2RBvmhiPRwgiy/bWB70uZE Jgkqb7fteBd/ZH+8BOlJU0V4eGbKtrT1hJB7hTIdSWc45Ke2RwMvGlCGrHyclXVTwi6I cy22vb1oJYrZEpAkenut03wmtVdEJZXsb3Uh5OPdmXtXl0mVZWUy98l3tvkaNDahoguN z/Cg== 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 dm7si2760549edb.43.2020.06.21.13.02.33; Sun, 21 Jun 2020 13:02:57 -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 S1730653AbgFUUAe (ORCPT + 99 others); Sun, 21 Jun 2020 16:00:34 -0400 Received: from smtpout1.mo528.mail-out.ovh.net ([46.105.34.251]:47421 "EHLO smtpout1.mo528.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730583AbgFUUA0 (ORCPT ); Sun, 21 Jun 2020 16:00:26 -0400 Received: from pro2.mail.ovh.net (unknown [10.108.16.245]) by mo528.mail-out.ovh.net (Postfix) with ESMTPS id A5A8D63E9775; Sun, 21 Jun 2020 22:00:23 +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.1979.3; Sun, 21 Jun 2020 22:00:22 +0200 From: Tomasz Duszynski To: CC: , , , , Tomasz Duszynski , Rob Herring Subject: [PATCH v6 4/4] dt-bindings: iio: scd30: add device binding file Date: Sun, 21 Jun 2020 21:57:01 +0200 Message-ID: <20200621195701.97227-5-tomasz.duszynski@octakon.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200621195701.97227-1-tomasz.duszynski@octakon.com> References: <20200621195701.97227-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: CAS1.emp2.local (172.16.1.1) To DAG2EX1.emp2.local (172.16.2.11) X-Ovh-Tracer-Id: 13571316005272050711 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudektddgudegiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfgtihesthekredtredttdenucfhrhhomhepvfhomhgrshiiucffuhhsiiihnhhskhhiuceothhomhgrshiirdguuhhsiiihnhhskhhisehotghtrghkohhnrdgtohhmqeenucggtffrrghtthgvrhhnpedvffekueetkefhtedufffftdduteehvddvveehhfekffegueefveetjeeitddtleenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecukfhppedtrddtrddtrddtpdekledrjedtrddukedtrdduudeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhrohdvrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepthhomhgrshiirdguuhhsiiihnhhskhhisehotghtrghkohhnrdgtohhmpdhrtghpthhtoheprhhosghhsehkvghrnhgvlhdrohhrgh 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 Reviewed-by: Rob Herring --- .../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