Path: blob/master/Documentation/devicetree/bindings/iio/dac/adi,ad5791.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/dac/adi,ad5791.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD5791 and similar DACs78maintainers:9- Michael Hennerich <michael.hennerich@analog.com>10- Jonathan Cameron <jic23@kernel.org>1112properties:1314compatible:15enum:16- adi,ad576017- adi,ad578018- adi,ad578119- adi,ad579020- adi,ad57912122reg:23maxItems: 12425vdd-supply: true26vss-supply: true2728vcc-supply:29description:30Supply that powers the chip.3132iovcc-supply:33description:34Supply for the digital interface.3536vrefp-supply:37description:38Positive referance input voltage range. From 5v to (vdd - 2.5)3940vrefn-supply:41description:42Negative referance input voltage range. From (vss + 2.5) to 0.4344adi,rbuf-gain2-en:45description: Specify to allow an external amplifier to be connected in a46gain of two configuration.47type: boolean4849reset-gpios:50maxItems: 15152clear-gpios:53maxItems: 15455ldac-gpios:56description:57LDAC pin to be used as a hardware trigger to update the DAC channels.58maxItems: 15960required:61- compatible62- reg63- vdd-supply64- vss-supply65- vcc-supply66- iovcc-supply67- vrefp-supply68- vrefn-supply6970allOf:71- $ref: /schemas/spi/spi-peripheral-props.yaml#7273unevaluatedProperties: false7475examples:76- |77#include <dt-bindings/gpio/gpio.h>78spi {79#address-cells = <1>;80#size-cells = <0>;8182dac@0 {83compatible = "adi,ad5791";84reg = <0>;85vss-supply = <&dac_vss>;86vdd-supply = <&dac_vdd>;87vcc-supply = <&dac_vcc>;88iovcc-supply = <&dac_iovcc>;89vrefp-supply = <&dac_vrefp>;90vrefn-supply = <&dac_vrefn>;91reset-gpios = <&gpio_bd 16 GPIO_ACTIVE_LOW>;92clear-gpios = <&gpio_bd 17 GPIO_ACTIVE_LOW>;93ldac-gpios = <&gpio_bd 18 GPIO_ACTIVE_LOW>;94};95};96...979899