From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 773DC13AA2F for ; Sun, 15 Feb 2026 18:01:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771178466; cv=none; b=YmV7c9DMD5u0ilXflQXsbh6NxQRmcnmgZ9HDJMjZ0Ko5LfMNLoeOT6GiNA/tdI+6k0vfOU4CdhwLWakeJSMlxpGB1e+FgozHucvPeRBhuAbTrVUHG7YRVvHM+pve1uMo0ll3nGfDmK8cbpUrxer8F9PnLwF/sk3giwwGuzV4+Hc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771178466; c=relaxed/simple; bh=BFCwEhjPRXqG+a0i103fckn8v3LCvfKjt9tQvvQNMUs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Tvlm/H9Amv3LcpbrFZkgY78DYpK7KLtPkJlBGWX0ZjDQLdsftcp+p1hA9Tb0vuKU1aR9JzzcXUhkuI0/N3ZM+vzxWHs71hHOBjW0gKf23UPz/bHczlMhsCl1yauPBhomP91VCoOQoiYjTNNzoAlupygsEwC3CuKHqU+i5yjhcc8= 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=WrhHNAth; arc=none smtp.client-ip=209.85.128.171 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="WrhHNAth" Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-7927b1620ddso30475487b3.0 for ; Sun, 15 Feb 2026 10:01:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771178464; x=1771783264; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dVfc3ZKINfdX4zMGanggAKwnJ4AmEdhD9zmapZzYYN8=; b=WrhHNAthwySqyuTRsmHNP2drY2szeh4SZeMtvw/KO8McroR4Wgf8mIlkZIDVJIqzK3 SABOqdSfLSsQUG3pH0nVCQKxWe9ti/K1mss/hJmWeMuzkkEWukDvMNgbJCnToMIncSGo wPl1qFFX7SF/n+0ojtQUIrE+JFQv76RE9j+NX8EfpiiZ7q3vYvKFTizQ3ZsMxcGKHWD4 j2UvmLzfanpRbcvXVjNkC/E55+W0isSre4ZVxx3jH5Q9p2NlbQc+WH4T83W9GGXJXvZ6 GvLGCJmkfy5ftkG5SYXXTJxSSJfKimSOnOesf/vXeWUXPwLAVliKblP9bfDV4DsCAlxS 00kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771178464; x=1771783264; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dVfc3ZKINfdX4zMGanggAKwnJ4AmEdhD9zmapZzYYN8=; b=aSbVNkbkl6A6T++/l5q45qlaujUxfc05N5qykEX4SY6OUGOeSLSvbZMUHRnKyum0fo +yLvOvQIKetvTGFBxzV5j0CkIxupj23mr2RuE4+VBds9Pvf0GYrK0cpuqPqV9tXB07ie B98ev76Oe0WDQ9KdoMNoe975M+QmlMDZk/CykiU4XrPYlCyxsUvfw2Q/QwdSW8ahH4si yvMA49ggq0kxUoqZu0fEwE7XICDuayqMwfWPU3aoAFNlf1+3Ak4MkcK9OsyyM/Genq// 5NKra85OUb/YReC1e5zOa7KqzyijUTAwjlsWhYPqWVgZHDNSju1CnjzevihP5yhp8ZRX SiAw== X-Forwarded-Encrypted: i=1; AJvYcCXWY9KkYKfKJzz/ArUZGvmUNPFrkJ+MD9nUW9myqdDdnXhPzntBNQMmnJIi7J2Fguf5QUFnkFCfkvQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxPgvZ9goqAn0cU8zvl4YsGyTKUu5Sl2ZdrROVSE4Jf1xcOnXq1 GAHC1ho4Xm7qwRCd/kqZ6PvjukwOJq4wdJJcGjfbiMLq7i2MWX+QVV+/ X-Gm-Gg: AZuq6aKp1Un17D30fB07YFrZ/dXe+Ue72A5RFJhF0IEhW0FgQ4/1kbKEVnvDtPFQPea dTnxAZjs93PgarJsWKeQSOtjqafUcoDfyhW9pmcwgpD+P158xQxCizutza7UgRAmJOkraSUkwsa d6NA8Rdr9Mk4vWSn3DfPUEXR/6RL19IZIzzmsHm/mz0WItWn7clTtTI1umxzm78RHD2gRd9SRQ2 6UWn/HHGOtIu1ODgG/ErZr+UtowxsmmxFPwNFwuQ77QHGroBI7jU7GGYPWvb0kFuxmaCn4411Z1 NgsXtiEqnRE/d8PupN27xLtCCLcZZ9xFD/GZ6L9om4xAQ7kn9EeTacfidAoK6eBK0uGoXDCGBhw BEIFHHnK2x+Mlrja5BU24dm5SPaWZRZXCtENYPkNLo2PAmbj5PrRtVAVhv2TOhZlqN4Y5U55ej/ 6Zyigj8+GohUx3SGe4mxq83Khvjg== X-Received: by 2002:a05:690c:c50e:b0:796:3079:a88 with SMTP id 00721157ae682-797aa905601mr53078187b3.16.1771178464259; Sun, 15 Feb 2026 10:01:04 -0800 (PST) Received: from [192.168.0.40] ([79.133.247.80]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7966c1a8222sm94305827b3.23.2026.02.15.10.00.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Feb 2026 10:01:03 -0800 (PST) Message-ID: <38dca0a1-b5a7-45e4-845d-b6bb53203fcb@gmail.com> Date: Sun, 15 Feb 2026 20:00:52 +0200 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/2] dt-bindings: iio: light: vcnl4000: add Capella CM36686 and CM36672P To: Jonathan Cameron , David Lechner Cc: Krzysztof Kozlowski , =?UTF-8?Q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Meerwald , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org References: <20260212-cm36686-v4-0-8f587d4a72bf@gmail.com> <20260212-cm36686-v4-1-8f587d4a72bf@gmail.com> <20260213-unyielding-pistachio-ape-deda74@quoll> <3a20c906-647c-458f-a118-c7927495e7ef@gmail.com> <8fb27a7a-82dc-443b-bcc4-21007783fc54@kernel.org> <880ddcad-a92e-43bb-ad5c-d6f2f353d182@baylibre.com> <20260215174901.11f6fd6a@jic23-huawei> From: Erikas Bitovtas Content-Language: en-US In-Reply-To: <20260215174901.11f6fd6a@jic23-huawei> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/15/26 7:49 PM, Jonathan Cameron wrote: > On Sat, 14 Feb 2026 10:44:23 -0600 > David Lechner wrote: > >> On 2/13/26 2:56 AM, Erikas Bitovtas wrote: >>> >>> >>> On 2/13/26 10:51 AM, Krzysztof Kozlowski wrote: >>>> On 13/02/2026 09:29, Erikas Bitovtas wrote: >>>>>>> Signed-off-by: Erikas Bitovtas >>>>>>> --- >>>>>>> .../devicetree/bindings/iio/light/vishay,vcnl4000.yaml | 17 +++++++++++------ >>>>>>> 1 file changed, 11 insertions(+), 6 deletions(-) >>>>>>> >>>>>>> diff --git a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml >>>>>>> index 4d1a225e8868..2ba4d5de4ec4 100644 >>>>>>> --- a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml >>>>>>> +++ b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml >>>>>>> @@ -18,12 +18,17 @@ allOf: >>>>>>> >>>>>>> properties: >>>>>>> compatible: >>>>>>> - enum: >>>>>>> - - vishay,vcnl4000 >>>>>>> - - vishay,vcnl4010 >>>>>>> - - vishay,vcnl4020 >>>>>>> - - vishay,vcnl4040 >>>>>>> - - vishay,vcnl4200 >>>>>>> + oneOf: >>>>>>> + - enum: >>>>>>> + - capella,cm36672p >>>>>> >>>>>> CM36672P is compatible with CM36686, but this is not expressed. >>>>>> Confusing commit msg and code. >>>>> >>>>> For CM36672P we create a dedicated compatible because it is a >>>>> proximity-only sensor which has the same proximity sensor configuration, >>>>> but ambient light sensor registers are missing (reserved). >>>> >>>> I don't understand this. You just wrote "fully compatible with CM36686" >>>> and now you imply that not. >>>> >>>> Decide. >>>> >>> It is not. CM36672P supports only a subset of CM36686 features, in >>> particular the proximity sensor. That is what I meant initially. >>> I am sorry if the previous phrasing caused any confusion. >> >> But CM36686 is fully compatible with CM36672P, right? > > I'd be clear in this discussion that the P version is a subset. > So it's very much one way compatibility (your ordering below reflects > that right) > As I said, only proximity register fields are compatible between CM36672P and CM36686. CM36672P lacks ambient light sensing capabilities. I am not sure if CM36672P should fall back to VCNL4040, or the other way around. >> >> So this would make sense? >> >> - items: >> - const: capella,cm36686 >> - const: vishay,vcnl4040 >> - const: capella,cm36686p > > I'm not sure we can do that now given we'd also need the option > of vcnl4040 falling back to cm36686p for it to feel logical and > retrofitting fallbacks is a bit odd. > > Jonathan > To clarify, there is no such device as CM36686P. I suppose this is supposed to be CM36672P here?