Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1762916rdh; Sat, 25 Nov 2023 02:05:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfu2QWW7uDDxUhvkTW4fc5ODGdzk6W0AYdnGYKRK4cZ5Vb76nYJuACrlhOKnlAy7XTXGcC X-Received: by 2002:a17:902:7483:b0:1cc:6ec2:d24e with SMTP id h3-20020a170902748300b001cc6ec2d24emr6286776pll.53.1700906705590; Sat, 25 Nov 2023 02:05:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700906705; cv=none; d=google.com; s=arc-20160816; b=OzUlQ378fcqkVE9VImdxzTtzldQAX01PBMG2Tt9iCH0RkZcPx4V7tyEEF65Jnb3tOg yhCsx+vmT53DDMMSCMg56UOVnLk8M4yN831zXFUIWgDRuMS/3uoYAs8IlvOP/iUOxJCI 37cgHwsjk5yaWafAbt501gvZGJ6fJ6H4iC4fELA2lmFyuNDtJN15CRvmuG96IG00KT3X 6Zo0soJFyCy5aIkjUDJ+S3zH44s5ZZkIFydoHycoAUPXul/3mgQANcCQEcCEQezccnDv kYqyD2pF0FfqXrUs1MNMl5FA/Ro7+J1qWcdtMigWzFxHPVHeAcY9POGGq8HxBs+cpEM8 eDpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Iz62r/C3lhJIiAyG0rSIQht5mTyspTFd+aVvpYLeNXc=; fh=XV2ix0xwAZajLmJy3dAD+wF23zd84xtzqa34uVw6QBY=; b=n9/YsiASY1pirl+BlQ1Rf8UGOlzDG7+JP3DIvBeSMBoOjLoA5dRW8sLZPFLGJHp1Gt 1/M/UCQEYhnOcyhxqMAjBwNNuFT4BOs4jvMyyLg++A2ZcM6NnbK8RnoPIjmA5HbQQTwz Z+m5F/RIjQBiySPgk1RfGKS1XIOE2fezPg1B3N9qlSM3FS2OOIqSzPCIBslzGjGEO5wQ n7L5A4PtNUCttpit9jR8tjxFFus4B/Rt35kjgkP8bf99OvgX368K2Fwvza5SaDGNc08m vTK1FrOg6d15ziEzr+5Zeas6B5u2vOCXLqoHh/KU28N09Q7Q7VVf9mXuvdppqFnvfMEB MgTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y66qCK8T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y6-20020a170902ed4600b001cfa0b7c6a0si3732897plb.432.2023.11.25.02.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 02:05:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y66qCK8T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F117880A18E4; Sat, 25 Nov 2023 02:05:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231917AbjKYKDh (ORCPT + 99 others); Sat, 25 Nov 2023 05:03:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKYKDf (ORCPT ); Sat, 25 Nov 2023 05:03:35 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34B4410D8; Sat, 25 Nov 2023 02:03:40 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso2004342a12.3; Sat, 25 Nov 2023 02:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700906619; x=1701511419; 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=Iz62r/C3lhJIiAyG0rSIQht5mTyspTFd+aVvpYLeNXc=; b=Y66qCK8TAmiyN+eGq09qIqwlXaUuZnJv6cadlwK+VfIbTyKJtX2hQBkFuB3ATKGo34 xKV81TMOY+Pw1RCHY1S6jg0JvPO+Ef9eDiaG8POC290tuctDQQOjP4cWnCy9K5Vqi/u1 eFqMG+OS3s9jk0Q9bwXdJYNLsHlGCcT0g+oTEir5tDRHe3IgPtjMDtgxuowjU6Lmvqsp E2Bq9TFw0IrXVf8APr0vs+6yZqpIqtb2z1n8eehsrO3VVhoTMx9J72byVrMwgyYzbQdW VitYV5j8L1iq5qg3mmcrPLTo8Iiur02toLwUpzgQPXrkMzF3jBCNYaLyZ2z4kXm2Fwpm dssQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700906619; x=1701511419; 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=Iz62r/C3lhJIiAyG0rSIQht5mTyspTFd+aVvpYLeNXc=; b=L6e8W49USYhi2fUmXwyjDGpdCNcCCgywAKNFkazJTUHuhjLttgg//81DiGBZh0QzYD MibWmbTL4JHP7RoLf5XNQ0GVlde+wfD5EHHf7Ae1VdAeGujxDvL+q+dqbdxXKuiMAHFR 67Q/TjMxSfyCYjrRj9/YvU8IJzcFZW9sHxfRj5q9ff0+AznMDeI+oWIPVkeyELOv/lsl HUFTFWAbD+yukqKaAg4IyAsITx+5xXUXiMLXAw6WdEMF0vhjJYQV6oZt3rdgIC8LurpR O+7wQ/+fjmJA0UXaFox5ofz+e/j3XYUJBPVz8eIetRusA/o+wqKXE676b6zX0I9Jq8Ev 3C1w== X-Gm-Message-State: AOJu0Yzg84lJGvwJnxdX/wB8LzqdtTLgIYfSwi2SAHypW+ZEWGjVOwQq 0XsmVFJTcMKxyrA+8tWghIXQYexz7QvBcsBO X-Received: by 2002:a17:90b:1c8b:b0:27c:f309:f381 with SMTP id oo11-20020a17090b1c8b00b0027cf309f381mr5819834pjb.6.1700906618700; Sat, 25 Nov 2023 02:03:38 -0800 (PST) Received: from archlinux.srmist.edu.in ([103.4.222.252]) by smtp.gmail.com with ESMTPSA id h24-20020a17090adb9800b0028593e9eaadsm2049035pjv.31.2023.11.25.02.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 02:03:38 -0800 (PST) From: Anshul Dalal To: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Anshul Dalal , Conor Dooley , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-kernel-mentees@lists.linuxfoundation.org, Jonathan Cameron Subject: [PATCH v4 2/3] dt-bindings: iio: chemical: add aosong,ags02ma Date: Sat, 25 Nov 2023 15:31:37 +0530 Message-ID: <20231125100139.193584-2-anshulusr@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231125100139.193584-1-anshulusr@gmail.com> References: <20231125100139.193584-1-anshulusr@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 25 Nov 2023 02:05:03 -0800 (PST) Add bindings for Aosong AGS02MA TVOC sensor. The sensor communicates over i2c with the default address 0x1a. TVOC values can be read in the units of ppb and ug/m^3 at register 0x00. Datasheet: https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf Product-Page: http://www.aosong.com/m/en/products-33.html Signed-off-by: Anshul Dalal --- Changes for v4: - Changed node name from 'light-sensor' to 'voc-sensor' v3: https://lore.kernel.org/lkml/20231121095800.2180870-2-anshulusr@gmail.com/ Changes for v3: - Fixed commit message - Removed "asair,ags02ma" compatible v2: https://lore.kernel.org/lkml/20231115125810.1394854-2-anshulusr@gmail.com/ Changes for v2: - Removed device from trivial-devices - Added standalone binding with vdd-supply property v1: https://lore.kernel.org/lkml/20231107173100.62715-2-anshulusr@gmail.com/ --- .../bindings/iio/chemical/aosong,ags02ma.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml diff --git a/Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml b/Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml new file mode 100644 index 000000000000..c176a6e102ac --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/chemical/aosong,ags02ma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aosong AGS02MA VOC Sensor + +description: | + AGS02MA is an TVOC (Total Volatile Organic Compounds) i2c sensor with default + address of 0x1a. + + Datasheet: + https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf + +maintainers: + - Anshul Dalal + +properties: + compatible: + enum: + - aosong,ags02ma + + reg: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + voc-sensor@1a { + compatible = "aosong,ags02ma"; + reg = <0x1a>; + vdd-supply = <&vdd_regulator>; + }; + }; -- 2.42.1