Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1814128rdh; Sat, 25 Nov 2023 04:13:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGV+f6LySmAlK5BLGzMpg5CFEIMp7XSAm+EVH2s0WWXPzlZFxhZ54FJqcU5N+sPbFPZUGqI X-Received: by 2002:a17:902:e84a:b0:1cf:68a3:d8ea with SMTP id t10-20020a170902e84a00b001cf68a3d8eamr6137444plg.13.1700914389665; Sat, 25 Nov 2023 04:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700914389; cv=none; d=google.com; s=arc-20160816; b=oHjrSUnhfBhWXxVfliQiiEPPOZLobY2cvQGKlPN/yJwgdHg4Za8yE1RL2nvlZTDQ+H DQcdO5LVeLyF/TITNP/CIb3q9ZwUGOdlQzDr6851HkAm71P8scEDo/hdCeWPpULfGxp/ +akZdrPqJHFWnzVQr7egLUO2GWyWLOpWdTTsnV3n18OGIeQ/7RM/Zz0jfF6NrouhUniW tOijR5AkVHGuVipFYOOiZhKkvJtsL+77iZXFDUPXZeitEiaI1o4pG7Yw963woSSenZ0B naCAcBlu3rTU3uhL38SBqktl4ezgU863aGR6xM4NlE4b5byUw3EqrEq8XlpygAgSnR5Z kGaQ== 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:subject:cc:to:from:date :dkim-signature; bh=8FAckLzVlhgmfEI3T+E8qqlDHtq4VZhJx5B30o5EDvY=; fh=JP59zb28mRBFAoOP53jkh1BQcrTUxlt2+xTFXHNLV0Y=; b=B7yapC+hG9FGJkoxFchuZtIU4eGXiKyMAQ/l8KuydCSFmBHkMozQwRxxFt81j8uO+s x8kLOtfkBk8e6HbfkOqkjM1b281Bh33oXA7o/hBBeW9JE6txMBsg2TJoV/f2Fd0qwCoS F2vs4Pfysjhz2f8pFurMGsQBhHZWnaK80RWKZAT1f1yL7yvFgq6EHAmX4AfQiX72zEeF yu4V0dQsy2j/tYs9Ap4raj6zR4G+c7HBZGNS7Z+UlhFLvPKIuxAH784HdSN2ozZTduMG abEyVZ2NjAd5xzpKrEYQGN7kC2VaG1b/ygc7Qg28Vul61H4uBsDba5fYSx0lQ/Hn3NMy w48Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tjJVHMw5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t10-20020a1709028c8a00b001cfa70f3a2asi2911090plo.245.2023.11.25.04.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 04:13:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tjJVHMw5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9DAAE8051A2F; Sat, 25 Nov 2023 04:13:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231960AbjKYMMu (ORCPT + 99 others); Sat, 25 Nov 2023 07:12:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKYMMt (ORCPT ); Sat, 25 Nov 2023 07:12:49 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E4810C1 for ; Sat, 25 Nov 2023 04:12:54 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0756C433C7; Sat, 25 Nov 2023 12:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700914374; bh=HaPs6rO9d02viq7dWMbdaoM03RBF1QX65JlhKX2KKcQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tjJVHMw53dN8MvofGbFCvqRLyBp8d4KD3v9p3MR2ir5f2sqPK/Yi2pCsrlUXUqEU1 PZsoI54sw3oatvY01aMh71m2kgvNQ/tSD64kB3wt2ShKlQIaIrMzY3bFNnShrs5M1A br965+pL9uE44PkwUOr1gFvNbrHDJXR7lXdKAgK4+sZxZGZ4vBl48tPHGkL/JMzgmP rtom8SJ1Af1Cs9BedYeDJubTAB6jQFpp+HkKpEM479SNzc8JsMH2gr/dDCeAfECyMI ZyhsXzMePWmUzIipB7kJ23N5gbryxnE6h2VagHBIa0Ox5bNdowsWeUl1bMwmIoY51E JNf5JYCYE8N0w== Date: Sat, 25 Nov 2023 12:12:45 +0000 From: Jonathan Cameron To: Anshul Dalal Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Conor Dooley , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH v4 2/3] dt-bindings: iio: chemical: add aosong,ags02ma Message-ID: <20231125121245.6664470d@jic23-huawei> In-Reply-To: <20231125100139.193584-2-anshulusr@gmail.com> References: <20231125100139.193584-1-anshulusr@gmail.com> <20231125100139.193584-2-anshulusr@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 25 Nov 2023 04:13:06 -0800 (PST) On Sat, 25 Nov 2023 15:31:37 +0530 Anshul Dalal wrote: > 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 Similar to other review (I put more background there) Convention these days at least is to always require powersupplies that the device cannot work with out (even if you can use a fixed supply and rely on the regulator framework papering over that). We want to distinguish generally optional supplies from ones we might not specify in a given DT. Jonathan > + > +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>; > + }; > + };