From: Rodrigo Alencar <[email protected]> Add supplies for VDD, VLOGIC and VREF input voltage pins. The vcc-supply property is deprecated, once it does not really exist as none of the devices describe any power input with that name. VCC is also misleading as it sounds like the input power supply, but it is being used as an external voltage reference, which should be called VREF. Certain devices require vref-supply to be available once an internal reference voltage is absent. For correct operation vdd and vlogic supplies are required.
Signed-off-by: Rodrigo Alencar <[email protected]> --- .../devicetree/bindings/iio/dac/adi,ad5696.yaml | 31 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml index 2dcc049f30e9..e5fbaec4adf7 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml @@ -33,9 +33,19 @@ properties: reg: maxItems: 1 + vdd-supply: + description: Input power supply. + + vlogic-supply: + description: Digital power supply. + + vref-supply: + description: + Reference voltage supply. If not supplied the internal reference is used. + vcc-supply: - description: | - The regulator supply for DAC reference voltage. + deprecated: true + description: Use vref-supply instead. reset-gpios: description: Active-low RESET pin to reset the device. @@ -55,8 +65,21 @@ properties: required: - compatible - reg + - vdd-supply + - vlogic-supply allOf: + - if: + properties: + compatible: + contains: + anyOf: + - const: adi,ad5693 + - const: adi,ad5694 + - const: adi,ad5696 + then: + required: + - vref-supply - if: properties: compatible: @@ -83,7 +106,9 @@ examples: ad5696: dac@0 { compatible = "adi,ad5696"; reg = <0>; - vcc-supply = <&dac_vref>; + vdd-supply = <&dac_vdd>; + vlogic-supply = <&dac_vlogic>; + vref-supply = <&dac_vref>; ldac-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; }; -- 2.43.0

