Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp752894ybz; Wed, 22 Apr 2020 07:24:07 -0700 (PDT) X-Google-Smtp-Source: APiQypKWG0fo6RgzSt/r9vccWBZ29HlY5S0GzD7WirRR6KG+kjwhSRvp8Xuyt3f6w3yFdIb/Pz7q X-Received: by 2002:a17:906:3502:: with SMTP id r2mr25352521eja.67.1587565446832; Wed, 22 Apr 2020 07:24:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587565446; cv=none; d=google.com; s=arc-20160816; b=ZZqpLralS4E9s8zz9Fxy06DRiwAgoYSN/bTec8B1+slyKZZyfVkR3RG//rnvGRkzCD u9ozK7mMOD+cCt1+YRcB2iYpxPenwPGH4bL4tqO8p1YqrFiywvP+n4JBKora8i2UbF6B 4ku+lUACIfGG2SygNrn5o/AVzfn+Vu7I5aFV+mhLzcLaLbZRNDz7jpwd92MMh3ymfjBD qE7rljOuj0FRKuh1d3g3xIChH/xR1EqwIOi+A24NicuiKr2UGvWZyrEfIaYHwaxC8fWd Yccmz8sLy3Xy1H3dGAo0LGGRH/W4sdRXga9E8hz6VHD/wtPBEn+EBTJ7ZiC6OhA5vKAt uajQ== 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=LLscsZjiv9VG6vBDm34SYjRV7Xo9b6C9yWPiYso9164=; b=bVDiF/aib06B/LZmYtXLVliRyZ+awxxeYbV3Lr0Nt5seIg6cs3i5FZJJgcDgED0woc +7+69LVUk2g4RZgHYAACc+IM0atMbnJ7RWcmEFpqILlUmWTVdkMSSPxsCAdC4tFX18Xk VmvJGFiSil8EA+Una4vEsJmT8qzf4k7iBqCkFo/zpqL9FCT/MDIDN280VmKv9JshW2Ii HM7Io3lH3lTFZcuAm2+ozxTGQh03SxZa0TTg1j/WPQ8vE2Kv0KGZk23qeHp9rONRBF1Z k6qzGc7CI0QgItFje7YxeXBb++5Z9VrHc6h/M3+rIhW1hhDNkRHUvftitFgthjPf5FuJ 2lpw== 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 rs7si3396609ejb.533.2020.04.22.07.23.36; Wed, 22 Apr 2020 07:24:06 -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 S1727843AbgDVOUN (ORCPT + 99 others); Wed, 22 Apr 2020 10:20:13 -0400 Received: from smtpout1.mo528.mail-out.ovh.net ([46.105.34.251]:37741 "EHLO smtpout1.mo528.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727819AbgDVOUK (ORCPT ); Wed, 22 Apr 2020 10:20:10 -0400 Received: from pro2.mail.ovh.net (unknown [10.108.1.71]) by mo528.mail-out.ovh.net (Postfix) with ESMTPS id 613665A6DE74; Wed, 22 Apr 2020 16:13:08 +0200 (CEST) Received: from arch.lan (89.70.31.203) 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; Wed, 22 Apr 2020 16:13:07 +0200 From: Tomasz Duszynski To: CC: , , , , Tomasz Duszynski Subject: [PATCH 5/6] dt-bindings: iio: scd30: add device binding file Date: Wed, 22 Apr 2020 16:11:34 +0200 Message-ID: <20200422141135.86419-6-tomasz.duszynski@octakon.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200422141135.86419-1-tomasz.duszynski@octakon.com> References: <20200422141135.86419-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.31.203] X-ClientProxiedBy: DAG3EX2.emp2.local (172.16.2.22) To DAG2EX1.emp2.local (172.16.2.11) X-Ovh-Tracer-Id: 5833287420189891607 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrgeejgdeikecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkffojghfggfgtghisehtkeertdertddtnecuhfhrohhmpefvohhmrghsiicuffhushiihihnshhkihcuoehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomheqnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucfkpheptddrtddrtddrtddpkeelrdejtddrfedurddvtdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhrohdvrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepthhomhgrshiirdguuhhsiiihnhhskhhisehotghtrghkohhnrdgtohhmpdhrtghpthhtohepjhhitgdvfeeskhgvrhhnvghlrdhorhhg 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 | 71 +++++++++++++++++++ 1 file changed, 71 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..b092b2530c76 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: GPL-2.0 +%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 + - vdd-supply + +additionalProperties: false + +examples: + - | + # include + # include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + scd30@61 { + compatible = "sensirion,scd30"; + reg = <0x61>; + vdd-supply = <&vdd>; + interrupt-parrent = <&gpio0>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + - | + # include + # include + serial { + scd30 { + compatible = "sensirion,scd30"; + vdd-supply = <&vdd>; + interrupt-parrent = <&gpio0>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + +... -- 2.26.1