Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2105541rdb; Sun, 21 Jan 2024 07:38:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnIgcqBxxERZaOujKDfbTiKe+9cb5M/pKfBRl90hj4jAtCsz8GP3gTr30ao1AUgwAm8BJw X-Received: by 2002:a05:6358:7e55:b0:176:3f63:b7b6 with SMTP id p21-20020a0563587e5500b001763f63b7b6mr2929646rwm.60.1705851490051; Sun, 21 Jan 2024 07:38:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705851490; cv=pass; d=google.com; s=arc-20160816; b=0Vbn4NhAw1wkoeM38IXvfUilrqhK3xu6IcPQfnSM/QsSOojauphnAcB/iXyUQq4TPs rf0kATtxyFE8wT7YhWFiB8HstzXe3ewf+IXqRyQ7wisQKpS7MdLb5c90ADMtfZFoYD8w ya/UHqOPd59so38A4eLjkOd7nFipCQPkkuJFqNFXAOxhUH2TiCgebBHsDPWddZJ7bHiQ S/0+cSmcYKn6w8znRfbE7jQWtbCwe0NXb9oNvzUcrGvsALyFi24jCqwtzcQRbz8CaY2l sqnVvT/pHxt+Xh5bbnDwJ0Mkyl71t9kuoowgnDRDsKcSKR0ApLdGhTomHd0H0grfCpX3 /XRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=wzwlU3Zlnts350OSmy3bem2xQR1D7JzhDL6WUUe8PR4=; fh=nyVmsIK4WqvxFXQbRNnD5tTa/4K+ET424PUXfGnt3pE=; b=nGVPzZEd3NVi9lv0V0plVFq/30wsFI5XHouaLuSJvr0n++b6SCU1XRXNJEb/aQPVVU HXpMNz7PXvmW9sQHoOAdjQQ8ux0ZmhqnaoQXtYFfWvhRx725b2I8UAnkw3SCy08lEYhk DZi2bYQRaGDeVMLgp0P3v2w1hPv43NDEyfVCpsauUKb2P2r2pRkwAy2EmTXgem2urOEY p8yuy1HnwqxFNKYmeg3VpG4TzuR/tuvlEYiw6GRWlgInW1n9/T4ESdaf97o00VeWmEk7 ZjREced0Z+sE0abRAIt/Qhwx0jMpk5J9tLdtY+e5nLHHGH3pKuwiGmczbuXUw/t8bHoE Y/8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SBvRefTY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r7-20020a63ce47000000b005cd8123afb5si6666090pgi.547.2024.01.21.07.38.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 07:38:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SBvRefTY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A8D9D281CB1 for ; Sun, 21 Jan 2024 15:38:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92FEE38384; Sun, 21 Jan 2024 15:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SBvRefTY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B12D6376F2; Sun, 21 Jan 2024 15:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705851430; cv=none; b=irg6hoi4KB+EvdOW+V+eqDXzKkU1awS5yKdiNrDQWzci8X0b/244YELK6W9lxyEGUcmQ9Y8TMn/3Q4zTtD9cu7ggyKp8bbTtFjBuVVFQoL15PfsVMkYAq3ni1f2KeC6KQg0BHDtH2KK9KkGK+4AJ6GqjmnKrHh2dB4tszWRq2s0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705851430; c=relaxed/simple; bh=o9DRoMRGJgeYTuVP+aksfA+RBrVuOJIIhu/hq2XJfI0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Rl2NsICS5HETmikOb3+ci7jd6XFKidxn8arm+irxtWyk2mFarxkmM7f8H30/AYasKg12YXH6gbOtBRcTW5XLPL1AVsDX89k/7Bqtbil5sIBiIEwuQiEOLbYdyXU6qkkFlwA9XscTC3RjfSwMyeEAcqnqa/dQs3iyMQoNsqRB8NI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SBvRefTY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57B25C43394; Sun, 21 Jan 2024 15:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705851430; bh=o9DRoMRGJgeYTuVP+aksfA+RBrVuOJIIhu/hq2XJfI0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SBvRefTYDQ7oSyrQ4357cr1D35GquD/G2yLcSCK8Xw3v6g7TQuAPDZGY9ORMNDMIm oxdjBVMXp5F/Uzzg2TaCVupdsE1mjLsFY3sVNbuV0VnV5FPX1R/Jlm7qOn1+uOVVmE PgW01O/ZIbcrZIK6yMW1uGddRfamFTjFTTNBKPBip5Z5sUBdK64wgpRmVFpBj5BWaD iGg+bFW4HkhLj+17hIYQqtA1fDdatj33+TujNPYXnDAdA/Fu+yfnQ8DaINgtH40fUt L/92GG/5UQnf5J0AVquGA6IJ2COnVgued/gd8CF5sEKmNtTh8Cye3Jki164J5eevum zu9OFQ81DvoSQ== Date: Sun, 21 Jan 2024 15:36:55 +0000 From: Jonathan Cameron To: Subhajit Ghosh Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , Andy Shevchenko , Marek Vasut , Anshul Dalal , Javier Carrasco , Matt Ranostay , Stefan Windfeldt-Prytz , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/3] dt-bindings: iio: light: Avago APDS9306 Message-ID: <20240121153655.5f734180@jic23-huawei> In-Reply-To: <20240121051735.32246-3-subhajit.ghosh@tweaklogic.com> References: <20240121051735.32246-1-subhajit.ghosh@tweaklogic.com> <20240121051735.32246-3-subhajit.ghosh@tweaklogic.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.40; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 21 Jan 2024 15:47:33 +1030 Subhajit Ghosh wrote: > Adding device tree support for APDS9306 Ambient Light Sensor. > Updating datasheet hyperlinks. > Adding interrupt definition macro and header file. This is an unrelated change, so should probably be in a separate patch. > Adding vdd-supply property. This one is reasonable to have in same patch as the new device addition as, whilst I assume it's valid for the existing devices, you are adding it to incorporate something that device also has. Could also be a separate precursor patch. > > Signed-off-by: Subhajit Ghosh > --- > v2 -> v5: > - Implemented changes as per previous reviews: > Link: https://lore.kernel.org/lkml/20231028142944.7e210eb6@jic23-huawei/ > Link: https://lore.kernel.org/lkml/22e9e5e9-d26a-46e9-8986-5062bbfd72ec@linaro.org/ > --- > .../bindings/iio/light/avago,apds9300.yaml | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml > index c610780346e8..bee73a590424 100644 > --- a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml > +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml > @@ -4,19 +4,21 @@ > $id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > > -title: Avago Gesture/RGB/ALS/Proximity sensors > +title: Avago (Broadcom) Gesture/RGB/ALS/Proximity sensors > > maintainers: > - Subhajit Ghosh > > description: | > - Datasheet: https://www.avagotech.com/docs/AV02-1077EN > - Datasheet: https://www.avagotech.com/docs/AV02-4191EN > + Datasheet: https://docs.broadcom.com/doc/AV02-1077EN > + Datasheet: https://docs.broadcom.com/doc/AV02-4191EN > + Datasheet: https://docs.broadcom.com/doc/AV02-4755EN Old links seem to still work, so why the change? > > properties: > compatible: > enum: > - avago,apds9300 > + - avago,apds9306 > - avago,apds9960 > > reg: > @@ -25,6 +27,8 @@ properties: > interrupts: > maxItems: 1 > > + vdd-supply: true > + > additionalProperties: false > > required: > @@ -33,6 +37,8 @@ required: > > examples: > - | > + #include > + > i2c { > #address-cells = <1>; > #size-cells = <0>; > @@ -41,7 +47,8 @@ examples: > compatible = "avago,apds9300"; > reg = <0x39>; > interrupt-parent = <&gpio2>; > - interrupts = <29 8>; > + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; > + vdd-supply = <®ulator_3v3>; > }; > }; > ...