0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/dac/adi,ad5758.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Analog Devices AD5758 DAC
0008
0009 maintainers:
0010 - Michael Hennerich <Michael.Hennerich@analog.com>
0011
0012 properties:
0013 compatible:
0014 const: adi,ad5758
0015
0016 reg:
0017 maxItems: 1
0018
0019 spi-max-frequency: true
0020 spi-cpha: true
0021
0022 adi,dc-dc-mode:
0023 $ref: /schemas/types.yaml#/definitions/uint32
0024 enum: [1, 2, 3]
0025 description: |
0026 Mode of operation of the dc-to-dc converter
0027 Dynamic Power Control (DPC)
0028 In this mode, the AD5758 circuitry senses the output voltage and
0029 dynamically regulates the supply voltage, VDPC+, to meet compliance
0030 requirements plus an optimized headroom voltage for the output buffer.
0031
0032 Programmable Power Control (PPC)
0033 In this mode, the VDPC+ voltage is user-programmable to a fixed level
0034 that needs to accommodate the maximum output load required.
0035
0036 The output of the DAC core is either converted to a current or
0037 voltage output at the VIOUT pin. Only one mode can be enabled at
0038 any one time.
0039
0040 The following values are currently supported:
0041 * 1: DPC current mode
0042 * 2: DPC voltage mode
0043 * 3: PPC current mode
0044
0045 Depending on the selected output mode (voltage or current) one of the
0046 two properties must be present:
0047
0048 adi,range-microvolt:
0049 description: |
0050 Voltage output range specified as <minimum, maximum>
0051 oneOf:
0052 - items:
0053 - const: 0
0054 - enum: [5000000, 10000000]
0055 - items:
0056 - const: -5000000
0057 - const: 5000000
0058 - items:
0059 - const: -10000000
0060 - const: 10000000
0061
0062 adi,range-microamp:
0063 description: |
0064 Current output range specified as <minimum, maximum>
0065 oneOf:
0066 - items:
0067 - const: 0
0068 - enum: [20000, 24000]
0069 - items:
0070 - const: 4
0071 - const: 24000
0072 - items:
0073 - const: -20000
0074 - const: 20000
0075 - items:
0076 - const: -24000
0077 - const: 24000
0078 - items:
0079 - const: -1000
0080 - const: 22000
0081
0082 reset-gpios: true
0083
0084 adi,dc-dc-ilim-microamp:
0085 enum: [150000, 200000, 250000, 300000, 350000, 400000]
0086 description: |
0087 The dc-to-dc converter current limit.
0088
0089 adi,slew-time-us:
0090 description: |
0091 The time it takes for the output to reach the full scale [uS]
0092 minimum: 133
0093 maximum: 1023984375
0094
0095 required:
0096 - compatible
0097 - reg
0098 - spi-cpha
0099 - adi,dc-dc-mode
0100
0101 allOf:
0102 - if:
0103 properties:
0104 adi,dc-dc-mode:
0105 contains:
0106 enum: [1, 3]
0107 then:
0108 properties:
0109 adi,range-microvolt: false
0110 required:
0111 - adi,range-microamp
0112 else:
0113 properties:
0114 adi,range-microamp: false
0115 required:
0116 - adi,range-microvolt
0117
0118 additionalProperties: false
0119
0120 examples:
0121 - |
0122 spi {
0123 #address-cells = <1>;
0124 #size-cells = <0>;
0125
0126 dac@0 {
0127 compatible = "adi,ad5758";
0128 reg = <0>;
0129 spi-max-frequency = <1000000>;
0130 spi-cpha;
0131
0132 reset-gpios = <&gpio 22 0>;
0133
0134 adi,dc-dc-mode = <2>;
0135 adi,range-microvolt = <0 10000000>;
0136 adi,dc-dc-ilim-microamp = <200000>;
0137 adi,slew-time-us = <125000>;
0138 };
0139 };
0140 ...