xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad5421.yaml (revision e32fecd0c2c3ee37c47ee100f169e7eb0282a873)
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,ad5421.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD5421 DAC
8
9maintainers:
10  - Lars-Peter Clausen <lars@metafoo.de>
11  - Jonathan Cameron <jic23@kernel.org>
12
13description: |
14  AD5421 is designed for us in loop-powered, 4 mA to 20 mA smart transmitter
15  applications. It provides a 16-bit DAC, current amplifier, voltage regulator
16  to drive the loop and a voltage reference.
17
18properties:
19  compatible:
20    const: adi,ad5421
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27    description: Fault signal.
28
29  spi-max-frequency: true
30
31required:
32  - compatible
33  - reg
34
35additionalProperties: false
36
37examples:
38  - |
39    #include <dt-bindings/interrupt-controller/irq.h>
40    spi {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        dac@0 {
45            compatible = "adi,ad5421";
46            reg = <0>;
47            spi-max-frequency = <30000000>;
48            interrupts = <55 IRQ_TYPE_LEVEL_HIGH>;
49        };
50    };
51...
52