0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/dac/adi,ad5761.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Analog Devices AD5761 and similar DACs
0008
0009 maintainers:
0010 - Ricardo Ribalda <ribalda@kernel.org>
0011 - Jonathan Cameron <jic23@kernel.org>
0012
0013 properties:
0014
0015 compatible:
0016 enum:
0017 - adi,ad5721
0018 - adi,ad5721r
0019 - adi,ad5761
0020 - adi,ad5761r
0021
0022 reg:
0023 maxItems: 1
0024
0025 spi-max-frequency: true
0026
0027 vref-supply:
0028 description: If not supplied, internal reference will be used.
0029
0030 additionalProperties: false
0031
0032 required:
0033 - compatible
0034 - reg
0035
0036 allOf:
0037 - if:
0038 properties:
0039 compatible:
0040 contains:
0041 enum:
0042 - adi,ad5721
0043 - adi,ad5761
0044 then:
0045 required:
0046 - vref-supply
0047
0048 examples:
0049 - |
0050 spi {
0051 #address-cells = <1>;
0052 #size-cells = <0>;
0053
0054 dac@0 {
0055 compatible = "adi,ad5721";
0056 reg = <0>;
0057 vref-supply = <&dac_vref>;
0058 };
0059 };
0060 ...