| # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| %YAML 1.2 |
| --- |
| $id: http://devicetree.org/schemas/iio/adc/ti,adc081c.yaml# |
| $schema: http://devicetree.org/meta-schemas/core.yaml# |
| |
| title: TI Single-channel I2C ADCs |
| |
| maintainers: |
| - Jonathan Cameron <jic23@kernel.org> |
| - Lars-Peter Clausen <lars@metafoo.de> |
| |
| description: | |
| Single-channel ADC supporting 8, 10, or 12-bit samples and high/low alerts. |
| |
| properties: |
| compatible: |
| enum: |
| - ti,adc081c |
| - ti,adc101c |
| - ti,adc121c |
| |
| reg: |
| maxItems: 1 |
| |
| interrupts: |
| maxItems: 1 |
| |
| vref-supply: |
| description: |
| Regulator for the combined power supply and voltage reference |
| |
| "#io-channel-cells": |
| const: 1 |
| |
| required: |
| - compatible |
| - reg |
| - vref-supply |
| |
| additionalProperties: false |
| |
| examples: |
| - | |
| i2c { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| adc@52 { |
| compatible = "ti,adc081c"; |
| reg = <0x52>; |
| vref-supply = <®_2p5v>; |
| }; |
| }; |
| ... |