0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/dac/ti,dac082s085.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Texas Instruments DAC082s085 and similar DACs
0008
0009 description:
0010 A family of Texas Instruments 8/10/12-bit 2/4-channel DACs
0011
0012 maintainers:
0013 - Lukas Wunner <lukas@wunner.de>
0014
0015 properties:
0016 compatible:
0017 enum:
0018 - ti,dac082s085
0019 - ti,dac102s085
0020 - ti,dac122s085
0021 - ti,dac084s085
0022 - ti,dac104s085
0023 - ti,dac124s085
0024
0025 reg:
0026 maxItems: 1
0027
0028 spi-cpha: true
0029 spi-cpol:
0030 description:
0031 Must be either spi-cpha, or spi-cpol but not both.
0032
0033 vref-supply:
0034 description: Needed to provide output scaling.
0035
0036 spi-max-frequency: true
0037
0038 required:
0039 - compatible
0040 - reg
0041 - vref-supply
0042
0043 additionalProperties: false
0044
0045 oneOf:
0046 - required:
0047 - spi-cpha
0048 - required:
0049 - spi-cpol
0050
0051 examples:
0052 - |
0053 vref_2v5_reg: regulator-vref {
0054 compatible = "regulator-fixed";
0055 regulator-name = "2v5";
0056 regulator-min-microvolt = <2500000>;
0057 regulator-max-microvolt = <2500000>;
0058 regulator-always-on;
0059 };
0060 spi {
0061 #address-cells = <1>;
0062 #size-cells = <0>;
0063
0064 dac@0 {
0065 compatible = "ti,dac082s085";
0066 reg = <0>;
0067 spi-max-frequency = <40000000>;
0068 spi-cpol;
0069 vref-supply = <&vref_2v5_reg>;
0070 };
0071 };
0072 ...