[PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor

Siratul Islam posted 2 patches 1 week, 1 day ago
There is a newer version of this series
[PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Siratul Islam 1 week, 1 day ago
Add device tree binding documentation for the STMicroelectronics
VL53L1X Time-of-Flight ranging sensor connected via I2C.

Make vdd-supply required. The device requires power to operate
and the property should have been required from the start.

Signed-off-by: Siratul Islam <email@sirat.me>
---
 .../bindings/iio/proximity/st,vl53l0x.yaml          | 13 ++++++++++---
 MAINTAINERS                                         |  6 ++++++
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml b/Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml
index 322befc41de6..09102310abc3 100644
--- a/Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml
+++ b/Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml
@@ -4,14 +4,17 @@
 $id: http://devicetree.org/schemas/iio/proximity/st,vl53l0x.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: ST VL53L0X ToF ranging sensor
+title: ST VL53L0X/VL53L1X ToF ranging sensor
 
 maintainers:
   - Song Qiang <songqiang1304521@gmail.com>
+  - Siratul Islam <email@sirat.me>
 
 properties:
   compatible:
-    const: st,vl53l0x
+    enum:
+      - st,vl53l0x
+      - st,vl53l1x
 
   reg:
     maxItems: 1
@@ -21,12 +24,15 @@ properties:
 
   reset-gpios:
     maxItems: 1
+    description:
+      Phandle to the XSHUT GPIO. Used for hardware reset.
 
   vdd-supply: true
 
 required:
   - compatible
   - reg
+  - vdd-supply
 
 additionalProperties: false
 
@@ -38,8 +44,9 @@ examples:
         #size-cells = <0>;
 
         proximity@29 {
-            compatible = "st,vl53l0x";
+            compatible = "st,vl53l1x";
             reg = <0x29>;
+            vdd-supply = <&reg_3v3>;
             interrupt-parent = <&gpio>;
             interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
         };
diff --git a/MAINTAINERS b/MAINTAINERS
index 61bf550fd37c..a142a97be4cb 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25093,6 +25093,12 @@ S:	Maintained
 F:	Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml
 F:	drivers/iio/proximity/vl53l0x-i2c.c
 
+ST VL53L1X ToF RANGER(I2C) IIO DRIVER
+M:	Siratul Islam <email@sirat.me>
+L:	linux-iio@vger.kernel.org
+S:	Maintained
+F:	Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml
+
 STABLE BRANCH
 M:	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 M:	Sasha Levin <sashal@kernel.org>
-- 
2.53.0
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Krzysztof Kozlowski 1 week, 1 day ago
On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:
> Add device tree binding documentation for the STMicroelectronics
> VL53L1X Time-of-Flight ranging sensor connected via I2C.
> 
> Make vdd-supply required. The device requires power to operate
> and the property should have been required from the start.

That's ABI break and device for many years was working fine, so this
should not be changed.

Best regards,
Krzysztof
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Sirat 1 week, 1 day ago
On Wed, Mar 25, 2026 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:
> > Add device tree binding documentation for the STMicroelectronics
> > VL53L1X Time-of-Flight ranging sensor connected via I2C.
> >
> > Make vdd-supply required. The device requires power to operate
> > and the property should have been required from the start.
>
> That's ABI break and device for many years was working fine, so this
> should not be changed.
>
Jonathan and David asked that vdd-supply be made required. I feel like
there is a conflict here that I am not able to resolve myself.

What I think about it is the binding does not correctly describe the
hardware and we should consider this a bug and fix it.
The driver worked because of a fallback mechanism (dummy/fake
regulator) and not because power was optional.

But I am willing to follow whatever consensus is agreed upon.

Thanks,
Sirat
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Krzysztof Kozlowski 1 week, 1 day ago
On 25/03/2026 09:48, Sirat wrote:
> On Wed, Mar 25, 2026 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>
>> On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:
>>> Add device tree binding documentation for the STMicroelectronics
>>> VL53L1X Time-of-Flight ranging sensor connected via I2C.
>>>
>>> Make vdd-supply required. The device requires power to operate
>>> and the property should have been required from the start.
>>
>> That's ABI break and device for many years was working fine, so this
>> should not be changed.
>>
> Jonathan and David asked that vdd-supply be made required. I feel like
> there is a conflict here that I am not able to resolve myself.
> 
> What I think about it is the binding does not correctly describe the
> hardware and we should consider this a bug and fix it.
> The driver worked because of a fallback mechanism (dummy/fake
> regulator) and not because power was optional.
> 


I looked at v6 and v5 and I do not see such comment for binding that
existing device should change ABI. Can you point me to it?

Best regards,
Krzysztof
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Sirat 1 week, 1 day ago
On Wed, Mar 25, 2026 at 2:58 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On 25/03/2026 09:48, Sirat wrote:
> > On Wed, Mar 25, 2026 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
> >>
> >> On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:
> >>> Add device tree binding documentation for the STMicroelectronics
> >>> VL53L1X Time-of-Flight ranging sensor connected via I2C.
> >>>
> >>> Make vdd-supply required. The device requires power to operate
> >>> and the property should have been required from the start.
> >>
> >> That's ABI break and device for many years was working fine, so this
> >> should not be changed.
> >>
> > Jonathan and David asked that vdd-supply be made required. I feel like
> > there is a conflict here that I am not able to resolve myself.
> >
> > What I think about it is the binding does not correctly describe the
> > hardware and we should consider this a bug and fix it.
> > The driver worked because of a fallback mechanism (dummy/fake
> > regulator) and not because power was optional.
> >
>
>
> I looked at v6 and v5 and I do not see such comment for binding that
> existing device should change ABI. Can you point me to it?
>
"Make it required and add a note to the commit message to say why the
requirement should always have been there. Devices tend not to work
with no power." - Jonathan (v3:
https://lore.kernel.org/linux-iio/20260322115704.10b2e0d4@jic23-huawei)

"No, bindings should not depend on driver implementation." - David
(When I asked if I should  drop the hard requirement in the binding,
v6: https://lore.kernel.org/linux-iio/55e92148-b5de-4fb8-af0b-9476235341bc@baylibre.com/)

"From the point of view of the devicetree, it doesn't matter what the
driver does. It matters that the chip can't work without power. ;-)" -
David (v1: https://lore.kernel.org/linux-iio/d0ec6a2f-6d30-4774-8950-15dd3c4b020b@baylibre.com)

I'm not sure if this is the correct way to quote. But I have added the links.

Thanks,
Sirat
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Jonathan Cameron 1 week, 1 day ago
On Wed, 25 Mar 2026 15:18:05 +0600
Sirat <email@sirat.me> wrote:

> On Wed, Mar 25, 2026 at 2:58 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
> >
> > On 25/03/2026 09:48, Sirat wrote:  
> > > On Wed, Mar 25, 2026 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:  
> > >>
> > >> On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:  
> > >>> Add device tree binding documentation for the STMicroelectronics
> > >>> VL53L1X Time-of-Flight ranging sensor connected via I2C.
> > >>>
> > >>> Make vdd-supply required. The device requires power to operate
> > >>> and the property should have been required from the start.  
> > >>
> > >> That's ABI break and device for many years was working fine, so this
> > >> should not be changed.
> > >>  
> > > Jonathan and David asked that vdd-supply be made required. I feel like
> > > there is a conflict here that I am not able to resolve myself.
> > >
> > > What I think about it is the binding does not correctly describe the
> > > hardware and we should consider this a bug and fix it.
> > > The driver worked because of a fallback mechanism (dummy/fake
> > > regulator) and not because power was optional.
> > >  
> >
> >
> > I looked at v6 and v5 and I do not see such comment for binding that
> > existing device should change ABI. Can you point me to it?
> >  
> "Make it required and add a note to the commit message to say why the
> requirement should always have been there. Devices tend not to work
> with no power." - Jonathan (v3:
> https://lore.kernel.org/linux-iio/20260322115704.10b2e0d4@jic23-huawei)
> 
> "No, bindings should not depend on driver implementation." - David
> (When I asked if I should  drop the hard requirement in the binding,
> v6: https://lore.kernel.org/linux-iio/55e92148-b5de-4fb8-af0b-9476235341bc@baylibre.com/)
> 
> "From the point of view of the devicetree, it doesn't matter what the
> driver does. It matters that the chip can't work without power. ;-)" -
> David (v1: https://lore.kernel.org/linux-iio/d0ec6a2f-6d30-4774-8950-15dd3c4b020b@baylibre.com)
> 
> I'm not sure if this is the correct way to quote. But I have added the links.

This came up a few years back - though I doubt I can track down the
exact discussion however.

From a Linux point of view we are breaking binding checks only if the
supply (that should always have been there as chips tend not to work
well without power) is not present.  We absolutely have to
keep the driver running whether or not the supply is specified.
Do other DT users provide such a constraint? I've no idea.

If the DT maintainer preference is leave it not required (perhaps
with a comment saying new users of the binding should supply it)
then that's fine by me. I'll keep it in mind for future similar changes.

Thanks,

Jonathan

> 
> Thanks,
> Sirat
> 
> 
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Krzysztof Kozlowski 1 week, 1 day ago
On 25/03/2026 14:38, Jonathan Cameron wrote:
> On Wed, 25 Mar 2026 15:18:05 +0600
> Sirat <email@sirat.me> wrote:
> 
>> On Wed, Mar 25, 2026 at 2:58 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>>
>>> On 25/03/2026 09:48, Sirat wrote:  
>>>> On Wed, Mar 25, 2026 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:  
>>>>>
>>>>> On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:  
>>>>>> Add device tree binding documentation for the STMicroelectronics
>>>>>> VL53L1X Time-of-Flight ranging sensor connected via I2C.
>>>>>>
>>>>>> Make vdd-supply required. The device requires power to operate
>>>>>> and the property should have been required from the start.  
>>>>>
>>>>> That's ABI break and device for many years was working fine, so this
>>>>> should not be changed.
>>>>>  
>>>> Jonathan and David asked that vdd-supply be made required. I feel like
>>>> there is a conflict here that I am not able to resolve myself.
>>>>
>>>> What I think about it is the binding does not correctly describe the
>>>> hardware and we should consider this a bug and fix it.
>>>> The driver worked because of a fallback mechanism (dummy/fake
>>>> regulator) and not because power was optional.
>>>>  
>>>
>>>
>>> I looked at v6 and v5 and I do not see such comment for binding that
>>> existing device should change ABI. Can you point me to it?
>>>  
>> "Make it required and add a note to the commit message to say why the
>> requirement should always have been there. Devices tend not to work
>> with no power." - Jonathan (v3:
>> https://lore.kernel.org/linux-iio/20260322115704.10b2e0d4@jic23-huawei)
>>
>> "No, bindings should not depend on driver implementation." - David
>> (When I asked if I should  drop the hard requirement in the binding,
>> v6: https://lore.kernel.org/linux-iio/55e92148-b5de-4fb8-af0b-9476235341bc@baylibre.com/)
>>
>> "From the point of view of the devicetree, it doesn't matter what the
>> driver does. It matters that the chip can't work without power. ;-)" -
>> David (v1: https://lore.kernel.org/linux-iio/d0ec6a2f-6d30-4774-8950-15dd3c4b020b@baylibre.com)
>>
>> I'm not sure if this is the correct way to quote. But I have added the links.
> 
> This came up a few years back - though I doubt I can track down the
> exact discussion however.
> 
> From a Linux point of view we are breaking binding checks only if the
> supply (that should always have been there as chips tend not to work
> well without power) is not present.  We absolutely have to
> keep the driver running whether or not the supply is specified.
> Do other DT users provide such a constraint? I've no idea.
> 
> If the DT maintainer preference is leave it not required (perhaps
> with a comment saying new users of the binding should supply it)
> then that's fine by me. I'll keep it in mind for future similar changes.

If this was other ABI, e.g. clock, then answer would be - do not require
it, because that's ABI break. Therefore I would stick to that also to
regulators. Once Rob also expressed such thoughts, although noting that
it is not that big deal.

New device in this binding of course should require the supply.

Best regards,
Krzysztof
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Jonathan Cameron 1 week, 1 day ago
On Wed, 25 Mar 2026 14:44:13 +0100
Krzysztof Kozlowski <krzk@kernel.org> wrote:

> On 25/03/2026 14:38, Jonathan Cameron wrote:
> > On Wed, 25 Mar 2026 15:18:05 +0600
> > Sirat <email@sirat.me> wrote:
> >   
> >> On Wed, Mar 25, 2026 at 2:58 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:  
> >>>
> >>> On 25/03/2026 09:48, Sirat wrote:    
> >>>> On Wed, Mar 25, 2026 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:    
> >>>>>
> >>>>> On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:    
> >>>>>> Add device tree binding documentation for the STMicroelectronics
> >>>>>> VL53L1X Time-of-Flight ranging sensor connected via I2C.
> >>>>>>
> >>>>>> Make vdd-supply required. The device requires power to operate
> >>>>>> and the property should have been required from the start.    
> >>>>>
> >>>>> That's ABI break and device for many years was working fine, so this
> >>>>> should not be changed.
> >>>>>    
> >>>> Jonathan and David asked that vdd-supply be made required. I feel like
> >>>> there is a conflict here that I am not able to resolve myself.
> >>>>
> >>>> What I think about it is the binding does not correctly describe the
> >>>> hardware and we should consider this a bug and fix it.
> >>>> The driver worked because of a fallback mechanism (dummy/fake
> >>>> regulator) and not because power was optional.
> >>>>    
> >>>
> >>>
> >>> I looked at v6 and v5 and I do not see such comment for binding that
> >>> existing device should change ABI. Can you point me to it?
> >>>    
> >> "Make it required and add a note to the commit message to say why the
> >> requirement should always have been there. Devices tend not to work
> >> with no power." - Jonathan (v3:
> >> https://lore.kernel.org/linux-iio/20260322115704.10b2e0d4@jic23-huawei)
> >>
> >> "No, bindings should not depend on driver implementation." - David
> >> (When I asked if I should  drop the hard requirement in the binding,
> >> v6: https://lore.kernel.org/linux-iio/55e92148-b5de-4fb8-af0b-9476235341bc@baylibre.com/)
> >>
> >> "From the point of view of the devicetree, it doesn't matter what the
> >> driver does. It matters that the chip can't work without power. ;-)" -
> >> David (v1: https://lore.kernel.org/linux-iio/d0ec6a2f-6d30-4774-8950-15dd3c4b020b@baylibre.com)
> >>
> >> I'm not sure if this is the correct way to quote. But I have added the links.  
> > 
> > This came up a few years back - though I doubt I can track down the
> > exact discussion however.
> > 
> > From a Linux point of view we are breaking binding checks only if the
> > supply (that should always have been there as chips tend not to work
> > well without power) is not present.  We absolutely have to
> > keep the driver running whether or not the supply is specified.
> > Do other DT users provide such a constraint? I've no idea.
> > 
> > If the DT maintainer preference is leave it not required (perhaps
> > with a comment saying new users of the binding should supply it)
> > then that's fine by me. I'll keep it in mind for future similar changes.  
> 
> If this was other ABI, e.g. clock, then answer would be - do not require
> it, because that's ABI break. Therefore I would stick to that also to
> regulators. Once Rob also expressed such thoughts, although noting that
> it is not that big deal.
> 
> New device in this binding of course should require the supply.
Seems my memory was less than perfect on this : 
https://lore.kernel.org/linux-iio/20241119140409.GA1093349-robh@kernel.org/#t

Rob expressed that we are inconsistent on this, but he'd rather not
have regulators as a special case.

So let's only make this required for the new device. 

Thanks,

J

> 
> Best regards,
> Krzysztof
> 
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Sirat 1 week, 1 day ago
On Wed, Mar 25, 2026 at 8:06 PM Jonathan Cameron
<jonathan.cameron@huawei.com> wrote:
>
> On Wed, 25 Mar 2026 14:44:13 +0100
> Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> > On 25/03/2026 14:38, Jonathan Cameron wrote:
> > > On Wed, 25 Mar 2026 15:18:05 +0600
> > > Sirat <email@sirat.me> wrote:
> > >
> > >> On Wed, Mar 25, 2026 at 2:58 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
> > >>>
> > >>> On 25/03/2026 09:48, Sirat wrote:
> > >>>> On Wed, Mar 25, 2026 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
> > >>>>>
> > >>>>> On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:
> > >>>>>> Add device tree binding documentation for the STMicroelectronics
> > >>>>>> VL53L1X Time-of-Flight ranging sensor connected via I2C.
> > >>>>>>
> > >>>>>> Make vdd-supply required. The device requires power to operate
> > >>>>>> and the property should have been required from the start.
> > >>>>>
> > >>>>> That's ABI break and device for many years was working fine, so this
> > >>>>> should not be changed.
> > >>>>>
> > >>>> Jonathan and David asked that vdd-supply be made required. I feel like
> > >>>> there is a conflict here that I am not able to resolve myself.
> > >>>>
> > >>>> What I think about it is the binding does not correctly describe the
> > >>>> hardware and we should consider this a bug and fix it.
> > >>>> The driver worked because of a fallback mechanism (dummy/fake
> > >>>> regulator) and not because power was optional.
> > >>>>
> > >>>
> > >>>
> > >>> I looked at v6 and v5 and I do not see such comment for binding that
> > >>> existing device should change ABI. Can you point me to it?
> > >>>
> > >> "Make it required and add a note to the commit message to say why the
> > >> requirement should always have been there. Devices tend not to work
> > >> with no power." - Jonathan (v3:
> > >> https://lore.kernel.org/linux-iio/20260322115704.10b2e0d4@jic23-huawei)
> > >>
> > >> "No, bindings should not depend on driver implementation." - David
> > >> (When I asked if I should  drop the hard requirement in the binding,
> > >> v6: https://lore.kernel.org/linux-iio/55e92148-b5de-4fb8-af0b-9476235341bc@baylibre.com/)
> > >>
> > >> "From the point of view of the devicetree, it doesn't matter what the
> > >> driver does. It matters that the chip can't work without power. ;-)" -
> > >> David (v1: https://lore.kernel.org/linux-iio/d0ec6a2f-6d30-4774-8950-15dd3c4b020b@baylibre.com)
> > >>
> > >> I'm not sure if this is the correct way to quote. But I have added the links.
> > >
> > > This came up a few years back - though I doubt I can track down the
> > > exact discussion however.
> > >
> > > From a Linux point of view we are breaking binding checks only if the
> > > supply (that should always have been there as chips tend not to work
> > > well without power) is not present.  We absolutely have to
> > > keep the driver running whether or not the supply is specified.
> > > Do other DT users provide such a constraint? I've no idea.
> > >
> > > If the DT maintainer preference is leave it not required (perhaps
> > > with a comment saying new users of the binding should supply it)
> > > then that's fine by me. I'll keep it in mind for future similar changes.
> >
> > If this was other ABI, e.g. clock, then answer would be - do not require
> > it, because that's ABI break. Therefore I would stick to that also to
> > regulators. Once Rob also expressed such thoughts, although noting that
> > it is not that big deal.
> >
> > New device in this binding of course should require the supply.
> Seems my memory was less than perfect on this :
> https://lore.kernel.org/linux-iio/20241119140409.GA1093349-robh@kernel.org/#t
>
> Rob expressed that we are inconsistent on this, but he'd rather not
> have regulators as a special case.
>
> So let's only make this required for the new device.
>
So since it is a new device, how do I require this? should we split to
a new binding (like I had in v1) and make that required. That would
also allow us to correctly name the xshut pin.

Or do we do the "allOf:" exclusion? In that case, I think it wouldn't
make sense to someone reading the binding without the context of
commit history, as it would imply one of the devices explicitly
doesn't need power.

I'm willing to do whichever is prefered tough and move this forward.
>
>
Thanks,

Sirat
Re: [PATCH v7 1/2] dt-bindings: iio: proximity: add ST VL53L1X ToF sensor
Posted by Jonathan Cameron 1 week, 1 day ago
On Wed, 25 Mar 2026 20:38:48 +0600
Sirat <email@sirat.me> wrote:

> On Wed, Mar 25, 2026 at 8:06 PM Jonathan Cameron
> <jonathan.cameron@huawei.com> wrote:
> >
> > On Wed, 25 Mar 2026 14:44:13 +0100
> > Krzysztof Kozlowski <krzk@kernel.org> wrote:
> >  
> > > On 25/03/2026 14:38, Jonathan Cameron wrote:  
> > > > On Wed, 25 Mar 2026 15:18:05 +0600
> > > > Sirat <email@sirat.me> wrote:
> > > >  
> > > >> On Wed, Mar 25, 2026 at 2:58 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:  
> > > >>>
> > > >>> On 25/03/2026 09:48, Sirat wrote:  
> > > >>>> On Wed, Mar 25, 2026 at 2:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:  
> > > >>>>>
> > > >>>>> On Wed, Mar 25, 2026 at 12:32:22PM +0600, Siratul Islam wrote:  
> > > >>>>>> Add device tree binding documentation for the STMicroelectronics
> > > >>>>>> VL53L1X Time-of-Flight ranging sensor connected via I2C.
> > > >>>>>>
> > > >>>>>> Make vdd-supply required. The device requires power to operate
> > > >>>>>> and the property should have been required from the start.  
> > > >>>>>
> > > >>>>> That's ABI break and device for many years was working fine, so this
> > > >>>>> should not be changed.
> > > >>>>>  
> > > >>>> Jonathan and David asked that vdd-supply be made required. I feel like
> > > >>>> there is a conflict here that I am not able to resolve myself.
> > > >>>>
> > > >>>> What I think about it is the binding does not correctly describe the
> > > >>>> hardware and we should consider this a bug and fix it.
> > > >>>> The driver worked because of a fallback mechanism (dummy/fake
> > > >>>> regulator) and not because power was optional.
> > > >>>>  
> > > >>>
> > > >>>
> > > >>> I looked at v6 and v5 and I do not see such comment for binding that
> > > >>> existing device should change ABI. Can you point me to it?
> > > >>>  
> > > >> "Make it required and add a note to the commit message to say why the
> > > >> requirement should always have been there. Devices tend not to work
> > > >> with no power." - Jonathan (v3:
> > > >> https://lore.kernel.org/linux-iio/20260322115704.10b2e0d4@jic23-huawei)
> > > >>
> > > >> "No, bindings should not depend on driver implementation." - David
> > > >> (When I asked if I should  drop the hard requirement in the binding,
> > > >> v6: https://lore.kernel.org/linux-iio/55e92148-b5de-4fb8-af0b-9476235341bc@baylibre.com/)
> > > >>
> > > >> "From the point of view of the devicetree, it doesn't matter what the
> > > >> driver does. It matters that the chip can't work without power. ;-)" -
> > > >> David (v1: https://lore.kernel.org/linux-iio/d0ec6a2f-6d30-4774-8950-15dd3c4b020b@baylibre.com)
> > > >>
> > > >> I'm not sure if this is the correct way to quote. But I have added the links.  
> > > >
> > > > This came up a few years back - though I doubt I can track down the
> > > > exact discussion however.
> > > >
> > > > From a Linux point of view we are breaking binding checks only if the
> > > > supply (that should always have been there as chips tend not to work
> > > > well without power) is not present.  We absolutely have to
> > > > keep the driver running whether or not the supply is specified.
> > > > Do other DT users provide such a constraint? I've no idea.
> > > >
> > > > If the DT maintainer preference is leave it not required (perhaps
> > > > with a comment saying new users of the binding should supply it)
> > > > then that's fine by me. I'll keep it in mind for future similar changes.  
> > >
> > > If this was other ABI, e.g. clock, then answer would be - do not require
> > > it, because that's ABI break. Therefore I would stick to that also to
> > > regulators. Once Rob also expressed such thoughts, although noting that
> > > it is not that big deal.
> > >
> > > New device in this binding of course should require the supply.  
> > Seems my memory was less than perfect on this :
> > https://lore.kernel.org/linux-iio/20241119140409.GA1093349-robh@kernel.org/#t
> >
> > Rob expressed that we are inconsistent on this, but he'd rather not
> > have regulators as a special case.
> >
> > So let's only make this required for the new device.
> >  
> So since it is a new device, how do I require this? should we split to
> a new binding (like I had in v1) and make that required. That would
> also allow us to correctly name the xshut pin.
> 
> Or do we do the "allOf:" exclusion? In that case, I think it wouldn't
> make sense to someone reading the binding without the context of
> commit history, as it would imply one of the devices explicitly
> doesn't need power.
This + add a comment that it's only not required for other devices
for backwards compatibility reasons.

> 
> I'm willing to do whichever is prefered tough and move this forward.
> >
> >  
> Thanks,
> 
> Sirat