Path: blob/master/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml
29539 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1# Copyright 2020 Analog Devices Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/dac/adi,ad5770r.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: Analog Devices AD5770R DAC device driver89maintainers:10- Marcelo Schmitt <marcelo.schmitt@analog.com>11- Nuno Sá <nuno.sa@analog.com>1213description: |14Bindings for the Analog Devices AD5770R current DAC device. Datasheet can be15found here:16https://www.analog.com/media/en/technical-documentation/data-sheets/AD5770R.pdf1718properties:19compatible:20enum:21- adi,ad5770r2223reg:24maxItems: 12526avdd-supply:27description:28AVdd voltage supply. Represents two different supplies in the datasheet29that are in fact the same.3031iovdd-supply:32description:33Voltage supply for the chip interface.3435vref-supply:36description: Specify the voltage of the external reference used.37Available reference options are 1.25 V or 2.5 V. If no38external reference declared then the device will use the39internal reference of 1.25 V.4041adi,external-resistor:42description: Specify if an external 2.5k ohm resistor is used. If not43specified the device will use an internal 2.5k ohm resistor.44The precision resistor is used for reference current generation.45type: boolean4647reset-gpios:48description: GPIO spec for the RESET pin. If specified, it will be49asserted during driver probe.50maxItems: 15152'#address-cells':53const: 15455'#size-cells':56const: 05758channel@0:59description: Represents an external channel which are60connected to the DAC. Channel 0 can act both as a current61source and sink.62type: object63additionalProperties: false6465properties:66reg:67description: This represents the channel number.68const: 06970adi,range-microamp:71description: Output range of the channel.72oneOf:73- items:74- const: 075- const: 30000076- items:77- const: -6000078- const: 079- items:80- const: -6000081- const: 3000008283channel@1:84description: Represents an external channel which are85connected to the DAC.86type: object87additionalProperties: false8889properties:90reg:91description: This represents the channel number.92const: 19394adi,range-microamp:95description: Output range of the channel.96items:97- const: 098- enum: [140000, 250000]99100channel@2:101description: Represents an external channel which are102connected to the DAC.103type: object104additionalProperties: false105106properties:107reg:108description: This represents the channel number.109const: 2110111adi,range-microamp:112description: Output range of the channel.113items:114- const: 0115- enum: [55000, 150000]116117patternProperties:118"^channel@([3-5])$":119type: object120additionalProperties: false121description: Represents the external channels which are connected to the DAC.122properties:123reg:124description: This represents the channel number.125minimum: 3126maximum: 5127128adi,range-microamp:129description: Output range of the channel.130items:131- const: 0132- enum: [45000, 100000]133134required:135- reg136- channel@0137- channel@1138- channel@2139- channel@3140- channel@4141- channel@5142143allOf:144- $ref: /schemas/spi/spi-peripheral-props.yaml#145146unevaluatedProperties: false147148examples:149- |150spi {151#address-cells = <1>;152#size-cells = <0>;153154ad5770r@0 {155compatible = "adi,ad5770r";156reg = <0>;157spi-max-frequency = <1000000>;158vref-supply = <&vref>;159adi,external-resistor;160reset-gpios = <&gpio 22 0>;161#address-cells = <1>;162#size-cells = <0>;163164channel@0 {165reg = <0>;166adi,range-microamp = <0 300000>;167};168169channel@1 {170reg = <1>;171adi,range-microamp = <0 140000>;172};173174channel@2 {175reg = <2>;176adi,range-microamp = <0 55000>;177};178179channel@3 {180reg = <3>;181adi,range-microamp = <0 45000>;182};183184channel@4 {185reg = <4>;186adi,range-microamp = <0 45000>;187};188189channel@5 {190reg = <5>;191adi,range-microamp = <0 45000>;192};193};194};195...196197198