# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/dac/adi,ad9739a.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Analog Devices AD9739A RF DAC

maintainers:
  - Dragos Bogdan <dragos.bogdan@analog.com>
  - Nuno Sa <nuno.sa@analog.com>

description: |
  The AD9739A is a 14-bit, 2.5 GSPS high performance RF DACs that are capable
  of synthesizing wideband signals from dc up to 3 GHz.

  https://www.analog.com/media/en/technical-documentation/data-sheets/ad9737a_9739a.pdf

properties:
  compatible:
    enum:
      - adi,ad9739a

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  reset-gpios:
    maxItems: 1

  interrupts:
    maxItems: 1

  vdd-3p3-supply:
    description: 3.3V Digital input supply.

  vdd-supply:
    description: 1.8V Digital input supply.

  vdda-supply:
    description: 3.3V Analog input supply.

  vddc-supply:
    description: 1.8V Clock input supply.

  vref-supply:
    description: Input/Output reference supply.

  io-backends:
    maxItems: 1

  adi,full-scale-microamp:
    description: This property represents the DAC full scale current.
    minimum: 8580
    maximum: 31700
    default: 20000

required:
  - compatible
  - reg
  - clocks
  - io-backends
  - vdd-3p3-supply
  - vdd-supply
  - vdda-supply
  - vddc-supply

allOf:
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

unevaluatedProperties: false

examples:
  - |
    spi {
        #address-cells = <1>;
        #size-cells = <0>;

        dac@0 {
            compatible = "adi,ad9739a";
            reg = <0>;

            clocks = <&dac_clk>;

            io-backends = <&iio_backend>;

            vdd-3p3-supply = <&vdd_3_3>;
            vdd-supply = <&vdd>;
            vdda-supply = <&vdd_3_3>;
            vddc-supply = <&vdd>;
        };
    };
...
