Re: [PATCH 1/2] dt-bindings: iio: dac: adding support for Microchip MCP47FEB02

From: Jonathan Cameron

Date: Sat Sep 27 2025 - 13:01:05 EST


> > + vref-supply:
> > + description: |
> > + Vref pin is used as a voltage reference when this supply is specified.
> > + Into the datasheet it could be found as a Vref0.
> > + If it does not exists the internal reference will be used.
>
> It looks like there is also the possibility to use V_DD as the reference
> voltage. Not sure the best way to handle that though.

Indeed that's awkward. I suppose a custom property as choice of VDD or internal
reference is unusual and it might be critical to how what is downstream of the DAC
so we can't even do it via userspace _scale control.

I'm lazy so haven't checked the values. If the internal reference is near VDD
it is probably safe enough to just make this a userspace problem if anyone
ever needs it.