Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp255596rdg; Tue, 10 Oct 2023 09:19:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEU3IEexBjp0T5aclGHlmFI4nZdue5qVTFxUy4Psf2QjLvvBYl4Fu3LGQJkEbWHRBiPeQ/v X-Received: by 2002:a05:6808:19a9:b0:3a7:37ae:4a47 with SMTP id bj41-20020a05680819a900b003a737ae4a47mr25284615oib.12.1696954752421; Tue, 10 Oct 2023 09:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696954752; cv=none; d=google.com; s=arc-20160816; b=ck0IrRDzAdJTC83b/M64ovCju9C/ucB+j6fOPpnH/i7ToSYY42X350wXtG6gT1N9jF g2hz+ZKK7Ty2CVLEIHfCj8ykJWHbspYEAKKTT1UHEpKDGx62agqzdo+tTpFTohbKTp0T Qpgs05H4ELPGfIV6zUPDUEaxpovZKYE+vRoMBIPs8foB37Ko4n3WP+mZBSrbaRcHiHRR quk0oQned82sBwA702xiZEGxk4/j2YL/k266073BJD0ox22TxANEAEc32AlHDLWeZpNA bNyIvs+DDtLjlR/cRUlRYA/n7vU2Jz/2q6NOJ3McpK4+N6sx42LgTHHV4kh6bVhJw4Rj tXsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1wMVQx3ogtElnrSYSQ1j7Wkv32M4rB9AHm4bRlghyvo=; fh=a5PyQN9jv6hARVZEUA8UXZXmkzaMPTK08rmJnFKxLnw=; b=IlKEq6oTteUwrsp4w1x6d3xvS25cvlb+hfdEICc71L3fDLh+twRt/Oev778Jx6vYrv qtn26PumYv80ZS7+DbyPB9qC0n2UpFqXhZpLHX33a2/JaHCHqlXz2v8nDTSSFROqv9Mr KquAKYZj0Xw0PMqRlmwwHgPpjZgiy91GHGcJcV2tltZ+AjBNNh4aWP27yUaKOjRrajM4 AbktKh26oBhjUCzmwMGDE+EKYRDK+yUQARS3H46i+4wEXzPjJdu+8ZV1dKTMRYID8pZs NWiOcmJAZjcpKO/24Vr23Bdup1oYll2uDTyVibozqR/UNklqUOkr5UI6zCQt2dPdxk0a K1TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dx7YaSUc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id b75-20020a63344e000000b005859aec9406si1915291pga.16.2023.10.10.09.19.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 09:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dx7YaSUc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 3C7EC826E32D; Tue, 10 Oct 2023 09:19:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233679AbjJJQTE (ORCPT + 99 others); Tue, 10 Oct 2023 12:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233961AbjJJQTD (ORCPT ); Tue, 10 Oct 2023 12:19:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FDDE93; Tue, 10 Oct 2023 09:19:02 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FDF5C433C8; Tue, 10 Oct 2023 16:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696954742; bh=ag41vErJLcdKpWvik5kJhsbnkB03toTtYunAk74GnXI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dx7YaSUcnpJ6i31sJjGmTurhcph5FdWf+D6PUKBdn7Kpq4plRrckNxcBAOeYqXbPf MiQKYc0310YaucJacgIq6+fgIQArdHKfLY7kpbGRk864Cakn8zYBRC/5YY14vfJGEj K5CHmkZKhkPOxzHHtEOdZRJORREJKlMOGYMr+sYIqxlhouiZzxu33loyGXcRu8C45d h0CQRL+GQuon+oqhK5MCfkIVyaanl7ni3gAdJ1QvqQTPXM0BOJ4wYCBBS/8ZGWlIyD pVib/siMUCWjRsQaW/eJXLbD9fDeXoLhGN2BCpKp85b+6PtaVW0Gdh/TRxkoObx5N8 VCVOy5R8KsKEw== Received: (nullmailer pid 1003012 invoked by uid 1000); Tue, 10 Oct 2023 16:19:00 -0000 Date: Tue, 10 Oct 2023 11:19:00 -0500 From: Rob Herring To: Matti Vaittinen Cc: Subhajit Ghosh , Jonathan Cameron , Lars-Peter Clausen , Andy Shevchenko , Krzysztof Kozlowski , 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: <20231010161900.GA999361-robh@kernel.org> References: <20231008154857.24162-1-subhajit.ghosh@tweaklogic.com> <20231008154857.24162-2-subhajit.ghosh@tweaklogic.com> <2c6ff28f-9031-beb2-f8d0-e7f12b0a07b4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c6ff28f-9031-beb2-f8d0-e7f12b0a07b4@gmail.com> 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 autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 09:19:10 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 11:52:28AM +0300, Matti Vaittinen wrote: > On 10/8/23 18:48, 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 > > I see the driver supports two different variants of this IC, differentiated > by the part-ID register. Variants are named as apds9306 and apds9306-065. I > wonder if we could/should have different compatibles for them? If 1 compatible is sufficient to know how to power on both devices and read the part-ID register, then no need for different compatibles. Rob