Path: blob/main/sys/contrib/device-tree/Bindings/iio/dac/ad5758.txt
48525 views
Analog Devices AD5758 DAC device driver12Required properties for the AD5758:3- compatible: Must be "adi,ad5758"4- reg: SPI chip select number for the device5- spi-max-frequency: Max SPI frequency to use (< 50000000)6- spi-cpha: is the only mode that is supported78Required properties:910- adi,dc-dc-mode: Mode of operation of the dc-to-dc converter11Dynamic Power Control (DPC)12In this mode, the AD5758 circuitry senses the output13voltage and dynamically regulates the supply voltage,14VDPC+, to meet compliance requirements plus an optimized15headroom voltage for the output buffer.1617Programmable Power Control (PPC)18In this mode, the VDPC+ voltage is user-programmable to19a fixed level that needs to accommodate the maximum output20load required.2122The output of the DAC core is either converted to a23current or voltage output at the VIOUT pin. Only one mode24can be enabled at any one time.2526The following values are currently supported:27* 1: DPC current mode28* 2: DPC voltage mode29* 3: PPC current mode3031Depending on the selected output mode (voltage or current) one of the32two properties must33be present:3435- adi,range-microvolt: Voltage output range36The array of voltage output ranges must contain two fields:37* <0 5000000>: 0 V to 5 V voltage range38* <0 10000000>: 0 V to 10 V voltage range39* <(-5000000) 5000000>: ±5 V voltage range40* <(-10000000) 10000000>: ±10 V voltage range41- adi,range-microamp: Current output range42The array of current output ranges must contain two fields:43* <0 20000>: 0 mA to 20 mA current range44* <0 24000>: 0 mA to 24 mA current range45* <4 24000>: 4 mA to 20 mA current range46* <(-20000) 20000>: ±20 mA current range47* <(-24000) 24000>: ±24 mA current range48* <(-1000) 22000>: −1 mA to +22 mA current range4950Optional properties:5152- reset-gpios : GPIO spec for the RESET pin. If specified, it will be53asserted during driver probe.5455- adi,dc-dc-ilim-microamp: The dc-to-dc converter current limit56The following values are currently supported [uA]:57* 15000058* 20000059* 25000060* 30000061* 35000062* 4000006364- adi,slew-time-us: The time it takes for the output to reach the65full scale [uS]66The supported range is between 133us up to 1023984375us6768AD5758 Example:6970dac@0 {71compatible = "adi,ad5758";72reg = <0>;73spi-max-frequency = <1000000>;74spi-cpha;7576reset-gpios = <&gpio 22 0>;7778adi,dc-dc-mode = <2>;79adi,range-microvolt = <0 10000000>;80adi,dc-dc-ilim-microamp = <200000>;81adi,slew-time-us = <125000>;82};838485