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,ad8801.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Analog Devices AD8801 and AD8803 DACs
0008
0009 maintainers:
0010 - Jonathan Cameron <jic23@kernel.org>
0011
0012 properties:
0013
0014 compatible:
0015 enum:
0016 - adi,ad8801
0017 - adi,ad8803
0018
0019 reg:
0020 maxItems: 1
0021
0022 spi-max-frequency: true
0023
0024 vrefh-supply: true
0025 vrefl-supply: true
0026
0027 additionalProperties: false
0028
0029 required:
0030 - compatible
0031 - reg
0032 - vrefh-supply
0033
0034 allOf:
0035 - if:
0036 properties:
0037 compatible:
0038 contains:
0039 const: adi,ad8803
0040 then:
0041 required:
0042 - vrefl-supply
0043 else:
0044 properties:
0045 vrefl-supply: false
0046
0047 examples:
0048 - |
0049 spi {
0050 #address-cells = <1>;
0051 #size-cells = <0>;
0052
0053 dac@0 {
0054 compatible = "adi,ad8803";
0055 reg = <0>;
0056 vrefl-supply = <&dac_vrefl>;
0057 vrefh-supply = <&dac_vrefh>;
0058 };
0059 };
0060 ...