|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +%YAML 1.2 |
| 3 | +--- |
| 4 | +$id: http://devicetree.org/schemas/iio/dac/adi,ad5706r.yaml# |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | + |
| 7 | +title: Analog Devices AD5706R 4-Channel Current Output DAC |
| 8 | + |
| 9 | +maintainers: |
| 10 | + - Alexis Czezar Torreno <alexisczezar.torreno@analog.com> |
| 11 | + |
| 12 | +description: | |
| 13 | + The AD5706R is a 4-channel, 16-bit resolution, current output |
| 14 | + digital-to-analog converter (DAC) with programmable output current |
| 15 | + ranges (50mA, 150mA, 200mA, 300mA), an integrated 2.5V voltage |
| 16 | + reference, and load DAC, A/B toggle, and dither functions. |
| 17 | +
|
| 18 | + Datasheet: |
| 19 | + https://www.analog.com/en/products/ad5706r.html |
| 20 | +
|
| 21 | +properties: |
| 22 | + compatible: |
| 23 | + enum: |
| 24 | + - adi,ad5706r |
| 25 | + |
| 26 | + reg: |
| 27 | + maxItems: 1 |
| 28 | + |
| 29 | + avdd-supply: |
| 30 | + description: Analog power supply (2.9V to 3.6V). |
| 31 | + |
| 32 | + iovdd-supply: |
| 33 | + description: Logic power supply (1.14V to 1.89V). |
| 34 | + |
| 35 | + pvdd0-supply: |
| 36 | + description: Power supply for IDAC0 channel (1.65V to AVDD). |
| 37 | + |
| 38 | + pvdd1-supply: |
| 39 | + description: Power supply for IDAC1 channel (1.65V to AVDD). |
| 40 | + |
| 41 | + pvdd2-supply: |
| 42 | + description: Power supply for IDAC2 channel (1.65V to AVDD). |
| 43 | + |
| 44 | + pvdd3-supply: |
| 45 | + description: Power supply for IDAC3 channel (1.65V to AVDD). |
| 46 | + |
| 47 | + vref-supply: |
| 48 | + description: |
| 49 | + Optional external 2.5V voltage reference. If not provided, the |
| 50 | + internal 2.5V reference is used. |
| 51 | + |
| 52 | + pwms: |
| 53 | + maxItems: 1 |
| 54 | + description: |
| 55 | + Optional PWM connected to the LDAC/TGP/DCK pin for hardware |
| 56 | + triggered DAC updates, toggle, or dither clock generation. |
| 57 | + |
| 58 | + reset-gpios: |
| 59 | + maxItems: 1 |
| 60 | + description: |
| 61 | + GPIO connected to the active low RESET pin. If not provided, |
| 62 | + software reset is used. |
| 63 | + |
| 64 | + enable-gpios: |
| 65 | + maxItems: 1 |
| 66 | + description: |
| 67 | + GPIO connected to the active low OUT_EN pin. Controls whether |
| 68 | + the current outputs are enabled or in high-Z/ground state. |
| 69 | + |
| 70 | +required: |
| 71 | + - compatible |
| 72 | + - reg |
| 73 | + - avdd-supply |
| 74 | + - iovdd-supply |
| 75 | + |
| 76 | +allOf: |
| 77 | + - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 78 | + |
| 79 | +unevaluatedProperties: false |
| 80 | + |
| 81 | +examples: |
| 82 | + - | |
| 83 | + #include <dt-bindings/gpio/gpio.h> |
| 84 | +
|
| 85 | + spi { |
| 86 | + #address-cells = <1>; |
| 87 | + #size-cells = <0>; |
| 88 | +
|
| 89 | + dac@0 { |
| 90 | + compatible = "adi,ad5706r"; |
| 91 | + reg = <0>; |
| 92 | + avdd-supply = <&avdd>; |
| 93 | + iovdd-supply = <&iovdd>; |
| 94 | + pvdd0-supply = <&pvdd>; |
| 95 | + pvdd1-supply = <&pvdd>; |
| 96 | + pvdd2-supply = <&pvdd>; |
| 97 | + pvdd3-supply = <&pvdd>; |
| 98 | + vref-supply = <&vref>; |
| 99 | + spi-max-frequency = <50000000>; |
| 100 | + pwms = <&pwm0 0 1000000 0>; |
| 101 | + reset-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
| 102 | + enable-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
| 103 | + }; |
| 104 | + }; |
| 105 | +... |
0 commit comments