brintos

brintos / linux-shallow public Read only

0
0
Text · 2.6 KiB · 3ce59d4 Raw
126 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Analog Devices AD7768-1 ADC device driver8 9maintainers:10  - Michael Hennerich <michael.hennerich@analog.com>11 12description: |13  Datasheet at:14    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf15 16properties:17  compatible:18    const: adi,ad7768-119 20  reg:21    maxItems: 122 23  clocks:24    maxItems: 125 26  clock-names:27    const: mclk28 29  interrupts:30    maxItems: 131 32  '#address-cells':33    const: 134 35  '#size-cells':36    const: 037 38  vref-supply:39    description:40      ADC reference voltage supply41 42  adi,sync-in-gpios:43    maxItems: 144    description:45      Enables synchronization of multiple devices that require simultaneous46      sampling. A pulse is always required if the configuration is changed47      in any way, for example if the filter decimation rate changes.48      As the line is active low, it should be marked GPIO_ACTIVE_LOW.49 50  reset-gpios:51    maxItems: 152 53  spi-cpol: true54 55  spi-cpha: true56 57  "#io-channel-cells":58    const: 159 60required:61  - compatible62  - reg63  - clocks64  - clock-names65  - vref-supply66  - spi-cpol67  - spi-cpha68  - adi,sync-in-gpios69 70patternProperties:71  "^channel@([0-9]|1[0-5])$":72    type: object73    description: |74      Represents the external channels which are connected to the device.75 76    properties:77      reg:78        maxItems: 179        description: |80          The channel number.81 82      label:83        description: |84          Unique name to identify which channel this is.85    required:86      - reg87    additionalProperties: false88 89allOf:90  - $ref: /schemas/spi/spi-peripheral-props.yaml#91 92unevaluatedProperties: false93 94examples:95  - |96    #include <dt-bindings/interrupt-controller/irq.h>97    #include <dt-bindings/gpio/gpio.h>98    spi {99        #address-cells = <1>;100        #size-cells = <0>;101 102        adc@0 {103            compatible = "adi,ad7768-1";104            reg = <0>;105            spi-max-frequency = <2000000>;106            spi-cpol;107            spi-cpha;108            vref-supply = <&adc_vref>;109            interrupts = <25 IRQ_TYPE_EDGE_RISING>;110            interrupt-parent = <&gpio>;111            adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;112            reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;113            clocks = <&ad7768_mclk>;114            clock-names = "mclk";115 116            #address-cells = <1>;117            #size-cells = <0>;118 119            channel@0 {120                reg = <0>;121                label = "channel_0";122            };123        };124    };125...126