Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp152077rdg; Tue, 10 Oct 2023 06:51:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHq/jlqoNPzy6WFMsnGUikYaH3K164uSAYuAeuiYbwAeVMQ2y/icafOvtbVnIBH1NsaLZ9p X-Received: by 2002:a05:6808:14ce:b0:3a1:b28f:814c with SMTP id f14-20020a05680814ce00b003a1b28f814cmr25053890oiw.1.1696945901441; Tue, 10 Oct 2023 06:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945901; cv=none; d=google.com; s=arc-20160816; b=wBJeZFti3xdKYzjFXSGlDQDzPykW6NUEOO5n1gsFSJJKVJ07Zy6htwMvUZiK2LVL21 UhMa/Q0trOTienSIige+QrgnjntZNW7GXd1rs6xoPPf4mHUrLr6FsBL64Q65I4KhYOKa /quTf5x+uYhfaUygFz3uAmPX51cSoG44Q5joUfTeKPoPY6KRv26bL6YdCeqL0+tTqqQy A00k5e62+QESMPRYfo9mDmPUzQz0FGQkWh9h91pkhbHcyO2ZGVqEJ8lHCWIOhTT2sFhF TCtC/GMpbd2cIHX2e1giZ4HiUw3b2lWxIyw/g8l9rcNIopyuBnpxeXATrmdQBbgsaBRj k4yA== 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=8WbCFEbeylyqvcy9uYS+d9eJdFDOXNFwXuEMuNID1Uw=; fh=ZJTWK8XDEp+2RsTHPPqOSy49NAQF6+OHykp2f/bw858=; b=goKPb3RuESwYM62KciYiF/KPaFvL4ex+hfFIwr1FN/cV2gcKpQCgcEZr/hXjCpZ+hW AMWSOrNp6N9twB2YqrVXcf9dyyeO93oAvvcaPI1jImzNeCJR/O1z2BNUEgBaHa+2vQYa sudwP4udPHr0cI0FzioMqUACriVNn3vnS7VXTenyiIPbm1VTSiS7185/DdGhltLQe302 gGvyXU4OpM37r9+Ikj7L9jw0hY4rxZJZLvwgytGu4TKeYI/v212C9AR1Cg1KHfvVf4XO AicO2e/Un+K8qMZYcqYJG6S5VDu/oG2CmeK4OLmLgUxHzyuHLdEmncozJ4je1m4JXKz3 Oryg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ouUpsJv3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id f17-20020a631011000000b005637e28270fsi3020403pgl.243.2023.10.10.06.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ouUpsJv3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id F40638087DD3; Tue, 10 Oct 2023 06:51:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232047AbjJJNv0 (ORCPT + 99 others); Tue, 10 Oct 2023 09:51:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231984AbjJJNvY (ORCPT ); Tue, 10 Oct 2023 09:51:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CE12115; Tue, 10 Oct 2023 06:51:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B44E4C433C8; Tue, 10 Oct 2023 13:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696945881; bh=EpXqTphoLKu37K9NdPvllSGp61XV715UYGlavQy1hmM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ouUpsJv3gGrhyQ/2AcycBVMVM1BLgNdajK0z4aJoVCjvCcjfq3LXXlZ661XHX8m5Q ATnKAwdODd+KWQIHEte0mMFeqqPRA+kSwu7/1C44Ci/Kab3OOSzMV+aaG4sHjrl1E+ 6TZVM/QxDPxkhJPPydAMhoOBSCQHaDLkg16R6VS9Banse7fdooiAsgAMe5q5prVuwE FwAH1fp4WKNRtuBV2ORZlfR39F0ToQ9KJ5y5CU+OiJQ+b2A3E84DEXFouOtisEoLW4 PTpXnsysSMMJf9fOh6fF2f0ChYhr8kHl+rY4kIiHJkvBiHrboWVX8hDXHDf/RsMP/F ZcmCoYMSlvPsg== Date: Tue, 10 Oct 2023 14:51:30 +0100 From: Jonathan Cameron To: Subhajit Ghosh Cc: Lars-Peter Clausen , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Matti Vaittinen , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Gazzillo , Conor Dooley , Stefan Windfeldt-Prytz Subject: Re: [PATCH 1/2] dt-bindings: iio: light: Avago APDS9306 Message-ID: <20231010145130.3d5ff9c7@jic23-huawei> In-Reply-To: <20231008154857.24162-2-subhajit.ghosh@tweaklogic.com> References: <20231008154857.24162-1-subhajit.ghosh@tweaklogic.com> <20231008154857.24162-2-subhajit.ghosh@tweaklogic.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=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:51:39 -0700 (PDT) X-Spam-Level: ** On Mon, 9 Oct 2023 02:18:56 +1030 Subhajit Ghosh wrote: > Add devicetree bindings for Avago APDS9306 Ambient Light Sensor. > > Signed-off-by: Subhajit Ghosh > --- > .../bindings/iio/light/avago,apds9306.yaml | 49 +++++++++++++++++++ > 1 file changed, 49 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/light/avago,apds9306.yaml > > diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9306.yaml b/Documentation/devicetree/bindings/iio/light/avago,apds9306.yaml > new file mode 100644 > index 000000000000..e8bb897782fc > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9306.yaml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/light/avago,apds9306.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Avago APDS9306 Ambient Light Sensor > + > +maintainers: > + - Subhajit Ghosh > + > +description: > + Datasheet at https://docs.broadcom.com/doc/AV02-4755EN > + > +properties: > + compatible: > + const: avago,apds9306 > + > + reg: > + maxItems: 1 > + > + vin-supply: > + description: Regulator supply to the sensor Why vin? It seems to be vdd on the datasheet. We tend to match the datasheet naming for power supplies as that is normally what is seen on circuit board schematics. > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + light-sensor@52 { > + compatible = "avago,apds9306"; > + reg = <0x52>; > + interrupt-parent = <&gpiof>; > + interrupts = <6 IRQ_TYPE_LEVEL_LOW>; > + }; > + }; > +...