1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/dac/adi,ad5791.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Analog Devices AD5791 and similar DACs 8 9maintainers: 10 - Michael Hennerich <michael.hennerich@analog.com> 11 - Jonathan Cameron <jic23@kernel.org> 12 13properties: 14 15 compatible: 16 enum: 17 - adi,ad5760 18 - adi,ad5780 19 - adi,ad5781 20 - adi,ad5790 21 - adi,ad5791 22 23 reg: 24 maxItems: 1 25 26 vdd-supply: true 27 vss-supply: true 28 29 vcc-supply: 30 description: 31 Supply that powers the chip. 32 33 iovcc-supply: 34 description: 35 Supply for the digital interface. 36 37 vrefp-supply: 38 description: 39 Positive referance input voltage range. From 5v to (vdd - 2.5) 40 41 vrefn-supply: 42 description: 43 Negative referance input voltage range. From (vss + 2.5) to 0. 44 45 adi,rbuf-gain2-en: 46 description: Specify to allow an external amplifier to be connected in a 47 gain of two configuration. 48 type: boolean 49 50 reset-gpios: 51 maxItems: 1 52 53 clear-gpios: 54 maxItems: 1 55 56 ldac-gpios: 57 description: 58 LDAC pin to be used as a hardware trigger to update the DAC channels. 59 maxItems: 1 60 61required: 62 - compatible 63 - reg 64 - vdd-supply 65 - vss-supply 66 - vcc-supply 67 - iovcc-supply 68 - vrefp-supply 69 - vrefn-supply 70 71allOf: 72 - $ref: /schemas/spi/spi-peripheral-props.yaml# 73 74unevaluatedProperties: false 75 76examples: 77 - | 78 #include <dt-bindings/gpio/gpio.h> 79 spi { 80 #address-cells = <1>; 81 #size-cells = <0>; 82 83 dac@0 { 84 compatible = "adi,ad5791"; 85 reg = <0>; 86 vss-supply = <&dac_vss>; 87 vdd-supply = <&dac_vdd>; 88 vcc-supply = <&dac_vcc>; 89 iovcc-supply = <&dac_iovcc>; 90 vrefp-supply = <&dac_vrefp>; 91 vrefn-supply = <&dac_vrefn>; 92 reset-gpios = <&gpio_bd 16 GPIO_ACTIVE_LOW>; 93 clear-gpios = <&gpio_bd 17 GPIO_ACTIVE_LOW>; 94 ldac-gpios = <&gpio_bd 18 GPIO_ACTIVE_HIGH>; 95 }; 96 }; 97... 98