Back to home page

OSCL-LXR

 
 

    


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,ad5380.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Analog Devices AD5380 and similar DACs
0008 
0009 maintainers:
0010   - Lars-Peter Clausen <lars@metafoo.de>
0011   - Jonathan Cameron <jic23@kernel.org>
0012 
0013 description: |
0014   DAC devices supporting both SPI and I2C interfaces.
0015 properties:
0016   compatible:
0017     enum:
0018       - adi,ad5380-3
0019       - adi,ad5380-5
0020       - adi,ad5381-3
0021       - adi,ad5381-5
0022       - adi,ad5382-3
0023       - adi,ad5382-5
0024       - adi,ad5383-3
0025       - adi,ad5383-5
0026       - adi,ad5384-3
0027       - adi,ad5384-5
0028       - adi,ad5390-3
0029       - adi,ad5390-5
0030       - adi,ad5391-3
0031       - adi,ad5391-5
0032       - adi,ad5392-3
0033       - adi,ad5392-5
0034 
0035   reg:
0036     maxItems: 1
0037 
0038   vref-supply:
0039     description:
0040       If not supplied devices will use internal regulators.
0041 
0042   spi-max-frequency: true
0043 
0044 additionalProperties: false
0045 
0046 required:
0047   - compatible
0048   - reg
0049 
0050 examples:
0051   - |
0052     spi {
0053         #address-cells = <1>;
0054         #size-cells = <0>;
0055         dac@0 {
0056            reg = <0>;
0057            compatible = "adi,ad5390-5";
0058            vref-supply = <&dacvref>;
0059         };
0060     };
0061   - |
0062     i2c {
0063        #address-cells = <1>;
0064        #size-cells = <0>;
0065        dac@42 {
0066           reg = <0x42>;
0067           compatible = "adi,ad5380-3";
0068        };
0069     };
0070 ...