Skip to content

Commit

Permalink
dt-bindings: iio: adc: Add adi,ad4052.yaml
Browse files Browse the repository at this point in the history
Add documentation for devicetree bindings for AD4052 ADC family.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Nov 11, 2024
1 parent ff26ad5 commit baa389b
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions Documentation/devicetree/bindings/iio/adc/adi,ad4052.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
# Copyright 2024 Analog Devices Inc.
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/adi,ad4052.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Analog Devices AD4052 ADC family device driver

maintainers:
- Jorge Marques <[email protected]>

description: |
Analog Devices AD4052 Single Channel Precision SAR ADC family
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4050.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4052.pdf
properties:

compatible:
enum:
- adi,ad4050
- adi,ad4052
- adi,ad4056
- adi,ad4058

reg:
maxItems: 1

clocks:
description:
Reference clock

interrupts:
maxItems: 1

dmas:
maxItems: 1

dma-names:
const: rx

pwms:
maxItems: 1

pwm-names:
const: cnv

cnv-gpios:
description: GPIO line for the ADC CNV
maxItems: 1

spi-max-frequency:
maximum: 25000000

vdd-supply: true
vdd_1_8-supply: true
vio-supply: true

required:
- compatible
- reg
- clocks
- dmas
- dma-names
- pwms
- pwm-names
- interrupts

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4052";
reg = <0>;
spi-max-frequency = <25000000>;
clocks = <&clk0>;
dmas = <&dma 0>;
dma-names = "rx";
pwm-names = "cnv";
pwms = <&adc_trigger 0 0>;
cnv-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
interrupts = <0 2>;
interrupt-parent = <&gpio>;
};
};
...

0 comments on commit baa389b

Please sign in to comment.