xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad5766.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25def4c47SEmmanuel Vadot# Copyright 2020 Analog Devices Inc.
35def4c47SEmmanuel Vadot%YAML 1.2
45def4c47SEmmanuel Vadot---
55def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/adi,ad5766.yaml#
65def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
75def4c47SEmmanuel Vadot
85def4c47SEmmanuel Vadottitle: Analog Devices AD5766 DAC device driver
95def4c47SEmmanuel Vadot
105def4c47SEmmanuel Vadotmaintainers:
11*8bab661aSEmmanuel Vadot  - Nuno Sá <nuno.sa@analog.com>
125def4c47SEmmanuel Vadot
135def4c47SEmmanuel Vadotdescription: |
145def4c47SEmmanuel Vadot  Bindings for the Analog Devices AD5766 current DAC device. Datasheet can be
155def4c47SEmmanuel Vadot  found here:
165def4c47SEmmanuel Vadot    https://www.analog.com/media/en/technical-documentation/data-sheets/ad5766-5767.pdf
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel Vadotproperties:
195def4c47SEmmanuel Vadot  compatible:
205def4c47SEmmanuel Vadot    enum:
215def4c47SEmmanuel Vadot      - adi,ad5766
225def4c47SEmmanuel Vadot      - adi,ad5767
235def4c47SEmmanuel Vadot
245def4c47SEmmanuel Vadot  output-range-microvolts:
25b97ee269SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/int32-array
26b97ee269SEmmanuel Vadot    maxItems: 2
275def4c47SEmmanuel Vadot    description: Select converter output range.
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot  reg:
305def4c47SEmmanuel Vadot    maxItems: 1
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadot  spi-max-frequency:
335def4c47SEmmanuel Vadot    maximum: 1000000
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel Vadot  spi-cpol: true
365def4c47SEmmanuel Vadot
375def4c47SEmmanuel Vadot  reset-gpios:
385def4c47SEmmanuel Vadot    description: GPIO spec for the RESET pin. As the line is active low, it
395def4c47SEmmanuel Vadot      should be marked GPIO_ACTIVE_LOW.
405def4c47SEmmanuel Vadot    maxItems: 1
415def4c47SEmmanuel Vadot
425def4c47SEmmanuel Vadotrequired:
435def4c47SEmmanuel Vadot  - compatible
445def4c47SEmmanuel Vadot  - output-range-microvolts
455def4c47SEmmanuel Vadot  - reg
465def4c47SEmmanuel Vadot  - spi-max-frequency
475def4c47SEmmanuel Vadot  - spi-cpol
485def4c47SEmmanuel Vadot
495def4c47SEmmanuel VadotadditionalProperties: false
505def4c47SEmmanuel Vadot
515def4c47SEmmanuel Vadotexamples:
525def4c47SEmmanuel Vadot  - |
535def4c47SEmmanuel Vadot    spi {
545def4c47SEmmanuel Vadot        #address-cells = <1>;
555def4c47SEmmanuel Vadot        #size-cells = <0>;
565def4c47SEmmanuel Vadot
575def4c47SEmmanuel Vadot        ad5766@0 {
585def4c47SEmmanuel Vadot            compatible = "adi,ad5766";
598cc087a1SEmmanuel Vadot            output-range-microvolts = <(-5000000) 5000000>;
605def4c47SEmmanuel Vadot            reg = <0>;
615def4c47SEmmanuel Vadot            spi-cpol;
625def4c47SEmmanuel Vadot            spi-max-frequency = <1000000>;
635def4c47SEmmanuel Vadot            reset-gpios = <&gpio 22 0>;
645def4c47SEmmanuel Vadot        };
655def4c47SEmmanuel Vadot    };
66