Path: blob/master/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml
26309 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- Alexandru Tachici <alexandru.tachici@analog.com>1112description: |13Bindings for the Analog Devices AD5770R current DAC device. Datasheet can be14found here:15https://www.analog.com/media/en/technical-documentation/data-sheets/AD5770R.pdf1617properties:18compatible:19enum:20- adi,ad5770r2122reg:23maxItems: 12425avdd-supply:26description:27AVdd voltage supply. Represents two different supplies in the datasheet28that are in fact the same.2930iovdd-supply:31description:32Voltage supply for the chip interface.3334vref-supply:35description: Specify the voltage of the external reference used.36Available reference options are 1.25 V or 2.5 V. If no37external reference declared then the device will use the38internal reference of 1.25 V.3940adi,external-resistor:41description: Specify if an external 2.5k ohm resistor is used. If not42specified the device will use an internal 2.5k ohm resistor.43The precision resistor is used for reference current generation.44type: boolean4546reset-gpios:47description: GPIO spec for the RESET pin. If specified, it will be48asserted during driver probe.49maxItems: 15051'#address-cells':52const: 15354'#size-cells':55const: 05657channel@0:58description: Represents an external channel which are59connected to the DAC. Channel 0 can act both as a current60source and sink.61type: object62additionalProperties: false6364properties:65reg:66description: This represents the channel number.67const: 06869adi,range-microamp:70description: Output range of the channel.71oneOf:72- items:73- const: 074- const: 30000075- items:76- const: -6000077- const: 078- items:79- const: -6000080- const: 3000008182channel@1:83description: Represents an external channel which are84connected to the DAC.85type: object86additionalProperties: false8788properties:89reg:90description: This represents the channel number.91const: 19293adi,range-microamp:94description: Output range of the channel.95items:96- const: 097- enum: [140000, 250000]9899channel@2:100description: Represents an external channel which are101connected to the DAC.102type: object103additionalProperties: false104105properties:106reg:107description: This represents the channel number.108const: 2109110adi,range-microamp:111description: Output range of the channel.112items:113- const: 0114- enum: [55000, 150000]115116patternProperties:117"^channel@([3-5])$":118type: object119additionalProperties: false120description: Represents the external channels which are connected to the DAC.121properties:122reg:123description: This represents the channel number.124minimum: 3125maximum: 5126127adi,range-microamp:128description: Output range of the channel.129items:130- const: 0131- enum: [45000, 100000]132133required:134- reg135- channel@0136- channel@1137- channel@2138- channel@3139- channel@4140- channel@5141142allOf:143- $ref: /schemas/spi/spi-peripheral-props.yaml#144145unevaluatedProperties: false146147examples:148- |149spi {150#address-cells = <1>;151#size-cells = <0>;152153ad5770r@0 {154compatible = "adi,ad5770r";155reg = <0>;156spi-max-frequency = <1000000>;157vref-supply = <&vref>;158adi,external-resistor;159reset-gpios = <&gpio 22 0>;160#address-cells = <1>;161#size-cells = <0>;162163channel@0 {164reg = <0>;165adi,range-microamp = <0 300000>;166};167168channel@1 {169reg = <1>;170adi,range-microamp = <0 140000>;171};172173channel@2 {174reg = <2>;175adi,range-microamp = <0 55000>;176};177178channel@3 {179reg = <3>;180adi,range-microamp = <0 45000>;181};182183channel@4 {184reg = <4>;185adi,range-microamp = <0 45000>;186};187188channel@5 {189reg = <5>;190adi,range-microamp = <0 45000>;191};192};193};194...195196197