Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1804902rdh; Sat, 25 Nov 2023 03:57:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGny9zFW08JRA5mM2jSnhAfd6mt122qFGCr/y7SBz3XQzQSVsYYmOI7TmiPxlyV30ro3Dzq X-Received: by 2002:a17:902:e882:b0:1cf:b84c:92ce with SMTP id w2-20020a170902e88200b001cfb84c92cemr631030plg.42.1700913437302; Sat, 25 Nov 2023 03:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700913437; cv=none; d=google.com; s=arc-20160816; b=I30yViGQYsmlkzS1Cn+99HraQYXTrEVw9bjtpv5iQZsg9y9bHYZGSJ2Nv5TzzhbQj+ iQ9KqAB1keIB44r8F2rkts+G5lDo3b3YlC/Kotu7yVCAfoU2n557lHnLB9hQUi8PXJlY Obllv50uIYjebl5ud2I7e7WC6qu/Wf6Y/o8XMxe4vQJ7meyOReBXu3nBHwpKEBruhN9Q NxPraTroNImHb3zdYv88XMAxlosxXHMLU3HrAyOJ/Zpl1cwwRYvUmBnfGqeFeRsP5ntL dJ1cSxlcUwHDdjT8VTUcKZL8bMQhNUcNw8LVQgRaa86a3MbEmCShQFbUgnaXoAxJmdzm 1+ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=ompf+2OoF8BHJ5J3VWaaBr54to0LIdPuwB41zRGN5Ew=; fh=cyilhrgxa6JDfSzot+m1yYx9OB3agwAJlagEPIaMsw8=; b=grOLhs1Uy+HdTRaSE8YEdpuXbEqwg21s6zWBp+Uwh2gaAyvZqMqoAdE+6HagmP6S3U accpQBDmmp4gWxHVGvJG3XUzcEuQn2DF5SLyrH2mokxQ854hZNmSO/ooTgngtjTz2311 e4KooXFtm2Zv/FlLPQBYAU0DRsTfvb7fUF9mjQqJ93WkIDmZVPdUQfSv7E6BNqASCEHi sVABjlFFK6Rxm0lVOEGUKcR1qQp5EMSlKOtxCgX1ECxFoxP4562Yv3cX3euAUix4El4I Vo2pSgJpoXmpHkOtPBfV05ZZL08gBa2q+x2JPRo5fRifWIBk+DPCeojVHajG0cfB6mUp B2bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="DW/8bsSP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f9-20020a170902860900b001ce5f0a0008si4732145plo.374.2023.11.25.03.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 03:57:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="DW/8bsSP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C8104803BAA0; Sat, 25 Nov 2023 03:57:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231910AbjKYL44 (ORCPT + 99 others); Sat, 25 Nov 2023 06:56:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKYL4x (ORCPT ); Sat, 25 Nov 2023 06:56:53 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F1B310E2; Sat, 25 Nov 2023 03:57:00 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a08e4352992so200601766b.1; Sat, 25 Nov 2023 03:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700913418; x=1701518218; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=ompf+2OoF8BHJ5J3VWaaBr54to0LIdPuwB41zRGN5Ew=; b=DW/8bsSPqYXIE1vUSXQ2ujMIPKAnkH51X06pXrfokRXjo/SP4L+TGsKtJF2LYBUX8w SNDS4llDUSptOj6lkYzR7Fv9ltgFL+EnPxigsbExOYxYaqDcDtG+uX2u/jUS/k/U0Ins eCE24iirtnQooCW6qyqhNngACRfJN896JRzvSzQ3zjvemWpYr5A9PjV3w/ClPd9mEWpf S+DOT7ElSeNE+SApH2D7i7XR4JGlvzPnMypQYLTMCz6zaNc17YGaDy6p5CbofHUaFX08 NwfR1UkUXO6F1q9igB2b4NPlqiZ1gN97cImyaQUT6wQru15dzbNaW6nxl9E19S8y6YoO YAjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700913418; x=1701518218; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ompf+2OoF8BHJ5J3VWaaBr54to0LIdPuwB41zRGN5Ew=; b=gCoCdjbjcYmUxtoX18xvazwQsJ82uczmFni062Lr1SyeZ+VxMrig0HZBUAkE+uSQGF nDANY0sm7AUuNqNRkiTl72pW6ITSq+lU9o5yGeu583j+6Cj3fl8W8dsy6b2F8Qon4Joq P56uI6UAoMmUGL5pZHDPBlARE//TMF1IswPl7aFz/nxif3ptWdfBE/zsHEqJH2U9ignN yJJQWN1iaAinQPz4/2sxOwEpHMgchxXJDO0J+/dde+6vfojFyrjSe5llRwq6q+2OHYyj Cnn814LLj9kKP4Ls3Vdsv16tvKl7uR0ksC9gokh45kQY0Z8F0hdEj+CJNatd5DUuCZVt N02Q== X-Gm-Message-State: AOJu0Yx/tvSATVOrbtdpGuGQ5AxiNZ3tvLL4BVXWzxbaoLJAqgsF7TdM VHflDG99CfKQtRGd3UM/7X8ubYttiYLtTg== X-Received: by 2002:a17:906:1da:b0:9be:466c:1824 with SMTP id 26-20020a17090601da00b009be466c1824mr4424311ejj.11.1700913418153; Sat, 25 Nov 2023 03:56:58 -0800 (PST) Received: from [127.0.1.1] (2a02-8389-41cf-e200-3176-084d-819d-12bf.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:3176:84d:819d:12bf]) by smtp.gmail.com with ESMTPSA id r17-20020a170906a21100b009ae57888718sm3344349ejy.207.2023.11.25.03.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 03:56:57 -0800 (PST) From: Javier Carrasco Subject: [PATCH v2 0/3] iio: light: add support for VEML6075 UVA and UVB light sensor Date: Sat, 25 Nov 2023 12:56:54 +0100 Message-Id: <20231110-veml6075-v2-0-d04efbc8bf51@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAbhYWUC/22NTQ7CIBBGr9KwFsMMRaMr72G6mOLYTkKpASWap ncXu3b5Xr6fRWVOwlmdm0UlLpJljhVw1yg/UhxYy62yQoMWAIwuPIWDOTptERyiZ/J0UjXeU2b dJ4p+rIX4CqHKR+K7vLf9a1d5lPyc02e7K/Czf5YLaKOta3uLrWNo6TJMJGHv50l167p+AcmuO 0S1AAAA To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Javier Carrasco , Krzysztof Kozlowski X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700913416; l=2267; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=8qA1rB2jysMdnP4QbGebjf0iuxSJmGaYBpBZjDzcCXg=; b=ZxpFNQuv5NQEw1dyG6cIZJCR3thWA32K5ZvNMSMFUXsVPEf2SKydE1nkcGvVrDcugmePHJwut 47rjDDhiISPAxksDzOAMM17kYyd9hEWaQGS3ALkAJLH+XT8z522Llmd X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 25 Nov 2023 03:57:12 -0800 (PST) This series adds support for the Vishay VEML6075 ultraviolet sensor, which offers UVA and UVB measurement channels and I2C communication. The device bindings and a simple example are also provided. This driver has been tested with a Gravity VEML6075 UV Sensor Module in open air conditions. Signed-off-by: Javier Carrasco --- Changes in v2: - General: swap patch order (bindings first). - iio core: add uva and uvb modifiers. - veml6075.c: use uva and uvb modifiers instead of extend_name - veml6075.c: remove redundant information from the description. - veml6075.c: inline device name. - veml6075.c: use read_avail() for available attributes. - veml6075.c: use guard(mutex) instead of lock/unlock(). - veml6075.c: use regulator_get_enable() without _optional. - veml6075.c: register managed iio device and delete remove(). - veml6075.c: remove remaining debug messages. - veml6075.c: error path cleanup (return type after val assignment). - veml6075.c: remove zero from i2c_device_id. - MAINTAINERS: fix bindings name. - vishay,veml6075.yaml: remove vdd-supply description and mark property as true. - Link to v1: https://lore.kernel.org/r/20231110-veml6075-v1-0-354b3245e14a@gmail.com --- Javier Carrasco (3): iio: add modifiers for A and B ultraviolet light dt-bindings: iio: light: add support for Vishay VEML6075 iio: light: add VEML6075 UVA and UVB light sensor driver Documentation/ABI/testing/sysfs-bus-iio | 7 +- .../bindings/iio/light/vishay,veml6075.yaml | 39 ++ MAINTAINERS | 6 + drivers/iio/industrialio-core.c | 2 + drivers/iio/light/Kconfig | 11 + drivers/iio/light/Makefile | 1 + drivers/iio/light/veml6075.c | 486 +++++++++++++++++++++ include/uapi/linux/iio/types.h | 2 + tools/iio/iio_event_monitor.c | 2 + 9 files changed, 554 insertions(+), 2 deletions(-) --- base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86 change-id: 20231110-veml6075-321522ceaca9 Best regards, -- Javier Carrasco