Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/iio/adc/lltc,ltc2496.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Linear Technology / Analog Devices LTC2496 ADC |
| 8 | |
| 9 | maintainers: |
| 10 | - Lars-Peter Clausen <lars@metafoo.de> |
| 11 | - Michael Hennerich <Michael.Hennerich@analog.com> |
| 12 | - Stefan Popa <stefan.popa@analog.com> |
| 13 | |
| 14 | properties: |
| 15 | compatible: |
| 16 | enum: |
| 17 | - lltc,ltc2496 |
| 18 | |
| 19 | vref-supply: |
| 20 | description: Power supply for the reference voltage |
| 21 | |
| 22 | reg: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | required: |
| 26 | - compatible |
| 27 | - vref-supply |
| 28 | - reg |
| 29 | |
| 30 | allOf: |
| 31 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 32 | |
| 33 | unevaluatedProperties: false |
| 34 | |
| 35 | examples: |
| 36 | - | |
| 37 | spi { |
| 38 | #address-cells = <1>; |
| 39 | #size-cells = <0>; |
| 40 | |
| 41 | adc@0 { |
| 42 | compatible = "lltc,ltc2496"; |
| 43 | reg = <0>; |
| 44 | vref-supply = <<c2496_reg>; |
| 45 | spi-max-frequency = <2000000>; |
| 46 | }; |
| 47 | }; |