brintos

brintos / linux-shallow public Read only

0
0
Text · 4.6 KiB · 82b0eed Raw
196 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2# Copyright 2020 Analog Devices Inc.3%YAML 1.24---5$id: http://devicetree.org/schemas/iio/dac/adi,ad5770r.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Analog Devices AD5770R DAC device driver9 10maintainers:11  - Alexandru Tachici <alexandru.tachici@analog.com>12 13description: |14  Bindings for the Analog Devices AD5770R current DAC device. Datasheet can be15  found here:16    https://www.analog.com/media/en/technical-documentation/data-sheets/AD5770R.pdf17 18properties:19  compatible:20    enum:21      - adi,ad5770r22 23  reg:24    maxItems: 125 26  avdd-supply:27    description:28      AVdd voltage supply. Represents two different supplies in the datasheet29      that are in fact the same.30 31  iovdd-supply:32    description:33      Voltage supply for the chip interface.34 35  vref-supply:36    description: Specify the voltage of the external reference used.37      Available reference options are 1.25 V or 2.5 V. If no38      external reference declared then the device will use the39      internal reference of 1.25 V.40 41  adi,external-resistor:42    description: Specify if an external 2.5k ohm resistor is used. If not43      specified the device will use an internal 2.5k ohm resistor.44      The precision resistor is used for reference current generation.45    type: boolean46 47  reset-gpios:48    description: GPIO spec for the RESET pin. If specified, it will be49      asserted during driver probe.50    maxItems: 151 52  '#address-cells':53    const: 154 55  '#size-cells':56    const: 057 58  channel@0:59    description: Represents an external channel which are60      connected to the DAC. Channel 0 can act both as a current61      source and sink.62    type: object63    additionalProperties: false64 65    properties:66      reg:67        description: This represents the channel number.68        const: 069 70      adi,range-microamp:71        description: Output range of the channel.72        oneOf:73          - items:74              - const: 075              - const: 30000076          - items:77              - const: -6000078              - const: 079          - items:80              - const: -6000081              - const: 30000082 83  channel@1:84    description: Represents an external channel which are85      connected to the DAC.86    type: object87    additionalProperties: false88 89    properties:90      reg:91        description: This represents the channel number.92        const: 193 94      adi,range-microamp:95        description: Output range of the channel.96        items:97          - const: 098          - enum: [140000, 250000]99 100  channel@2:101    description: Represents an external channel which are102      connected to the DAC.103    type: object104    additionalProperties: false105 106    properties:107      reg:108        description: This represents the channel number.109        const: 2110 111      adi,range-microamp:112        description: Output range of the channel.113        items:114          - const: 0115          - enum: [55000, 150000]116 117patternProperties:118  "^channel@([3-5])$":119    type: object120    additionalProperties: false121    description: Represents the external channels which are connected to the DAC.122    properties:123      reg:124        description: This represents the channel number.125        minimum: 3126        maximum: 5127 128      adi,range-microamp:129        description: Output range of the channel.130        items:131          - const: 0132          - enum: [45000, 100000]133 134required:135  - reg136  - channel@0137  - channel@1138  - channel@2139  - channel@3140  - channel@4141  - channel@5142 143allOf:144  - $ref: /schemas/spi/spi-peripheral-props.yaml#145 146unevaluatedProperties: false147 148examples:149  - |150    spi {151        #address-cells = <1>;152        #size-cells = <0>;153 154        ad5770r@0 {155            compatible = "adi,ad5770r";156            reg = <0>;157            spi-max-frequency = <1000000>;158            vref-supply = <&vref>;159            adi,external-resistor;160            reset-gpios = <&gpio 22 0>;161            #address-cells = <1>;162            #size-cells = <0>;163 164            channel@0 {165                reg = <0>;166                adi,range-microamp = <0 300000>;167            };168 169            channel@1 {170                reg = <1>;171                adi,range-microamp = <0 140000>;172            };173 174            channel@2 {175                reg = <2>;176                adi,range-microamp = <0 55000>;177            };178 179            channel@3 {180                reg = <3>;181                adi,range-microamp = <0 45000>;182            };183 184            channel@4 {185                reg = <4>;186                adi,range-microamp = <0 45000>;187            };188 189            channel@5 {190                reg = <5>;191                adi,range-microamp = <0 45000>;192            };193        };194    };195...196