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/ti,adc0832.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Texas Instruments ADC0832 and similar ADCs |
| 8 | |
| 9 | maintainers: |
| 10 | - Akinobu Mita <akinobu.mita@gmail.com> |
| 11 | |
| 12 | description: | |
| 13 | 8 bit ADCs with 1, 2, 4 or 8 inputs for single ended or differential |
| 14 | conversion. |
| 15 | |
| 16 | properties: |
| 17 | compatible: |
| 18 | enum: |
| 19 | - ti,adc0831 |
| 20 | - ti,adc0832 |
| 21 | - ti,adc0834 |
| 22 | - ti,adc0838 |
| 23 | |
| 24 | reg: |
| 25 | maxItems: 1 |
| 26 | |
| 27 | vref-supply: |
| 28 | description: External reference, needed to establish input scaling |
| 29 | |
| 30 | "#io-channel-cells": |
| 31 | const: 1 |
| 32 | |
| 33 | required: |
| 34 | - compatible |
| 35 | - reg |
| 36 | - vref-supply |
| 37 | |
| 38 | allOf: |
| 39 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 40 | |
| 41 | unevaluatedProperties: false |
| 42 | |
| 43 | examples: |
| 44 | - | |
| 45 | spi { |
| 46 | #address-cells = <1>; |
| 47 | #size-cells = <0>; |
| 48 | |
| 49 | adc@0 { |
| 50 | compatible = "ti,adc0832"; |
| 51 | reg = <0>; |
| 52 | vref-supply = <&vdd_supply>; |
| 53 | spi-max-frequency = <200000>; |
| 54 | #io-channel-cells = <1>; |
| 55 | }; |
| 56 | }; |
| 57 | ... |