1dd587a7fSMarcelo Schmitt# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2d898f9acSMarcelo Schmitt%YAML 1.2 3d898f9acSMarcelo Schmitt--- 4d898f9acSMarcelo Schmitt$id: http://devicetree.org/schemas/iio/adc/adi,ad7292.yaml# 5d898f9acSMarcelo Schmitt$schema: http://devicetree.org/meta-schemas/core.yaml# 6d898f9acSMarcelo Schmitt 7d898f9acSMarcelo Schmitttitle: Analog Devices AD7292 10-Bit Monitor and Control System 8d898f9acSMarcelo Schmitt 9d898f9acSMarcelo Schmittmaintainers: 10d898f9acSMarcelo Schmitt - Marcelo Schmitt <marcelo.schmitt1@gmail.com> 11d898f9acSMarcelo Schmitt 12d898f9acSMarcelo Schmittdescription: | 13d898f9acSMarcelo Schmitt Analog Devices AD7292 10-Bit Monitor and Control System with ADC, DACs, 14d898f9acSMarcelo Schmitt Temperature Sensor, and GPIOs 15d898f9acSMarcelo Schmitt 16d898f9acSMarcelo Schmitt Specifications about the part can be found at: 17d898f9acSMarcelo Schmitt https://www.analog.com/media/en/technical-documentation/data-sheets/ad7292.pdf 18d898f9acSMarcelo Schmitt 19d898f9acSMarcelo Schmittproperties: 20d898f9acSMarcelo Schmitt compatible: 21d898f9acSMarcelo Schmitt enum: 22d898f9acSMarcelo Schmitt - adi,ad7292 23d898f9acSMarcelo Schmitt 24d898f9acSMarcelo Schmitt reg: 25d898f9acSMarcelo Schmitt maxItems: 1 26d898f9acSMarcelo Schmitt 27d898f9acSMarcelo Schmitt vref-supply: 28d898f9acSMarcelo Schmitt description: | 29d898f9acSMarcelo Schmitt The regulator supply for ADC and DAC reference voltage. 30d898f9acSMarcelo Schmitt 31d898f9acSMarcelo Schmitt spi-cpha: true 32d898f9acSMarcelo Schmitt 33d898f9acSMarcelo Schmitt '#address-cells': 34d898f9acSMarcelo Schmitt const: 1 35d898f9acSMarcelo Schmitt 36d898f9acSMarcelo Schmitt '#size-cells': 37d898f9acSMarcelo Schmitt const: 0 38d898f9acSMarcelo Schmitt 39d898f9acSMarcelo Schmittrequired: 40d898f9acSMarcelo Schmitt - compatible 41d898f9acSMarcelo Schmitt - reg 42d898f9acSMarcelo Schmitt - spi-cpha 43d898f9acSMarcelo Schmitt 44d898f9acSMarcelo SchmittpatternProperties: 45d898f9acSMarcelo Schmitt "^channel@[0-7]$": 4634d1e754SKrzysztof Kozlowski $ref: adc.yaml 47d898f9acSMarcelo Schmitt type: object 48d898f9acSMarcelo Schmitt description: | 49d898f9acSMarcelo Schmitt Represents the external channels which are connected to the ADC. 50d898f9acSMarcelo Schmitt 51d898f9acSMarcelo Schmitt properties: 52d898f9acSMarcelo Schmitt reg: 53d898f9acSMarcelo Schmitt description: | 54d898f9acSMarcelo Schmitt The channel number. It can have up to 8 channels numbered from 0 to 7. 55d898f9acSMarcelo Schmitt items: 56ada971cbSMarcelo Schmitt - minimum: 0 57d898f9acSMarcelo Schmitt maximum: 7 58d898f9acSMarcelo Schmitt 59f759f020SJonathan Cameron diff-channels: true 60d898f9acSMarcelo Schmitt 61d898f9acSMarcelo Schmitt required: 62d898f9acSMarcelo Schmitt - reg 63d898f9acSMarcelo Schmitt 64*87b9a0e3SRob Herring additionalProperties: false 65f759f020SJonathan Cameron 6680137388SKrzysztof KozlowskiallOf: 6780137388SKrzysztof Kozlowski - $ref: /schemas/spi/spi-peripheral-props.yaml# 6880137388SKrzysztof Kozlowski 6980137388SKrzysztof KozlowskiunevaluatedProperties: false 706fdc6e23SRob Herring 71d898f9acSMarcelo Schmittexamples: 72d898f9acSMarcelo Schmitt - | 73d898f9acSMarcelo Schmitt spi { 74d898f9acSMarcelo Schmitt #address-cells = <1>; 75d898f9acSMarcelo Schmitt #size-cells = <0>; 76d898f9acSMarcelo Schmitt 77d898f9acSMarcelo Schmitt ad7292: adc@0 { 78d898f9acSMarcelo Schmitt compatible = "adi,ad7292"; 79d898f9acSMarcelo Schmitt reg = <0>; 80d898f9acSMarcelo Schmitt spi-max-frequency = <25000000>; 81d898f9acSMarcelo Schmitt vref-supply = <&adc_vref>; 82d898f9acSMarcelo Schmitt spi-cpha; 83d898f9acSMarcelo Schmitt 84d898f9acSMarcelo Schmitt #address-cells = <1>; 85d898f9acSMarcelo Schmitt #size-cells = <0>; 86d898f9acSMarcelo Schmitt 87d898f9acSMarcelo Schmitt channel@0 { 88d898f9acSMarcelo Schmitt reg = <0>; 89d898f9acSMarcelo Schmitt diff-channels = <0 1>; 90d898f9acSMarcelo Schmitt }; 91d898f9acSMarcelo Schmitt channel@2 { 92d898f9acSMarcelo Schmitt reg = <2>; 93d898f9acSMarcelo Schmitt }; 94d898f9acSMarcelo Schmitt channel@3 { 95d898f9acSMarcelo Schmitt reg = <3>; 96d898f9acSMarcelo Schmitt }; 97d898f9acSMarcelo Schmitt channel@4 { 98d898f9acSMarcelo Schmitt reg = <4>; 99d898f9acSMarcelo Schmitt }; 100d898f9acSMarcelo Schmitt channel@5 { 101d898f9acSMarcelo Schmitt reg = <5>; 102d898f9acSMarcelo Schmitt }; 103d898f9acSMarcelo Schmitt channel@6 { 104d898f9acSMarcelo Schmitt reg = <6>; 105d898f9acSMarcelo Schmitt }; 106d898f9acSMarcelo Schmitt channel@7 { 107d898f9acSMarcelo Schmitt reg = <7>; 108d898f9acSMarcelo Schmitt }; 109d898f9acSMarcelo Schmitt }; 110d898f9acSMarcelo Schmitt }; 111