Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp207372rdb; Thu, 19 Oct 2023 01:52:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8qZ0DKpwCeS+Hd46p/94S5e5KBbnZUQaxQD/+Qjv65Zz0wn79XUl1E4DoXJCFuWdZ3C6I X-Received: by 2002:a17:90a:cc15:b0:274:755b:63b8 with SMTP id b21-20020a17090acc1500b00274755b63b8mr1431350pju.43.1697705520560; Thu, 19 Oct 2023 01:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697705520; cv=none; d=google.com; s=arc-20160816; b=bvQTMF5PiLc2RA3AAJ9CoXbL6YSrgZBU8d2t3lVjBxquzPXU2XyWo5eAktaFOOLBM/ rKS8jZy+TD6zkificBBqDYlMNXBz8nIFDVi8Vfm6ZcjuV7Fhendw57bs7Mod05BU8ijA HgSEj3dLn9yuIHq1vL7iooy1tHZfIeOh1Ctj+BYOx7AH7jvXGjqrjxTYwe4R2BxHwb6e /Cq/wJQdX2rJKYwAF/IkWmyp7bLiJFx91XfRY0kZKTFYIwLAZJFcAf3FrRFEtjjFLxM+ CxRlLIkSLUNeh606dxi1lRHUGM4ftK0OLQI1cZM9+4w9IH4ud9z1+ulwHnjQl8m5CaJc VnTg== 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=mP4ijV37ZLHcVEuIBAdQ8s7YbF+g5tNLOOA5C+9W3BU=; fh=YmHJ2+4tMj2GklT5NEA+e5fL3xiKY0wVyvwy969fwJc=; b=nwNY5j5CHYr96fhN5HQVG/7Rg8N9iRv7mbDiDERcsJ1xxcwQc/CGIxC6wRs8daq9eZ SEEFCU47y7V1na4fHDMIaP2iyJ+IsqkjnyWb6lX8KxaOxioCMfX8pAw9O0RpKQ09y49L 3pNWZQOcFlDKn/wM9FZmyCaTjoRfP3JlalAFiIqdeKBlKL77eHl2UlSfU6BjjsO6p28k HhqscNkneYHdn6DkIYCCtNfSquatpwVYnfJzg+iDAa0vQC32F3PiWmgd3RGD9VSpFBQV Teq7EmzGEDVsHyyUd24aVHI8X6ZqgnUL8Rrj0VAFcnA9NtnU6lsNreeb5qp29/cddvhG 5BPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uNTjurAs; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l1-20020a656801000000b00573f786103dsi4015077pgt.754.2023.10.19.01.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 01:52:00 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=uNTjurAs; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 351DD82DDAF9; Thu, 19 Oct 2023 01:51:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232876AbjJSIvr (ORCPT + 99 others); Thu, 19 Oct 2023 04:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjJSIvq (ORCPT ); Thu, 19 Oct 2023 04:51:46 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671019F; Thu, 19 Oct 2023 01:51:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1437C433C8; Thu, 19 Oct 2023 08:51:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697705504; bh=u+m3NN1Guv7J5JwAM18DK03sPbj3O3Xgocab5WPj9c8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uNTjurAsrIcUqdKGKKf2Z6YGJEyDj0xxj47pE8S+DaQ3InYjXUb4B8LeuxgJ4L1z5 WpyTfSm8NGLAa5fWPB9SS/NhLygYCORPaz8p0s5CoIl1Y9JCIC1TdZbYG7jULIUIBn AhmG9cZXDtsj8WHFvL+aunGHXA+2eJDeX/dfQ7ZIHhsUdfKeqkLT5I7OMUjt4yv/cS Tf6zPESWns+V5lFGWu9EAjlXzbmemUCYOix51ufNji1ZxmKJMfy4jKYMYU+mjDufr5 zqealchXVKCNiH8fxrbZEIsAbPDQdC6BvZjhnAuIx2je/nu2tY89UYWX8avKs+opKU Itr7t8xC+Vu7Q== Date: Thu, 19 Oct 2023 09:51:39 +0100 From: Conor Dooley To: Subhajit Ghosh Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matt Ranostay , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: iio: light: Squash APDS9300 and APDS9960 schemas Message-ID: <20231019-rematch-ethically-9d482ca4607e@spud> References: <20231019080437.94849-1-subhajit.ghosh@tweaklogic.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="l/TF/AHtsvcqOc97" Content-Disposition: inline In-Reply-To: <20231019080437.94849-1-subhajit.ghosh@tweaklogic.com> 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 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]); Thu, 19 Oct 2023 01:51:57 -0700 (PDT) --l/TF/AHtsvcqOc97 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 19, 2023 at 06:34:37PM +1030, Subhajit Ghosh wrote: > Squashing Avago (Broadcom) APDS9300 and APDS9960 schemas into one > file and removing the other. > Link: https://lore.kernel.org/all/4e785d2e-d310-4592-a75a-13549938dcef@li= naro.org/ "Yes, they look similar. I will combine them all in a single yaml file in the next revision. Thank you Krzysztof." Yet this is a follow-up patch, not a version 2. The original patches seem to not have been applied, so I am not sure why you didn't send a v2? Cheers, Conor. > --- > .../bindings/iio/light/avago,apds9300.yaml | 35 ++++++++++++--- > .../bindings/iio/light/avago,apds9960.yaml | 44 ------------------- > 2 files changed, 29 insertions(+), 50 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/iio/light/avago,apd= s9960.yaml >=20 > diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9300.y= aml b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml > index 206af44f2c43..7826a1749fcd 100644 > --- a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml > +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml > @@ -4,17 +4,26 @@ > $id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > =20 > -title: Avago APDS9300 ambient light sensor > +title: Avago Gesture, RGB, ALS and Proximity sensors > =20 > maintainers: > - Jonathan Cameron > + - Matt Ranostay > =20 > description: | > - Datasheet at https://www.avagotech.com/docs/AV02-1077EN > + Avago (Broadcom) optical and proximity sensors with I2C interfaces. > + Datasheet at https://docs.broadcom.com/doc/AV02-1077EN > + Datasheet at https://docs.broadcom.com/doc/AV02-4191EN > =20 > properties: > compatible: > - const: avago,apds9300 > + oneOf: > + - items: > + - const: avago,apds9300 > + - const: avago,apds9960 > + - enum: > + - avago,apds9300 > + - avago,apds9960 > =20 > reg: > maxItems: 1 > @@ -22,14 +31,28 @@ properties: > interrupts: > maxItems: 1 > =20 > -additionalProperties: false > - > required: > - compatible > - reg > =20 > +allOf: > + - $ref: ../common.yaml# > + - if: > + properties: > + compatible: > + contains: > + enum: > + - avago,apds9960 > + then: > + required: > + - interrupts > + > +additionalProperties: false > + > examples: > - | > + #include > + > i2c { > #address-cells =3D <1>; > #size-cells =3D <0>; > @@ -38,7 +61,7 @@ examples: > compatible =3D "avago,apds9300"; > reg =3D <0x39>; > interrupt-parent =3D <&gpio2>; > - interrupts =3D <29 8>; > + interrupts =3D <29 IRQ_TYPE_LEVEL_LOW>; > }; > }; > ... > diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9960.y= aml b/Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml > deleted file mode 100644 > index f06e0fda5629..000000000000 > --- a/Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml > +++ /dev/null > @@ -1,44 +0,0 @@ > -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > -%YAML 1.2 > ---- > -$id: http://devicetree.org/schemas/iio/light/avago,apds9960.yaml# > -$schema: http://devicetree.org/meta-schemas/core.yaml# > - > -title: Avago APDS9960 gesture/RGB/ALS/proximity sensor > - > -maintainers: > - - Matt Ranostay > - > -description: | > - Datasheet at https://www.avagotech.com/docs/AV02-4191EN > - > -properties: > - compatible: > - const: avago,apds9960 > - > - reg: > - maxItems: 1 > - > - interrupts: > - maxItems: 1 > - > -additionalProperties: false > - > -required: > - - compatible > - - reg > - > -examples: > - - | > - i2c { > - #address-cells =3D <1>; > - #size-cells =3D <0>; > - > - light-sensor@39 { > - compatible =3D "avago,apds9960"; > - reg =3D <0x39>; > - interrupt-parent =3D <&gpio1>; > - interrupts =3D <16 1>; > - }; > - }; > -... > --=20 > 2.34.1 >=20 --l/TF/AHtsvcqOc97 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTDuGwAKCRB4tDGHoIJi 0sY0AP46/QdAKAw3UmzI5yu2BejYkHZi//fE27QyY54i1SPzyQEA08OIHWW+rQ3b NwLNwXSqISxUYbVQOmVFGuN3/BYsNgg= =Z4/s -----END PGP SIGNATURE----- --l/TF/AHtsvcqOc97--