GNU Linux-libre 6.8.9-gnu
[releases.git] / Documentation / devicetree / bindings / iio / dac / microchip,mcp4922.yaml
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
7 title: Microchip MCP4902, MCP4912 and MPC4922 dual output SPI DACs
8
9 maintainers:
10   - Jonathan Cameron <jic23@kernel.org>
11   - Michael Welling <mwelling@ieee.org>
12
13 properties:
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
26 required:
27   - compatible
28   - reg
29   - vref-supply
30
31 allOf:
32   - $ref: /schemas/spi/spi-peripheral-props.yaml#
33
34 unevaluatedProperties: false
35
36 examples:
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 ...