xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/ti,dac7612.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/dac/ti,dac7612.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments DAC7612 family of DACs
8
9description:
10  The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with
11  guaranteed 12-bit monotonicity performance over the industrial temperature
12  range. Is is programmable through an SPI interface.
13
14maintainers:
15  - Ricardo Ribalda Delgado <ricardo@ribalda.com>
16
17properties:
18  compatible:
19    enum:
20      - ti,dac7612
21      - ti,dac7612u
22      - ti,dac7612ub
23
24  reg:
25    maxItems: 1
26
27  ti,loaddacs-gpios:
28    description:
29      DACs are loaded when the pin connected to this GPIO is pulled low.
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35
36allOf:
37  - $ref: /schemas/spi/spi-peripheral-props.yaml#
38
39unevaluatedProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/gpio/gpio.h>
44    spi {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        dac@1 {
49            compatible = "ti,dac7612";
50            reg = <0x1>;
51            ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;
52        };
53    };
54...
55