Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1197985rdb; Sun, 7 Jan 2024 07:58:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVTqa2DiXsFZVSNoG7FJ6cXMYRMbV9CH0QkQ8Th4FbUyPH8QtMo2R0BigSEQCSHr3k9Pig X-Received: by 2002:a05:6214:1390:b0:680:f643:b717 with SMTP id pp16-20020a056214139000b00680f643b717mr2854157qvb.96.1704643137122; Sun, 07 Jan 2024 07:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704643137; cv=none; d=google.com; s=arc-20160816; b=g74T5tOUOkW1QT73twlBU8AHt0Ui2MWgwPadjqRCMKegGrCt5onq1Dsj8PUuNZaBfc yR9Hn6Cqz5e2NR5+koPvujShNRX9IumV2TFmpi9TNfPNAA1G9mCbPOCBq3UcaaynCBwl dWoZh2o9l9PZ/Dpf5Z6MDA2m0wG9t0TRE4sTJoMkX4ebg9/C4pk41zoXZ2lZputM6ZtC 1EOEUdUXDSuvZ2xSgmz+DLNZHkSOy1bd6/ImixD1G5NKiZ2FeQzW7Wj6l57X0pqMRktX evsE+k64u3SekaW/iPTFJ8aesUL0yOASahehgzylamMB8Z0DlVnXMUwOOg0G6bxpsyLW DdXQ== ARC-Message-Signature: i=1; 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=leaVcYB07uptSQrtgdpIyVyN6ufpvD7dlnpLH+AFjNY=; fh=3ZM0HlGyfmVrzZ/m3DWjOqiuHLnhKbMURG7m3zByRw4=; b=kNIuqBVBmovGogXB82YESO6MHUKWg5zhq2D2I5O+y96tn8z4fmlXvloL2g9+ilh0zA nNVcnuZcsDm7F+VMUUE/KsDWkV+KBTOVIYAG8EFlalgWxfJ7lPsCFkGTVGSNLEtCZson OQSXiw2HqmAq38q/J3m5C0RIObjt7bjw0qmRxdFp9ORHwkZm+FOKo9ZRUJXoYJ1PXUbn EJie4RHWcGaMort307kXi9fAX+zFqa94XX8GE9yDMvoI9BSSrhhBRnVFNn2o1iFZhJSH ZKHoNmHdQO39APD7tjEDouYd23Q4d9Kh6HhEV8cbkm9+ts8DzUoxnDGcyBPvyqq3NXUU 9Qfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D/e/N/Qm"; spf=pass (google.com: domain of linux-kernel+bounces-18900-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u9-20020a0cb689000000b0067fae204a04si5993292qvd.39.2024.01.07.07.58.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 07:58:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18900-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D/e/N/Qm"; spf=pass (google.com: domain of linux-kernel+bounces-18900-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18900-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DA34F1C20A8A for ; Sun, 7 Jan 2024 15:58:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A442713AC7; Sun, 7 Jan 2024 15:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D/e/N/Qm" X-Original-To: linux-kernel@vger.kernel.org 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 CFDF413AC0; Sun, 7 Jan 2024 15:58:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 790FBC433C8; Sun, 7 Jan 2024 15:58:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704643127; bh=hyV0n3TYTzj8XaPqJZ9Snjs6Ou2KsAmUpPfk6+9Pr9c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=D/e/N/QmNbh7aW5o13q79Qm9OfG62hFAxnlmxyhm51wA8sGhTYf40U+iSz9jOyguD 5nzb5zElE6FLYiQC3nwQa2vKJPfIV5jDuL7lhD7Z/DP4uHKmNWI2ZgL14kOb/gKs7S /Y6Ge1fTTrzUqpRZAlPuHgLp6o9yowOBdlZkx7HzMOgIThC5wKbmOfSYndI7yMZiqP /r6DWCXtnLoycW8MFQj+1cZV4aOpEb6mhoqkZto00PeYeT2jOT34ReRTo9ffBkx51D 1vnPy3hMmLc0PMD5uYV1DkFIxlKRMcTPX5Wx8JoWhfRfmc6n4x/T6O0FGsoB8iLq8q /k0HRKLQ1Xgaw== Date: Sun, 7 Jan 2024 15:58:38 +0000 From: Jonathan Cameron To: Javier Carrasco Cc: Christian Eggers , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: Re: [PATCH v2 0/3] iio: light: add support for AMS AS7331 Message-ID: <20240107155838.376bdd1e@jic23-huawei> In-Reply-To: <20240103-as7331-v2-0-6f0ad05e0482@gmail.com> References: <20240103-as7331-v2-0-6f0ad05e0482@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; 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 Wed, 03 Jan 2024 13:08:50 +0100 Javier Carrasco wrote: > The AMS AS7331 UV light sensor measures three ultraviolet bands (UVA, > UVB and UVC, also known as deep UV or DUV) as well as temperature. > > This device is practically identical to the AMS AS73211 XYZ True Color > sensor that is already supported by the iio subsystem, except for the > photodiodes used to aquire the desired light wavelengths. > > In order to reuse code and reduce maintenance load, this series extends > the AS73211 driver to support the AS7331 as well. > > Note that the UVA and UVB light modifiers have not been merged into the > mainline kernel yet, but they are already available in Greg's char-misc > git tree which can be found at > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git > in the char-misc-next branch. > > The original device AS73211 supported by the driver could only be tested > briefly due to the lack of hardware. Instead, the i2c-stub module has > been used to make sure that the driver registers the iio device properly > and the attributes exported to sysfs are correct. Some basic register > assignments reported the expected intensity scales and in principle > nothing else should have been affected by the modifications in the code. > > Signed-off-by: Javier Carrasco Hi Javier, Series applied - but given timing I'll only push this out as testing for now as I'll want to rebase the IIO tree on rc1 once available in a couple of weeks time. Thanks, Jonathan > --- > Changes in v2: > - as73211.c: Use IIO_VAL_FRACTIONAL to retrieve scales of AS73211. > - as73211.c: simplify device-specific data retrieval in probe function. > - as73211.c: minor coding-style fix (shorter line). > - Link to v1: https://lore.kernel.org/r/20231220-as7331-v1-0-745b73c27703@gmail.com > > --- > Javier Carrasco (3): > iio: light: as73211: use IIO_VAL_FRACTIONAL for intensity scales > dt-bindings: iio: light: as73211: add support for as7331 > iio: light: as73211: add support for as7331 > > .../devicetree/bindings/iio/light/ams,as73211.yaml | 7 +- > drivers/iio/light/Kconfig | 5 +- > drivers/iio/light/as73211.c | 142 +++++++++++++++++---- > 3 files changed, 123 insertions(+), 31 deletions(-) > --- > base-commit: e9215fcca2561b208c78359110ee4009b454f761 > change-id: 20231220-as7331-88a25ceeb66d > > Best regards,