From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 1C6A53CFF51 for ; Mon, 16 Mar 2026 17:19:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773681592; cv=none; b=cyflocyXFGwqggngmg6ryTMGmdRQaLEprkMvLwqObP2s+z0nxjeui9niYl3IE8UWBN8lb/4soHx436UfWn31tYgmUbLIRMs3AShoNmqD6HqxWFpHCuYFEJ6I9QatIWoqx8lndhb5VlkO81zKBibic+aqr3ThYckWodwMkWJkQXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773681592; c=relaxed/simple; bh=OOhWhIBktKoAtdZER1V9ZuKqMI9/xmuvVzeYZnJq6n4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Melr4DYtjYnWjtfnA71fnptU/ci/4DWIRAm3EDpW34OxYB9watwaWrdbHEILr107ZPiKi9SHNqsex9gVLa6cJb7j3oNyvYz+gRtwqBm2lY7q5s8cjB5EFLbAENztV2NgX2dzmOMjRMeIBpPNIFUZgaNMtDrjRVh2cFKP+xkMbVg= 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=Vr4HZzbP; arc=none smtp.client-ip=209.85.218.53 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="Vr4HZzbP" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-b97b1012d14so250400166b.0 for ; Mon, 16 Mar 2026 10:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773681589; x=1774286389; 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=ui4W/qmHAPpyDEXnX4wSdjce55+fYM+nlh/b/oydIMw=; b=Vr4HZzbPRIhBCSXdcedBYQcXcnXvLcYpInye5TgPFvzjh1Cz7l5+Hyc2QW7qbYzkuH kMjUhKZhe68ocfqRXvRQ/Qhw17+wZSO4S8HOhIcuUncz1hY5OLLa3BveQnBZaMg4Fi6c VKgZsDv+sIGexmf7tDndmT3b2Y9G6Vo7yuNpqaMV9Evjbl2mRO8h5Fe19hWNkcM3+oOu tWPwl24oV+DyG0D7AgsKoCFwGwaxF3HOgnoAw4/Hck0ddbxpnnHnCyVzh4osI6gsQ7ba ri6olGIiazlE8ttTsa7HBoVK9QnaRW25FqzsTm4Lzz3g3wrYDwJZbjf9giv2iWxBc4/c I5XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773681589; x=1774286389; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ui4W/qmHAPpyDEXnX4wSdjce55+fYM+nlh/b/oydIMw=; b=NPHLr1p75XZP/bEb2pdKUrL/0d2l6FzsffZtcvOQ8HC2BROSUBPY+hcUNiXmfmNE/R KG+YBQJcAGSc7nczofV311SqMqB5uUybOo7/YdQe1KfkWstWnvK42V+rHqDZFYalq/s2 wg3n1NHNx+3fvEvOQZOrg5LJjq4QHD2h6Bepl/BdLVMpkl/xDTlYVIrxKMJQDA7Pj2Y4 geSckcLHsAyewE1uLQOc+EMun+mcVGHYz1/OMO1RGEayaZz2+ks0wBzGAVjYcm5IpjrU ajtD1UzxYszvZMSxYaksWINowVms1kTEelFsk3wgthNRjMRaQXPOYrZ2i8CLUGq+7yhg Z+Kw== X-Forwarded-Encrypted: i=1; AJvYcCWpUsxpf7YhXzE/vH4yhANvgJwBpjCMeTh9+1+cFa0N+u1jLUU5Lfxo0aO/2Cq7hmRM6QC79TKaGa5GFmw=@vger.kernel.org X-Gm-Message-State: AOJu0YzgB66WTa+JrH1kc5g0OVTDAUhQ2nXVkd2lW7RZZ1aW8I4vnq53 QNDD1+Ius1pMrCOfqZb88GIXTz1PtWIdItKUTXPh8zTcIrmgFbUEg6OL X-Gm-Gg: ATEYQzwfP3l0XYV3X8B8w4nUTntZe09QwBDNp03iqzT574zHOSySq70eg+8tO4rRZ9J 1BUxZWeChiK5BpBr9AyUZ98kBCgCo/eOeGdKV5UJ8AJP2LDRyAm7WwcR+afbOMl3UDGFyAotqDN yEic0mTvTesEhrKjllXTwMbgVJhuTy/HQ5Q9+mXzEIHImJznzaamA9jPLMk4ZG+4YvV17HDKgbn 9T8pmXxbbLGARDlMEkraq1ZtHhjOLMIIw6UX2KejG4CuyLaJF33spdn1KoTBpe052eP1i65Uyp8 QS3ilf+meE/2jTl1jJWoHl8UU9bT8hBbZULkiUpMeX+qBLnNZfZQoG5KbYZik/5HrfxhtpCPS4l EWkrzh8UGzvuVbfxK7Inc7YWH3eWjDP2eZ9eiJ7R/Nmf3Uz6fCgM3Q15jb3logsHqKAzxvotzwo YOu9tWirI8Ubml1yLqDBCq4H4atQ== X-Received: by 2002:a17:907:86a5:b0:b96:e79f:194c with SMTP id a640c23a62f3a-b97d6e51416mr31543466b.31.1773681589204; Mon, 16 Mar 2026 10:19:49 -0700 (PDT) Received: from [192.168.0.39] ([79.133.247.80]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b97846174cfsm505940266b.22.2026.03.16.10.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2026 10:19:48 -0700 (PDT) From: Erikas Bitovtas Subject: [PATCH v4 0/7] iio: light: vcnl4000: add regulator support Date: Mon, 16 Mar 2026 19:19:44 +0200 Message-Id: <20260316-vcnl4000-regulators-v4-0-854fc2eaf54b@gmail.com> 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="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/23NywrCMBAF0F+RrI1MHo3Flf8hLpJ02gb6kESDU vrvTgtCkS7vcO+ZiSWMARO7HCYWMYcUxoGCPh6Yb+3QIA8VZSZBGlACePZDpwGAR2xenX2OMXH na+FKC8KjYbR8RKzDe1Vvd8ptSNT7rE+yWK4/T+x6WXDgxjhqlB4Lo65Nb0N38mPPFi/LrSH3D UmGdBU6550rSvtvqK2h9w1FhvLa6rJSYM5ma8zz/AVwnkZ4PgEAAA== X-Change-ID: 20260310-vcnl4000-regulators-bcf1b8a01ce6 To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Meerwald Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Erikas Bitovtas , Raymond Hackley X-Mailer: b4 0.14.3 This patch series introduces support for voltage supply, I2C and cathode regulators. This fixes an issue where if a regulator is shared between the proximity sensor and some other device, and the other device is powered off, the proximity sensor would be powered off as well. One of the commits includes a Reported-by: tag without a Closes: tag - the report was done outside of LKML. Signed-off-by: Erikas Bitovtas --- Changes in v4: - Reworded device tree bindings commit into imperative mood and clarified where do supplies come from. - Moved data->chip_spec->set_power_state() calls from init functions to probe. - Removed explicit less than 0 checks for ret where unnecessary. - Moved the patch that adds regulators to the end of the series. - Added an explanation for removing duplicate prints in probe. - Fixed indentation for devm_regulator_bulk_get_enable() and i2c_smbus writes in vcnl4200_init(). - Removed a redundant check for "proximity-near-level" device property. - Link to v3: https://lore.kernel.org/r/20260314-vcnl4000-regulators-v3-0-3c4a48d30676@gmail.com Changes in v3: - Added a more detailed description for supplies in the dt-bindings commit. - Separated sorting includes into a commit of its own. - Replaced all occurrences of mutex_init with its device-managed counterpart. - Moved client->dev variable declaration into a commit for adding regulators. - Removed redundant dev_err messages in probe function. - Replaced all direct usages of client->dev and data->client into usages by variable. - Link to v2: https://lore.kernel.org/r/20260312-vcnl4000-regulators-v2-0-2bdebbcbb58a@gmail.com Changes in v2: - Removed double quotes in includes. - Reordered includes alphabetically. - Enabled regulators before the mutex is initialized. - Replaced direct usage of &client->dev with a variable. - Link to v1: https://lore.kernel.org/r/20260311-vcnl4000-regulators-v1-0-66b6038ce563@gmail.com --- Erikas Bitovtas (7): dt-bindings: iio: light: vcnl4000: add regulators iio: light: vcnl4000: sort includes by their name iio: light: vcnl4000: move power enablement from init to probe iio: light: vcnl4000: replace mutex_init with devm_mutex_init iio: light: vcnl4000: remove error messages for trigger and irq iio: light: vcnl4000: use variables for I2C client and device instances iio: light: vcnl4000: add support for regulators .../bindings/iio/light/vishay,vcnl4000.yaml | 7 ++ drivers/iio/light/vcnl4000.c | 90 ++++++++++++---------- 2 files changed, 56 insertions(+), 41 deletions(-) --- base-commit: 6e03baeeb160e6cfd72f2c39f26c50bcd925c7a0 change-id: 20260310-vcnl4000-regulators-bcf1b8a01ce6 Best regards, -- Erikas Bitovtas