Path: blob/master/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/dac/adi,ad5758.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD5758 DAC78maintainers:9- Michael Hennerich <Michael.Hennerich@analog.com>1011properties:12compatible:13const: adi,ad57581415reg:16maxItems: 11718spi-cpha: true1920adi,dc-dc-mode:21$ref: /schemas/types.yaml#/definitions/uint3222enum: [1, 2, 3]23description: |24Mode of operation of the dc-to-dc converter25Dynamic Power Control (DPC)26In this mode, the AD5758 circuitry senses the output voltage and27dynamically regulates the supply voltage, VDPC+, to meet compliance28requirements plus an optimized headroom voltage for the output buffer.2930Programmable Power Control (PPC)31In this mode, the VDPC+ voltage is user-programmable to a fixed level32that needs to accommodate the maximum output load required.3334The output of the DAC core is either converted to a current or35voltage output at the VIOUT pin. Only one mode can be enabled at36any one time.3738The following values are currently supported:39* 1: DPC current mode40* 2: DPC voltage mode41* 3: PPC current mode4243Depending on the selected output mode (voltage or current) one of the44two properties must be present:4546adi,range-microvolt:47description: |48Voltage output range specified as <minimum, maximum>49oneOf:50- items:51- const: 052- enum: [5000000, 10000000]53- items:54- const: -500000055- const: 500000056- items:57- const: -1000000058- const: 100000005960adi,range-microamp:61description: |62Current output range specified as <minimum, maximum>63oneOf:64- items:65- const: 066- enum: [20000, 24000]67- items:68- const: 469- const: 2400070- items:71- const: -2000072- const: 2000073- items:74- const: -2400075- const: 2400076- items:77- const: -100078- const: 220007980reset-gpios:81maxItems: 18283adi,dc-dc-ilim-microamp:84enum: [150000, 200000, 250000, 300000, 350000, 400000]85description: |86The dc-to-dc converter current limit.8788adi,slew-time-us:89description: |90The time it takes for the output to reach the full scale [uS]91minimum: 13392maximum: 10239843759394required:95- compatible96- reg97- spi-cpha98- adi,dc-dc-mode99100allOf:101- $ref: /schemas/spi/spi-peripheral-props.yaml#102- if:103properties:104adi,dc-dc-mode:105enum: [1, 3]106then:107properties:108adi,range-microvolt: false109required:110- adi,range-microamp111else:112properties:113adi,range-microamp: false114required:115- adi,range-microvolt116117unevaluatedProperties: false118119examples:120- |121spi {122#address-cells = <1>;123#size-cells = <0>;124125dac@0 {126compatible = "adi,ad5758";127reg = <0>;128spi-max-frequency = <1000000>;129spi-cpha;130131reset-gpios = <&gpio 22 0>;132133adi,dc-dc-mode = <2>;134adi,range-microvolt = <0 10000000>;135adi,dc-dc-ilim-microamp = <200000>;136adi,slew-time-us = <125000>;137};138};139...140141142