xref: /linux/Documentation/devicetree/bindings/iio/dac/microchip,mcp4922.yaml (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/dac/microchip,mcp4922.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip MCP4902, MCP4912 and MPC4922 dual output SPI DACs
8
9maintainers:
10  - Jonathan Cameron <jic23@kernel.org>
11  - Michael Welling <mwelling@ieee.org>
12
13properties:
14  compatible:
15    enum:
16      - microchip,mcp4902
17      - microchip,mcp4912
18      - microchip,mcp4921
19      - microchip,mcp4922
20
21  reg:
22    maxItems: 1
23
24  vref-supply: true
25
26required:
27  - compatible
28  - reg
29  - vref-supply
30
31allOf:
32  - $ref: /schemas/spi/spi-peripheral-props.yaml#
33
34unevaluatedProperties: false
35
36examples:
37  - |
38    spi {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        dac@0 {
43            compatible = "microchip,mcp4912";
44            reg = <0>;
45            vref-supply = <&dac_vref>;
46        };
47    };
48...
49