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,dac7311.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Texas Instruments DAC5311 and similar SPI DACs
0008
0009 maintainers:
0010 - Charles-Antoine Couret <charles-antoine.couret@essensium.com>
0011
0012 properties:
0013 compatible:
0014 enum:
0015 - ti,dac7311
0016 - ti,dac6311
0017 - ti,dac5311
0018
0019 reg:
0020 maxItems: 1
0021
0022 vref-supply:
0023 description:
0024 Reference voltage must be supplied to establish the scaling of the
0025 output voltage.
0026
0027 spi-max-frequency: true
0028
0029 required:
0030 - compatible
0031 - reg
0032 - vref-supply
0033
0034 additionalProperties: false
0035
0036 examples:
0037 - |
0038 spi {
0039 #address-cells = <1>;
0040 #size-cells = <0>;
0041
0042 dac@0 {
0043 compatible = "ti,dac7311";
0044 reg = <0>; /* CS0 */
0045 spi-max-frequency = <1000000>;
0046 vref-supply = <&vdd_supply>;
0047 };
0048 };
0049 ...