Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 # Copyright 2020 Analog Devices Inc.
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/iio/dac/adi,ad5766.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007 
0008 title: Analog Devices AD5766 DAC device driver
0009 
0010 maintainers:
0011   - Cristian Pop <cristian.pop@analog.com>
0012 
0013 description: |
0014   Bindings for the Analog Devices AD5766 current DAC device. Datasheet can be
0015   found here:
0016     https://www.analog.com/media/en/technical-documentation/data-sheets/ad5766-5767.pdf
0017 
0018 properties:
0019   compatible:
0020     enum:
0021       - adi,ad5766
0022       - adi,ad5767
0023 
0024   output-range-microvolts:
0025     $ref: /schemas/types.yaml#/definitions/int32-array
0026     maxItems: 2
0027     description: Select converter output range.
0028 
0029   reg:
0030     maxItems: 1
0031 
0032   spi-max-frequency:
0033     maximum: 1000000
0034 
0035   spi-cpol: true
0036 
0037   reset-gpios:
0038     description: GPIO spec for the RESET pin. As the line is active low, it
0039       should be marked GPIO_ACTIVE_LOW.
0040     maxItems: 1
0041 
0042 required:
0043   - compatible
0044   - output-range-microvolts
0045   - reg
0046   - spi-max-frequency
0047   - spi-cpol
0048 
0049 additionalProperties: false
0050 
0051 examples:
0052   - |
0053     spi {
0054           #address-cells = <1>;
0055           #size-cells = <0>;
0056 
0057           ad5766@0 {
0058               compatible = "adi,ad5766";
0059               output-range-microvolts = <(-5000000) 5000000>;
0060               reg = <0>;
0061               spi-cpol;
0062               spi-max-frequency = <1000000>;
0063               reset-gpios = <&gpio 22 0>;
0064             };
0065       };