These sensors can accept 2 supplies - one for the sensor and one for IR
LED [1]. Add supply properties for the sensor - 2 for the sensors and
one external, for their I2C bus, to ensure the sensor is powered on
before proceeding with setup.
[1] https://www.vishay.com/docs/84274/vcnl4040.pdf
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
---
Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
index 2ba4d5de4ec4..a1b4c02db246 100644
--- a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
+++ b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
@@ -33,6 +33,10 @@ properties:
interrupts:
maxItems: 1
+ vdd-supply: true
+ vddio-supply: true
+ vled-supply: true
+
reg:
maxItems: 1
@@ -54,6 +58,9 @@ examples:
compatible = "vishay,vcnl4200";
reg = <0x51>;
proximity-near-level = <220>;
+ vdd-supply = <®_vdd>;
+ vddio-supply = <®_vddio>;
+ vled-supply = <®_vled>;
};
};
...
--
2.53.0
On Mon, Mar 16, 2026 at 07:19:45PM +0200, Erikas Bitovtas wrote: > These sensors can accept 2 supplies - one for the sensor and one for IR > LED [1]. Add supply properties for the sensor - 2 for the sensors and > one external, for their I2C bus, to ensure the sensor is powered on > before proceeding with setup. > > [1] https://www.vishay.com/docs/84274/vcnl4040.pdf > > Reviewed-by: David Lechner <dlechner@baylibre.com> > Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com> > --- > Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml > index 2ba4d5de4ec4..a1b4c02db246 100644 > --- a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml > +++ b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml > @@ -33,6 +33,10 @@ properties: > interrupts: > maxItems: 1 > > + vdd-supply: true > + vddio-supply: true > + vled-supply: true Same comments as before, I do not see improvements. Best regards, Krzysztof
On 3/17/26 9:20 AM, Krzysztof Kozlowski wrote: > On Mon, Mar 16, 2026 at 07:19:45PM +0200, Erikas Bitovtas wrote: >> These sensors can accept 2 supplies - one for the sensor and one for IR >> LED [1]. Add supply properties for the sensor - 2 for the sensors and >> one external, for their I2C bus, to ensure the sensor is powered on >> before proceeding with setup. >> >> [1] https://www.vishay.com/docs/84274/vcnl4040.pdf >> >> Reviewed-by: David Lechner <dlechner@baylibre.com> >> Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com> >> --- >> Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml >> index 2ba4d5de4ec4..a1b4c02db246 100644 >> --- a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml >> +++ b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml >> @@ -33,6 +33,10 @@ properties: >> interrupts: >> maxItems: 1 >> >> + vdd-supply: true >> + vddio-supply: true >> + vled-supply: true > > Same comments as before, I do not see improvements. > > Best regards, > Krzysztof > I explained why in v3. The message can be found here: https://lore.kernel.org/linux-iio/cb92bb47-9078-475d-b242-71e3f9181a72@baylibre.com/T/#m6da277894cf5c2b473fbeebd4b7bafc7519ebc26
On 17/03/2026 09:07, Erikas Bitovtas wrote: >>> + vdd-supply: true >>> + vddio-supply: true >>> + vled-supply: true >> >> Same comments as before, I do not see improvements. >> >> Best regards, >> Krzysztof >> > > I explained why in v3. The message can be found here: > https://lore.kernel.org/linux-iio/cb92bb47-9078-475d-b242-71e3f9181a72@baylibre.com/T/#m6da277894cf5c2b473fbeebd4b7bafc7519ebc26 Apologies, I missed that. VDD and VLED are fine, but I2C bus supply is a property of the I2C controller, not the device, therefore please drop VDDIO. Best regards, Krzysztof
On 3/17/26 5:42 PM, Krzysztof Kozlowski wrote: > On 17/03/2026 09:07, Erikas Bitovtas wrote: >>>> + vdd-supply: true >>>> + vddio-supply: true >>>> + vled-supply: true >>> >>> Same comments as before, I do not see improvements. >>> >>> Best regards, >>> Krzysztof >>> >> >> I explained why in v3. The message can be found here: >> https://lore.kernel.org/linux-iio/cb92bb47-9078-475d-b242-71e3f9181a72@baylibre.com/T/#m6da277894cf5c2b473fbeebd4b7bafc7519ebc26 > > Apologies, I missed that. VDD and VLED are fine, but I2C bus supply is a > property of the I2C controller, not the device, therefore please drop VDDIO. > > Best regards, > Krzysztof VDDIO supply is needed for the pull-up resistors for the open drain I2C and interrupt lines. Without them, the device will send spurious interrupts. Such cases are already present in mainline, for example Awinic AW2013 led driver [1]: > there is usually more than just the I2C I/O lines. For AW2013 there is > at least also the open-drain interrupt line. On other ICs there could > also be arbitrary GPIO lines that are used in open-drain mode. Those > are completely unrelated to the I2C controller. > > Do you have any suggestions how to handle the power supply for those? From the looks of it, it was agreed upon to rename the supply from VDDIO to VIO. Has anything changed since then and now there is a better way to represent this relationship? [1]: https://lore.kernel.org/all/ZBoR0DPQ+AufzKHk@gerhold.net/#t
© 2016 - 2026 Red Hat, Inc.