Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp316899lqb; Tue, 28 May 2024 17:15:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtGghX73n50uHO9aW1fJ2AwrxAnMe6HA0xu8Iv3Quz1WE0CUVS8HsLe4PRW2Sie0+6k7okBMB4e6hzXmEbLRZeZA+GgsxlU4KaFH8fBA== X-Google-Smtp-Source: AGHT+IHp3gkqsgdVzcypBq6u+I+GsfsrrBGhav0QcZWws3PdMJ+bzpKOG5hkHX6bBPVjDNincv/M X-Received: by 2002:a17:902:d491:b0:1f4:8a31:5a5d with SMTP id d9443c01a7336-1f48a31ba5amr94674655ad.0.1716941737538; Tue, 28 May 2024 17:15:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716941737; cv=pass; d=google.com; s=arc-20160816; b=YUGJ8AWPGYu02o6yoE2p4b8OQ4nWxlC8UXoP0HOWiOoP4IiTmVS1dlkkzqfmha+wUB 51TtF1GFNL1fLKSI/jxYYqD3zlrAlGCU85x8bnNbmws4eLjuUYItvu8WWm2+cDm0xuUY pAMgvZQjWbBNHgi2uJAkbmSaCY+8cUmUdTLUIZ+Jy8DCX+wY9eMlKPVH8ihAMYlSBTC9 lj7bdlBcekDhIO9zioJ7Lqye52l7TNQbWH1wbo36Z6P345FIREuuob4DLeX5oV/Xx7Xn K6oid0ILA0M8++eh3LT7jGkyQl5Ux3+kdiaN3RrjW4Ges6WmgHK17kE0CwRMeArTCID1 562Q== 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=EHVXxNkKLM+Rbftg2VQtQvNGsn2A2WBaaezXU5OsSwU=; fh=L5J/kjfWe+u77bAge7wStmWnYvmrJ7+hvRIPw17v2Zg=; b=xZPlU/JitSj0uaK0iOBzxUyTZMlwh384K6kLGH//aHCYDkTfr/qppj0NBbuI0dN1fc 6sX9DrC7Zidz0H5Inda0FI5em8dqULIW7beHCIdklDRjRqJemENaozZVe96bFz9aCm7y 9XOUyQrvlIwBvpjmB+sXTVi5pF/ndU5Yg4He9J1PM01Uk+NOVbnOBhi7pBcJU5LPgfEH N0ZSQ2iROQRl82AVeHcD9K+nBpBrejsheNVQe5wm9ZVfNh6tojTtEmaONl3wJIJGmYKb jBkR1DwUa2XxG1hAoOTFkA9vMhxjK3JKMNkMPHeG3clJ9vRKUtgAG0/ytIxBRxWXzt0S kgHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=G9++CxHU; 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-193258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c78923asi89550845ad.78.2024.05.28.17.15.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 17:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=G9++CxHU; 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-193258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193258-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 324CC281577 for ; Wed, 29 May 2024 00:15:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EB298F6E; Wed, 29 May 2024 00:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G9++CxHU" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 45B006AB8; Wed, 29 May 2024 00:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716941716; cv=none; b=Y7OQlv771s2D4PvlYnTzwTcjb0DGqxRUanVOdoAMsMgpT6swc79p71Kbf/IXPanCLm21lZWgfAslOYFbI2aiXsqHxi323zJgcJj0483Cerrm9etmwofc8TpeqW4IQ57/DGDAz18ZqiaEytqUAAAxA0blb7CuOZjd+6qrVEDCxf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716941716; c=relaxed/simple; bh=3ySH+jTc/L/dIVbHZ2ZTqDI9+5pLodfs8NbC1P/s2RM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ey7f7ZkLv6BCursISwde/4ipzBYKkq59hWgIU8+DSYg+r7ZNg0r7RrXy/N9RmPZwIb5JNHr4LfSP66QHuilQfXYsDEOtbDpibeMDukLXueoown+TgGvj0YGFJjIlks3sKPn9Cq1shnRM351I0K4xAm2/Y4LQloLeIwzsFlzsByE= 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=G9++CxHU; arc=none smtp.client-ip=209.85.210.172 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-f172.google.com with SMTP id d2e1a72fcca58-701ae8698d8so1170823b3a.0; Tue, 28 May 2024 17:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716941714; x=1717546514; 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=EHVXxNkKLM+Rbftg2VQtQvNGsn2A2WBaaezXU5OsSwU=; b=G9++CxHU13uL35WY+W2/16iHTn+gI2agZg/+mpowcl6P5NilBx69ibdhbWZfV9k13g 4I1n2JWj4TCJJVqfZQC4lkf8T5zZrCy5QyLPykP6yfTMpRvE643rA06qN4z+U+99JkD4 +SHtUly0bv8tYaQF1BKoARCgrW0kXcj97WlCpjaENktD2VMeHb5AWYmpkjvrGIWhotWS S3HV3zgqTT69BbwXq4momXT/fc25Q/CUQS/WGHeKCf8iV7S/qFnVwLda58VTIfmsavjS CQWyTqpYAL01m7LwOgUEaJmS0PWJSHCJUeWEnL/ni6fw02xS+jBQXei/5KMsiH0xYVkr NguQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716941714; x=1717546514; 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=EHVXxNkKLM+Rbftg2VQtQvNGsn2A2WBaaezXU5OsSwU=; b=dh3xIhty0WNED4XPhQswLmAj7e3g2xiD4J4vgV25es7tEV6V0KqoA7fId1GFqvaKyl ylhr4xdCnySJ6oRM3ZLLMoJ4Z9QlE/IkTOi5iHVRAtaUd/hm6GpPt6k8KQaRLGZMXnh6 WdheGTI9k0w3EE9phBUgWld55NFmMqTJOrgSJkraOtVsTCrIUGeiYknSRk0Vfr/H0I0R K89VphZBgeWAkCRdISjV0qH01483gDFYV51iBkuH+cmRv4w/hj5cz0DzEH/LMotvER6r FdTvEbdwVnNd6XFRUbDK8EGKzsljA6m26EI5p7b7MsDLnLFFC4+KV5uooxd9x0N91VuI MIAg== X-Forwarded-Encrypted: i=1; AJvYcCW222ywRW7krxIgMkzhwQq+cNG5phFV9AsCNvlPNQ/UZzufQ4ywXs7PgyjmG3j2vxp7uEYbY3OUdmg6DWv27XmVkvyxr7Mal71B8xnAQzmgIbKmKtQs9i5Ff9MuOnCFIJDk27Md45dHBZRzfFRs1ftDjwV1kDgViIkx++f8IozMpPOn6A== X-Gm-Message-State: AOJu0YwEzV0KKgWsUSk6v/aUVrxz+VhqkO5ms/kYYmjpbAlf/Rbe3Pb+ mB1MIehS0kqB3aApgbmBEQpQN3zlG6rEwyW7IQoFpmzElaqLRRFZ X-Received: by 2002:a05:6a20:5a89:b0:1b0:2472:da14 with SMTP id adf61e73a8af0-1b212d3905cmr13182334637.2.1716941714392; Tue, 28 May 2024 17:15:14 -0700 (PDT) Received: from localhost.localdomain ([189.101.162.253]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fbd3dea2sm6941433b3a.24.2024.05.28.17.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 17:15:13 -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 Subject: [PATCH v2 2/6] dt-bindings: iio: chemical: add ENS160 sensor Date: Tue, 28 May 2024 21:14:19 -0300 Message-ID: <20240529001504.33648-2-gustavograzs@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240529001504.33648-1-gustavograzs@gmail.com> References: <20240529001504.33648-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 Signed-off-by: Gustavo Silva --- changes in v2: - Add devicetree binding file specifically for this sensor instead of adding it to trivial-devices.yaml. This is needed in order to document that this chip supports Vdd and Vddio supplies. .../iio/chemical/sciosense,ens160.yaml | 68 +++++++++++++++++++ 1 file changed, 68 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..7dd442f94 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/sciosense,ens160.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/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 + +additionalProperties: 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