Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp419821lqb; Tue, 4 Jun 2024 15:58:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdL+j5Km6iC8X8A3nrv2srK/pgyss+4CIPbj0rubtWSr96Yz+M+8G2r6cEP0qJGzQFtyChotUmzdA08bf35cJbMdvNLI2dSO98Ymc6sw== X-Google-Smtp-Source: AGHT+IESmijp1p1r8IoG0+2WY91LTMWxgG+QsOoNdvor0CZqNZ8cVuavvjqWNO3M8EjeMkX9crAr X-Received: by 2002:a50:d6d8:0:b0:57a:2fc0:9ee7 with SMTP id 4fb4d7f45d1cf-57a8bcba73dmr550286a12.42.1717541920991; Tue, 04 Jun 2024 15:58:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717541920; cv=pass; d=google.com; s=arc-20160816; b=LhSz65ohKD2raVxua028/kTNLzpjeO/Oq/zTVtsmlMNvzYzq5r+8YCMBB6NwYdBQ9j UUZC61V+Aa+PsK66+F5YPUKbxi1CK7rtyaOWMCffL/2yflx+ieU1QNqqc3LOW7PAUouY 07iXdloxrIy4OSZX69yQldcAnyPj7gKLiG7cCvnqV0F4QUL/Ammsby6SGAUUD3LwdV3h EDVKd7G32iqeMljprLVZjPa2OAxt6IgaLC73t2cnYzou5T2IwORx+55KTOf+vufA/KPg 0Pdi5NHTORnLq4U5+v4YK4XPLNxKc60CLUaosQ+1qcybV5to+sjYeynfAkWf/s7YMqmV NSKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9/3ZatKa4mrnJ7b8FLyAeDzEmtyVTBklWU1iYA6k6Co=; fh=WG4umbtO/bjrJUKVeDNiYyPAxJSxtTpRI4qC2GxRD40=; b=Je7TQPN8BDN57Z1eVdJup1v2tDlLbr9DK9S/ulOZWUj3oB9I587+ItieALoYbyY+KO lSf4/4qvP52JFA41BXV8XWBslfg0bAQszy63J0Yg19qIaP0dLeU3LiGD/tGCyjVZSS7P Trx2xXXNfioy4X+6xUKzFkF6yil4y5qkuj6lld5ERZdZWANuhlCkA+y2QPkvODcAwteG RRCsSHe4VGLRIjrX+OCiNpddf4D805hxUqrZu2g5FxQSLxbDRq2vN+xbgLl/MOZYKawR O7y/3sjUC12ObYIp4V2ZM3DwGE9tWNoMZhdJzRGeNX8wsOe7HkDoYlwFrWdbgiEKZ+/c 1Z+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FgH1nvRm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c62e66si5518617a12.308.2024.06.04.15.58.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 15:58:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FgH1nvRm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AFF571F23294 for ; Tue, 4 Jun 2024 22:58:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A1CF14D296; Tue, 4 Jun 2024 22:58:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FgH1nvRm" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C192D14D6F8; Tue, 4 Jun 2024 22:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717541888; cv=none; b=TngjDsDys7Hpvjqdr4bB/No0x/O8xUa1K5yVnzwLhpTtjLFYEzW3dbKSjr6NT6AXuoG5ekoRObnehQGRSb4QNNgJPOrA4J2hyvW6QIJgUW9sSkTm5Vh2gwcv9YVJdwe3k14+sr+xG0y7j/MUTeopMQd8f9UnHqSEtXjOTCc83cs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717541888; c=relaxed/simple; bh=jaccSrfWNdimxniSQ+8sK760H3HeuR0fZn2ChXZuJQA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A/bkfP0VQpm7c/J0gpFGpuFcuyotWFiHo317VUnEB/ChK1AdhpHGKDIBcmWiZlfZ+whiZf1ikHl7t2BsXZ3iuBlqacO+48gJKTnwiig1V7N6jDpFayR3x5IoLf9CklUBBEq3hEP6XcS803aO/EvL/9m2B7gjbw/12ccxgNoC1E8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FgH1nvRm; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6f6a045d476so4830570b3a.1; Tue, 04 Jun 2024 15:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717541886; x=1718146686; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9/3ZatKa4mrnJ7b8FLyAeDzEmtyVTBklWU1iYA6k6Co=; b=FgH1nvRmCQN1NdTUR631Sn/GRrv8qQrYnRa8sKO72IovghOvzSpJeUUvxQbDOye/Wv W/VYTeuLRvaeffCaKvdYvyu4oY2/AM0WQOgSZJFM4Cms91szIvIuyC6oFB4f2iiGTipe BlNEj4a5a8jWEwck/d1xsCHwttyPKw5bj2yUQ+PC3xAcYdOPPtOs1ikkcQotnN1RHwe9 HhGqQsmSZFCshfilsVQv/ts52yP8yC9lX2QqOlTdNh0JWcrQyb7u4LGdlkktG0TpVVSC r/In/LGMG7jXRY7wg6djUlNESnKwtzvvImqJJUOObxWWiT4ryvxEo5NjfXQQHzx5yhLX YsIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717541886; x=1718146686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9/3ZatKa4mrnJ7b8FLyAeDzEmtyVTBklWU1iYA6k6Co=; b=cm2yeb7GEZK0sc0ou3eZ+CQ/jMMLM16gFdevDmi2rCp9PCIm8pos2fnlZDhvhz2TCn GJxeLUn14LtBOnn6qi1D2+gYcQVefLPNrXQoSFvVwD1OuQDhXtOzGvZ03KRiWqOKLQ+2 xSOfPiUhZbF07ksiXUM+LUSBAiOFPIj0fKv10Rc5CF1+7G/Tf6dw882Hl94VOwNhRby9 33RJKIl8aRdRRy7sk3b08U8L0j8mwqZIoDjOuJBky+5HJVxIXEEE6YY1lSeDE4jonyuT qJs+RpGKFbIZz2aDHTXNFZFJKtz2JfgvKrLjBB/yUYc6blMfOwYG3S3p8NvVxYjlnFOi yfzA== X-Forwarded-Encrypted: i=1; AJvYcCUwr90qTXVYC3Q9adxwjo68Xbc9t702+2thapigPJAuZtCE/mdaL2c5J383ZW0HBSH3qez66EzXobBscRPlNqUFqOtCsRb5O9ss0zsf4TcYSjK5cVDqPVf9QoFyGDL1RImCvqBFuxGNymfLURFw9EsY7kmPlt2PLIgB09CwljrYVZO0Ig== X-Gm-Message-State: AOJu0YxPYUdsDbqV7g3TdsbtWWA8K+BVZQrcPeWTqtkCbFAs8n0l88gF gpjs4MjsQGENCFgeXsV8Fl16Gh+DFIG5eoYB7Pkx5bPLef45rZqV X-Received: by 2002:a05:6a00:2e1b:b0:6ea:bb00:dbb6 with SMTP id d2e1a72fcca58-703e594abf2mr907176b3a.8.1717541885904; Tue, 04 Jun 2024 15:58:05 -0700 (PDT) Received: from localhost.localdomain ([189.101.166.155]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7025a955dd1sm5312125b3a.64.2024.06.04.15.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 15:58:05 -0700 (PDT) From: Gustavo Silva To: jic23@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, lars@metafoo.de, christophe.jaillet@wanadoo.fr, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 2/6] dt-bindings: iio: chemical: add ENS160 sensor Date: Tue, 4 Jun 2024 19:57:26 -0300 Message-ID: <20240604225747.7212-3-gustavograzs@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604225747.7212-1-gustavograzs@gmail.com> References: <20240604225747.7212-1-gustavograzs@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add bindings for ScioSense ENS160 multi-gas sensor. Datasheet: https://www.sciosense.com/wp-content/uploads/2023/12/ENS160-Datasheet.pdf Reviewed-by: Conor Dooley Signed-off-by: Gustavo Silva --- .../iio/chemical/sciosense,ens160.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/chemical/sciosense,ens160.yaml diff --git a/Documentation/devicetree/bindings/iio/chemical/sciosense,ens160.yaml b/Documentation/devicetree/bindings/iio/chemical/sciosense,ens160.yaml new file mode 100644 index 000000000..267033a68 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/sciosense,ens160.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/chemical/sciosense,ens160.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ScioSense ENS160 multi-gas sensor + +maintainers: + - Gustavo Silva + +description: | + Digital Multi-Gas Sensor for Monitoring Indoor Air Quality. + + Datasheet: + https://www.sciosense.com/wp-content/uploads/2023/12/ENS160-Datasheet.pdf + +properties: + compatible: + enum: + - sciosense,ens160 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: true + vddio-supply: true + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + gas-sensor@52 { + compatible = "sciosense,ens160"; + reg = <0x52>; + interrupt-parent = <&gpio0>; + interrupts = <19 IRQ_TYPE_EDGE_FALLING>; + }; + }; + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + gas-sensor@0 { + compatible = "sciosense,ens160"; + reg = <0>; + spi-max-frequency = <10000000>; + interrupt-parent = <&gpio>; + interrupts = <19 IRQ_TYPE_EDGE_FALLING>; + }; + }; + +... -- 2.45.1