Path: blob/master/Documentation/devicetree/bindings/iio/dac/adi,ad5755.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,ad5755.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD5755 Multi-Channel DAC78maintainers:9- Sean Nyekjaer <sean.nyekjaer@prevas.dk>1011properties:12compatible:13enum:14- adi,ad575515- adi,ad5755-116- adi,ad575717- adi,ad573518- adi,ad57371920reg:21maxItems: 12223spi-cpha:24description: Either this or spi-cpol but not both.25spi-cpol: true2627adi,ext-dc-dc-compenstation-resistor:28$ref: /schemas/types.yaml#/definitions/flag29description:30Set if the hardware have an external resistor and thereby bypasses31the internal compensation resistor.3233adi,dc-dc-phase:34$ref: /schemas/types.yaml#/definitions/uint3235enum: [0, 1, 2, 3]36description: |37Valid values for DC DC Phase control is:380: All dc-to-dc converters clock on the same edge.391: Channel A and Channel B clock on the same edge,40Channel C and Channel D clock on opposite edges.412: Channel A and Channel C clock on the same edge,42Channel B and Channel D clock on opposite edges.433: Channel A, Channel B, Channel C, and Channel D44clock 90 degrees out of phase from each other.4546adi,dc-dc-freq-hz:47enum: [250000, 410000, 650000]4849adi,dc-dc-max-microvolt:50description:51Maximum allowed Vboost voltage supplied by the dc-to-dc converter.52enum: [23000000, 24500000, 27000000, 29500000]5354"#address-cells":55const: 15657"#size-cells":58const: 05960"#io-channel-cells":61const: 16263required:64- compatible65- reg6667patternProperties:68"^channel@[0-7]$":69type: object70description: Child node to describe a channel71properties:72reg:73maxItems: 17475adi,mode:76$ref: /schemas/types.yaml#/definitions/uint3277minimum: 078maximum: 679description: |80Valid values for DAC modes is:810: 0 V to 5 V voltage range.821: 0 V to 10 V voltage range.832: Plus minus 5 V voltage range.843: Plus minus 10 V voltage range.854: 4 mA to 20 mA current range.865: 0 mA to 20 mA current range.876: 0 mA to 24 mA current range.8889adi,ext-current-sense-resistor:90$ref: /schemas/types.yaml#/definitions/flag91description:92Set if the hardware has an external current sense resistor9394adi,enable-voltage-overrange:95$ref: /schemas/types.yaml#/definitions/flag96description: Enable voltage overrange9798adi,slew:99$ref: /schemas/types.yaml#/definitions/uint32-array100description: |101Array of slewrate settings should contain 3 fields:1021: Should be either 0 or 1 in order to enable or disable slewrate.1032: Slew rate update frequency1043: Slew step size105items:106- enum: [0, 1]107- enum: [64000, 32000, 16000, 8000, 4000, 2000, 1000, 500, 250, 125, 64, 32, 16, 8, 4, 0]108- enum: [1, 2, 4, 16, 32, 64, 128, 256]109110required:111- reg112113additionalProperties: false114115oneOf:116- required:117- spi-cpha118- required:119- spi-cpol120121allOf:122- $ref: /schemas/spi/spi-peripheral-props.yaml#123124unevaluatedProperties: false125126examples:127- |128spi {129#address-cells = <1>;130#size-cells = <0>;131132dac@0 {133#address-cells = <1>;134#size-cells = <0>;135compatible = "adi,ad5755";136reg = <0>;137spi-max-frequency = <1000000>;138spi-cpha;139adi,dc-dc-phase = <0>;140adi,dc-dc-freq-hz = <410000>;141adi,dc-dc-max-microvolt = <23000000>;142channel@0 {143reg = <0>;144adi,mode = <4>;145adi,ext-current-sense-resistor;146adi,slew = <0 64000 1>;147};148channel@1 {149reg = <1>;150adi,mode = <4>;151adi,ext-current-sense-resistor;152adi,slew = <0 64000 1>;153};154channel@2 {155reg = <2>;156adi,mode = <4>;157adi,ext-current-sense-resistor;158adi,slew = <0 64000 1>;159};160channel@3 {161reg = <3>;162adi,mode = <4>;163adi,ext-current-sense-resistor;164adi,slew = <0 64000 1>;165};166};167};168...169170171