Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp266281rdf; Tue, 21 Nov 2023 02:00:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEi1kh12sbue1PfUiB/AYV/QQWUqFmt3s5NnP+SoCzBfHifpv4q+jyp6Q8buFwu3o2xsdjp X-Received: by 2002:a05:6a20:918e:b0:174:210c:34b0 with SMTP id v14-20020a056a20918e00b00174210c34b0mr9187166pzd.0.1700560813752; Tue, 21 Nov 2023 02:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700560813; cv=none; d=google.com; s=arc-20160816; b=d2kdWhf4ciu9tXT7GjJkwrcQW7+mn1VOoF8O5EN+EPJq70yJFLbgwwEl4pnqhdalNA XXHkkH76ZyA4vavGYmUlmgs5Z3aQkbRclawmFVcDYe17pM/G/tSlwpFR7u0gTDFneK08 NpSHue27ijoRGf2gg1AMAKo8wnKofFpk9HEamDGu/NmveqU64/py6ffk2F5XxMVqliP/ qilWSh7dme6/RogT9h02vD3edra/vuc9tSCx29knq/9fJ4Zt1s3DUedb6K54+gAXRTf6 1LogBDi9u4mHxetfEzHDG4uUMqXraoeHm1iSedIzsZrjr9VFL1gyxDEstMQyaAwZ5Z+q kqEQ== 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=nrfj6UPeZoHczBeA8a/k7Z115LACW+cZYO5wipNfSf8=; fh=XV2ix0xwAZajLmJy3dAD+wF23zd84xtzqa34uVw6QBY=; b=VZljYBNJlr8MTUbg2gsQcAgyXaGsRFazFj+VmuBRgV8lvlehbRxDEaKKCoN3rfUPmZ JBY7lcacyn1Nn/P+i+urMgh+2StTnSuKKzZt95khVG38IUYB5h8zddhhX63VZV/slDsy Zld5vmpBohp3gK+NG+VrHgZqJ5nlqCCLYi61wa8xdnFXEwhFNqManGAI6rVnJYT6kBS1 VAqouf7sIQLA9eSmzg0cKcHTg/o87bTiPbCuSW5kA2z9MBVdHZB/P37DLnj4wh6d3D4N tzBg96P45t3DRtDV36mVj7fnYcqnV6cRPYpjmFqb107RASqq91CXgi50dKwcX6Ecc52M qqiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="e6439B/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z3-20020a1709028f8300b001cf5cf1ca6asi4262954plo.511.2023.11.21.02.00.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:00:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="e6439B/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 9017980FA855; Tue, 21 Nov 2023 02:00:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234128AbjKUJ77 (ORCPT + 99 others); Tue, 21 Nov 2023 04:59:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234176AbjKUJ74 (ORCPT ); Tue, 21 Nov 2023 04:59:56 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB64F116; Tue, 21 Nov 2023 01:59:52 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1ce675e45f9so19058825ad.3; Tue, 21 Nov 2023 01:59:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700560792; x=1701165592; 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=nrfj6UPeZoHczBeA8a/k7Z115LACW+cZYO5wipNfSf8=; b=e6439B/Cm/ZRuoIod0aNOseLBwpZ6+eQx4lfcq1+QgQJHdhFIrw1ycVzMuzR0xWMfe 9Yq8+jjGC0uKj+yjy/3m6YR6icEGzCrfUMe3Dy2UwtwO1eSsyVsSAYshsHJU0+twjMZN yQT5cG5IboOdh9LsbKQ1JLrPrtlJLdc9x+NvrVq9DbZWDd/3qGDAoEnZQyRBXd5jB2Nk tH5qfe0bAqN2K7HrdyNMMh27jtKymVnNo6h0L6VcGTxOwm8FzKU0mxteNfXF4e3ENK5w l1NJnxpS3lRiFHW4uOejOZ3Z3hAK+EWUIf7fzcXtvN4e8iJ5hmYlLmKUBtcObGKraaJj Te/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700560792; x=1701165592; 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=nrfj6UPeZoHczBeA8a/k7Z115LACW+cZYO5wipNfSf8=; b=Kkkp7fdpjlTMrp/jAKF0pe1LZs2ztPcXwcgy29IKOVCpSWNOBj5SACnTIngYusdMVp AJBlejHWuqimmlbnom8jaGkPlahp/oKKj3tb7uZiejknSKyqju9uvH3n/SjozcuNWDHb vnTYtosrjMLVtUVYZV5xl0a4PTHeyK6xz0C5cuUadXlyv1XxVcInkUuiFeRteaU3rs2p N11zT/xOrrvGXwZ/T8OJHVz4BJSFMoNM6wotO3oL3vsSY73/BnUIdoZHsX2zdXJ/bGWA XJ08T5ph/bC2BwQ6xP751dyEPKPBEy+ETzW06/g3VtzmNjN346UajJK4MQ8mmAUEaIaZ Ujug== X-Gm-Message-State: AOJu0YzIOwrkaxGuFfviH19xoEjJRLP9HD0pe5WZvGdbU+I9AT+HPU3u oinYC2/KlhC9sfM8D7PyEfALr/IhTYsN9g== X-Received: by 2002:a17:902:ce81:b0:1cc:6d2c:fb59 with SMTP id f1-20020a170902ce8100b001cc6d2cfb59mr9790531plg.28.1700560791815; Tue, 21 Nov 2023 01:59:51 -0800 (PST) Received: from localhost.localdomain ([2401:4900:2353:8963:b940:1ac0:2fbc:6b6]) by smtp.gmail.com with ESMTPSA id c14-20020a170903234e00b001cf68e1c5a1sm2047415plh.4.2023.11.21.01.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 01:59:51 -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 v3 2/3] dt-bindings: iio: chemical: add aosong,ags02ma Date: Tue, 21 Nov 2023 15:27:58 +0530 Message-ID: <20231121095800.2180870-2-anshulusr@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231121095800.2180870-1-anshulusr@gmail.com> References: <20231121095800.2180870-1-anshulusr@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:00:11 -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 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 | 47 +++++++++++++++++++ 1 file changed, 47 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..38ba3614ae8a --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml @@ -0,0 +1,47 @@ +# 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: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@1a { + compatible = "aosong,ags02ma"; + reg = <0x1a>; + vdd-supply = <&vdd_regulator>; + }; + }; -- 2.42.1