Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | # Copyright 2019 Analog Devices Inc. |
| 3 | %YAML 1.2 |
| 4 | --- |
| 5 | $id: http://devicetree.org/schemas/iio/adc/adi,ad7298.yaml# |
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | |
| 8 | title: Analog Devices AD7298 ADC |
| 9 | |
| 10 | maintainers: |
| 11 | - Michael Hennerich <michael.hennerich@analog.com> |
| 12 | |
| 13 | description: | |
| 14 | Bindings for the Analog Devices AD7298 ADC device. Datasheet can be |
| 15 | found here: |
| 16 | https://www.analog.com/en/products/ad7298.html |
| 17 | |
| 18 | properties: |
| 19 | compatible: |
| 20 | const: adi,ad7298 |
| 21 | |
| 22 | reg: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | vref-supply: true |
| 26 | vdd-supply: true |
| 27 | |
| 28 | required: |
| 29 | - compatible |
| 30 | - reg |
| 31 | |
| 32 | allOf: |
| 33 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 34 | |
| 35 | unevaluatedProperties: false |
| 36 | |
| 37 | examples: |
| 38 | - | |
| 39 | spi { |
| 40 | #address-cells = <1>; |
| 41 | #size-cells = <0>; |
| 42 | |
| 43 | adc@0 { |
| 44 | compatible = "adi,ad7298"; |
| 45 | reg = <0>; |
| 46 | spi-max-frequency = <5000000>; |
| 47 | vref-supply = <&adc_vref>; |
| 48 | }; |
| 49 | }; |
| 50 | ... |