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/maxim,max11100.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Maxim MAX11100 ADC |
| 8 | |
| 9 | maintainers: |
| 10 | - Jacopo Mondi <jacopo@jmondi.org> |
| 11 | |
| 12 | description: | |
| 13 | Single channel 16 bit ADC with SPI interface. |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | const: maxim,max11100 |
| 18 | |
| 19 | reg: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | vref-supply: |
| 23 | description: External reference, needed to establish input scaling. |
| 24 | |
| 25 | spi-max-frequency: |
| 26 | minimum: 100000 |
| 27 | maximum: 4800000 |
| 28 | |
| 29 | required: |
| 30 | - compatible |
| 31 | - reg |
| 32 | - vref-supply |
| 33 | |
| 34 | allOf: |
| 35 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 36 | |
| 37 | unevaluatedProperties: false |
| 38 | |
| 39 | examples: |
| 40 | - | |
| 41 | spi { |
| 42 | #address-cells = <1>; |
| 43 | #size-cells = <0>; |
| 44 | |
| 45 | adc@0 { |
| 46 | compatible = "maxim,max11100"; |
| 47 | reg = <0>; |
| 48 | vref-supply = <&adc_vref>; |
| 49 | spi-max-frequency = <240000>; |
| 50 | }; |
| 51 | }; |
| 52 | ... |