From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD2CA2E282B for ; Fri, 16 Oct 2026 01:22:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792113772; cv=none; b=uCRAxQZIZfRFGh1vz2XFX5vdw0egPpmLSbFFtK8ClflHb71a81Eiy3fOSMnj7FVKM6G1CN54YZFuGqptwU8umTcP/BE8q0NvQSrf8BFIEl8jUpLWOCLYdmDcRKG5GStYp7obgd7FiRf5f/WVXu/biZ41577mi+HC3SonqAbhYnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792113772; c=relaxed/simple; bh=rz5mfMuLquktYc5UT06H8blAchlq3hj5vRBS+fii45c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W77qa6KSRyzZr+h+7jhptIe641V+6+EtmKtJD80rwEDOuT7ltOmkUeCEBsyWzWzLNNRwntGzQyqvm6OwrcuBKV4peVGFVCPkNK/ex30skbtgjDKpUyv2hGlX8P55+vw5C/my2h/czhLsWqpNYjYsTG77+CFJ7RwkuGkxKv/4HPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PIHlm/5X; arc=none smtp.client-ip=209.85.215.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PIHlm/5X" Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-cbedd5aece4so279485a12.0 for ; Thu, 15 Oct 2026 18:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792113770; x=1792718570; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gL3pDn4jj9S8lXM0dBJ6XEBotoeqvIua7Rj4E6jDdyI=; b=PIHlm/5XTZnbxnJm4hISlIgh1CsqqDrpFzsReQD/YTWR1E1HJz6+z/tvtnB3w0PzSi IAfEsgbEXu6b8P9z3XRp2FmITi5peUkTtx+xq9mwJz9pl9wGqts6sQrtaBsmd8l0tH4d f+zZWOJ0q1P6b/Qcwgbv4mZoTL7eN767KWMR1SNYPt2XdUuyMzASepuSjaXUUVXr3a5y eIQ1tachO5jZnF+Tm2kY8F4cymJFo1mjDDsR/6fvG6VU8BrYq6fw/kFQpeavheCbFcAA Dq9gySqTV1D+Ow50o3DbehV6QLKt+D/24byLv5qmqqv+7QXrm0+wsk1qDmslOKJOUdjT lDXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792113770; x=1792718570; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=gL3pDn4jj9S8lXM0dBJ6XEBotoeqvIua7Rj4E6jDdyI=; b=BZmuX6O593eMHcmIk7R0fhak8UGn8msBhZnbup6TrrCM7wmfy/iP4dB38DBiKilEoE Yei0FnpxwPFbJI9WWjPtxgP+VIge5q63eycYJoghom2MsYyakIlHB4HzB2AbBpbrKV8L fgyqAMt4yUJmNWNaVR54Eqn2EjaXRiIb4Ky6YIB5xRVtGQ/biY/113rdAsTHWnd5ejpw R4wG59eWhnLqZ9mWX/5xb3n6LABl5BYSiQHPTjo8xrLG/j44w8UBcMpbrceLxPFg1wVG Cnz1gGknDAplkHXCjNtxdi3H2aKamVhl2tQLnS/9ceDQ2v9BMLTO1HT/P4eOO6ghLt3h IuUg== X-Forwarded-Encrypted: i=1; AKwUvByxxWwJa4a1zeuaMYJ+DXoYH11oCCydztML+Mou5C7Dx3pu9lodw6fN6P5lF1kkVX5RMDhmvc5bKdc=@vger.kernel.org X-Gm-Message-State: AFq9FYKRntL6fcK4IKM9QzvhoWAnkt4jBJg/2j5Rdns7xuDeyBD1cU5o 0H6ezDKVKIP88b74DR5URl7QjtWR9Q9ZPBzvukwtvpixEpGT9sGpnTMn X-Gm-Gg: AYBFou06W/PA6HCCKal2zyf714uuMlc58mO6MTLXagTnI9e8Ya1SKYEDUt5RTMuxXFn Sct18dKMKDdU/SZQzj/k5GQfibr0lHmEy8tQqRX4cxstua7jgbf+X/5xAfg5APC1P7u3IAPbLn+ 6DI54cBiN86jd6i4g4iIg+RDgAP7/nIe3vfl36KYbeZdJ/q80dLkpsahWG/otqZj/HjmpvKaY7t yhBEcFLP0+bNVwzfCTpWai/2X88MvFY9/A++peV4FjZz2eM2Yfe/3PVXec+aBSURaGSz6cmJ77Q Ez5MMIHJvcqmTDob9wQhwiH2m5RkJCUAltgrW4/i5na3ByGabafMptYxz6O/wzEZK38cV1Di+Gz tQ6GQjuR+fWeaR2Un0MoiHauL3/p0gP5bjQUv4alEK/1X2n6S7BPOfwfJNVX6FiuBrTYYqz3YY0 lpK22d7/qgGGzBKIriXxatb4NeBvghpae/i7DNOlU9ktoBgi/1e8i09hJrFLus6JysS4zhZ5eiI 8GGGvEeX/Sl/013eQPXKg== X-Received: by 2002:a17:90b:4b87:b0:3a8:337d:228a with SMTP id 98e67ed59e1d1-3acbb68a083mr1147343a91.6.1792113770137; Thu, 15 Oct 2026 18:22:50 -0700 (PDT) Received: from l (ec2-56-155-112-168.ap-northeast-3.compute.amazonaws.com. [56.155.112.168]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3acd05fb680sm474327a91.2.2026.10.15.18.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 18:22:48 -0700 (PDT) From: Liu Yufei X-Google-Original-From: Liu Yufei , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Joshua Crofts , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Liu Yufei Subject: [PATCH v3 0/2] iio: proximity: Add Vishay VCNL36829 driver Date: Fri, 16 Oct 2026 09:22:16 +0800 Message-ID: <20261016012218.40223-1-lyf98405@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261006100943.78971-1-lyf98405@gmail.com> References: <20261006100943.78971-1-lyf98405@gmail.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Liu Yufei This series adds support for the Vishay VCNL36829, an I2C proximity sensor with an integrated VCSEL emitter. Patch 1 adds the devicetree binding. Patch 2 adds the IIO driver, which exposes the proximity reading and a configurable integration time. Tested on Orange Pi Zero 2W. Changes in v3: - driver: Collect Reviewed-by from Joshua Crofts and Andy Shevchenko. - driver: Use dev_info() instead of dev_warn() for an unknown device ID (Joshua Crofts). - driver: Wrap the write_raw() arguments on a logical boundary (Andy Shevchenko). Changes in v2: - dt-bindings: Collect Reviewed-by from Krzysztof. - driver: Address review comments from Andy: - Use a Datasheet: tag in the commit message. - Drop mod_devicetable.h, sort the includes and include what is used. - Drop the i2c_client pointer from the private data and use regmap_get_device() instead. - Drop the unused i2c_set_clientdata(). - Enable a maple regmap cache, mark PS_DATA and DEV_ID volatile. - Rework the integration time validation in write_raw(). - Use reverse xmas tree order for local variables. - Document the power-up delay and use 3 * USEC_PER_MSEC. - Warn and continue on an unknown device ID instead of failing. - Join lines that fit within 100 columns. - Simplify the Assisted-by tag. - driver: Drop the i2c_check_functionality() call, as devm_regmap_init_i2c() already checks the adapter capabilities. Link to v2: https://lore.kernel.org/linux-iio/20261006100943.78971-1-lyf98405@gmail.com/ Link to v1: https://lore.kernel.org/linux-iio/20261003050453.413700-1-lyf98405@gmail.com/ Liu Yufei (2): dt-bindings: iio: proximity: Add Vishay VCNL36829 iio: proximity: Add driver for Vishay VCNL36829 .../iio/proximity/vishay,vcnl36829.yaml | 55 ++++ MAINTAINERS | 6 + drivers/iio/proximity/Kconfig | 11 + drivers/iio/proximity/Makefile | 1 + drivers/iio/proximity/vcnl36829.c | 298 ++++++++++++++++++ 5 files changed, 371 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/vishay,vcnl36829.yaml create mode 100644 drivers/iio/proximity/vcnl36829.c base-commit: 52c36105f76e96b638152a42e735f2e7767ed946 -- 2.53.0