|
| 1 | +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | +# Copyright 2025 Analog Devices Inc. |
| 3 | +%YAML 1.2 |
| 4 | +--- |
| 5 | +$id: http://devicetree.org/schemas/iio/adc/adi,ad9213.yaml# |
| 6 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | + |
| 8 | +title: Analog Devices AD9213 device driver |
| 9 | + |
| 10 | +maintainers: |
| 11 | + - George Mois <george.mois@analog.com> |
| 12 | + |
| 13 | +description: | |
| 14 | + Bindings for the Analog Devices AD9213 ADC device. Datasheet can be found |
| 15 | + here: |
| 16 | + https://www.analog.com/media/en/technical-documentation/data-sheets/ad9213.pdf |
| 17 | +
|
| 18 | +properties: |
| 19 | + compatible: |
| 20 | + enum: |
| 21 | + - adi,ad9213 |
| 22 | + |
| 23 | + reg: |
| 24 | + maxItems: 1 |
| 25 | + description: Chip select number on the SPI bus. |
| 26 | + |
| 27 | + spi-max-frequency: |
| 28 | + const: 10000000 |
| 29 | + description: SPI clock frequency in Hz. |
| 30 | + |
| 31 | + "#address-cells": |
| 32 | + const: 1 |
| 33 | + |
| 34 | + "#size-cells": |
| 35 | + const: 0 |
| 36 | + |
| 37 | + jesd204-device: |
| 38 | + description: Device is added to the jesd204-fsm framework |
| 39 | + type: boolean |
| 40 | + |
| 41 | + '#jesd204-cells': |
| 42 | + const: 2 |
| 43 | + |
| 44 | + jesd204-top-device: |
| 45 | + const: 0 |
| 46 | + $ref: /schemas/types.yaml#/definitions/uint32 |
| 47 | + description: Indicates this is the top-level device in the JESD204 link. |
| 48 | + |
| 49 | + jesd204-link-ids: |
| 50 | + const: 0 |
| 51 | + $ref: /schemas/types.yaml#/definitions/uint32-array |
| 52 | + |
| 53 | + jesd204-inputs: |
| 54 | + description: JESD204-fsm devices phandles and specifiers (used to build the link topology) |
| 55 | + $ref: /schemas/types.yaml#/definitions/phandle |
| 56 | + |
| 57 | + adi,adc-frequency-hz: |
| 58 | + description: ADC Sampling frequency of the device |
| 59 | + minimum: 6000000000 |
| 60 | + maximum: 10250000000 |
| 61 | + |
| 62 | + adi,octets-per-frame: |
| 63 | + description: Number of octets per frame (F) |
| 64 | + $ref: /schemas/types.yaml#/definitions/uint8 |
| 65 | + |
| 66 | + adi,frames-per-multiframe: |
| 67 | + description: Number of frames per multi-frame (K) |
| 68 | + $ref: /schemas/types.yaml#/definitions/uint16 |
| 69 | + |
| 70 | + adi,converter-resolution: |
| 71 | + description: Converter resolution (N) |
| 72 | + $ref: /schemas/types.yaml#/definitions/uint8 |
| 73 | + |
| 74 | + adi,bits-per-sample: |
| 75 | + description: Number of bits per sample (N') |
| 76 | + $ref: /schemas/types.yaml#/definitions/uint8 |
| 77 | + |
| 78 | + adi,converters-per-device: |
| 79 | + description: Number of converter per device (M) |
| 80 | + $ref: /schemas/types.yaml#/definitions/uint8 |
| 81 | + |
| 82 | + adi,control-bits-per-sample: |
| 83 | + description: Number of control bits per conversion sample (CS) |
| 84 | + $ref: /schemas/types.yaml#/definitions/uint8 |
| 85 | + |
| 86 | + adi,lanes-per-device: |
| 87 | + description: Number of lanes per link (L) |
| 88 | + $ref: /schemas/types.yaml#/definitions/uint8 |
| 89 | + |
| 90 | + adi,subclass: |
| 91 | + description: The JESD204B sublcass |
| 92 | + $ref: /schemas/types.yaml#/definitions/uint8 |
| 93 | + |
| 94 | + io-backends: |
| 95 | + description: |
| 96 | + The AXI ADC IP block connected to the output lines of the |
| 97 | + ADC. An example backend can be found at |
| 98 | + http://analogdevicesinc.github.io/hdl/projects/pulsar_lvds/index.html. |
| 99 | + maxItems: 1 |
| 100 | + |
| 101 | +required: |
| 102 | + - compatible |
| 103 | + - reg |
| 104 | + - jesd204-device |
| 105 | + - '#jesd-cells' |
| 106 | + - jesd204-top-device |
| 107 | + - jesd204-link-ids |
| 108 | + - jesd204-inputs |
| 109 | + - io-backends |
| 110 | + |
| 111 | +additionalProperties: false |
| 112 | + |
| 113 | +examples: |
| 114 | + - | |
| 115 | + spi { |
| 116 | + #address-cells = <1>; |
| 117 | + #size-cells = <0>; |
| 118 | +
|
| 119 | + adc_ad9213: ad9213@0 { |
| 120 | + compatible = "adi,ad9213"; |
| 121 | + reg = <0>; |
| 122 | + #address-cells = <1>; |
| 123 | + #size-cells = <0>; |
| 124 | + spi-max-frequency = <10000000>; |
| 125 | +
|
| 126 | + jesd204-device; |
| 127 | + #jesd204-cells = <2>; |
| 128 | + jesd204-top-device = <0>; /* This is the TOP device */ |
| 129 | + jesd204-link-ids = <0>; |
| 130 | + jesd204-inputs = <&axi_ad9213_jesd_rx 0 0>; |
| 131 | +
|
| 132 | + adi,adc-frequency-hz = /bits/ 64 <10000000000>; |
| 133 | + adi,octets-per-frame = <2>; |
| 134 | + adi,frames-per-multiframe = <32>; |
| 135 | + adi,converter-resolution = <16>; |
| 136 | + adi,bits-per-sample = <16>; |
| 137 | + adi,converters-per-device = <1>; |
| 138 | + adi,control-bits-per-sample = <0>; |
| 139 | + adi,lanes-per-device = <16>; |
| 140 | + adi,subclass = <1>; |
| 141 | +
|
| 142 | + io-backends = <&iio_backend>; |
| 143 | + }; |
| 144 | + }; |
0 commit comments