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 334828556dSRob Herring spi-max-frequency: true 344828556dSRob Herring 35d898f9acSMarcelo Schmitt '#address-cells': 36d898f9acSMarcelo Schmitt const: 1 37d898f9acSMarcelo Schmitt 38d898f9acSMarcelo Schmitt '#size-cells': 39d898f9acSMarcelo Schmitt const: 0 40d898f9acSMarcelo Schmitt 41d898f9acSMarcelo Schmittrequired: 42d898f9acSMarcelo Schmitt - compatible 43d898f9acSMarcelo Schmitt - reg 44d898f9acSMarcelo Schmitt - spi-cpha 45d898f9acSMarcelo Schmitt 46d898f9acSMarcelo SchmittpatternProperties: 47d898f9acSMarcelo Schmitt "^channel@[0-7]$": 48*f759f020SJonathan Cameron $ref: "adc.yaml" 49d898f9acSMarcelo Schmitt type: object 50d898f9acSMarcelo Schmitt description: | 51d898f9acSMarcelo Schmitt Represents the external channels which are connected to the ADC. 52d898f9acSMarcelo Schmitt 53d898f9acSMarcelo Schmitt properties: 54d898f9acSMarcelo Schmitt reg: 55d898f9acSMarcelo Schmitt description: | 56d898f9acSMarcelo Schmitt The channel number. It can have up to 8 channels numbered from 0 to 7. 57d898f9acSMarcelo Schmitt items: 58ada971cbSMarcelo Schmitt - minimum: 0 59d898f9acSMarcelo Schmitt maximum: 7 60d898f9acSMarcelo Schmitt 61*f759f020SJonathan Cameron diff-channels: true 62d898f9acSMarcelo Schmitt 63d898f9acSMarcelo Schmitt required: 64d898f9acSMarcelo Schmitt - reg 65d898f9acSMarcelo Schmitt 66*f759f020SJonathan Cameron additionalProperties: true 67*f759f020SJonathan Cameron 684828556dSRob HerringadditionalProperties: false 696fdc6e23SRob Herring 70d898f9acSMarcelo Schmittexamples: 71d898f9acSMarcelo Schmitt - | 72d898f9acSMarcelo Schmitt spi { 73d898f9acSMarcelo Schmitt #address-cells = <1>; 74d898f9acSMarcelo Schmitt #size-cells = <0>; 75d898f9acSMarcelo Schmitt 76d898f9acSMarcelo Schmitt ad7292: adc@0 { 77d898f9acSMarcelo Schmitt compatible = "adi,ad7292"; 78d898f9acSMarcelo Schmitt reg = <0>; 79d898f9acSMarcelo Schmitt spi-max-frequency = <25000000>; 80d898f9acSMarcelo Schmitt vref-supply = <&adc_vref>; 81d898f9acSMarcelo Schmitt spi-cpha; 82d898f9acSMarcelo Schmitt 83d898f9acSMarcelo Schmitt #address-cells = <1>; 84d898f9acSMarcelo Schmitt #size-cells = <0>; 85d898f9acSMarcelo Schmitt 86d898f9acSMarcelo Schmitt channel@0 { 87d898f9acSMarcelo Schmitt reg = <0>; 88d898f9acSMarcelo Schmitt diff-channels = <0 1>; 89d898f9acSMarcelo Schmitt }; 90d898f9acSMarcelo Schmitt channel@2 { 91d898f9acSMarcelo Schmitt reg = <2>; 92d898f9acSMarcelo Schmitt }; 93d898f9acSMarcelo Schmitt channel@3 { 94d898f9acSMarcelo Schmitt reg = <3>; 95d898f9acSMarcelo Schmitt }; 96d898f9acSMarcelo Schmitt channel@4 { 97d898f9acSMarcelo Schmitt reg = <4>; 98d898f9acSMarcelo Schmitt }; 99d898f9acSMarcelo Schmitt channel@5 { 100d898f9acSMarcelo Schmitt reg = <5>; 101d898f9acSMarcelo Schmitt }; 102d898f9acSMarcelo Schmitt channel@6 { 103d898f9acSMarcelo Schmitt reg = <6>; 104d898f9acSMarcelo Schmitt }; 105d898f9acSMarcelo Schmitt channel@7 { 106d898f9acSMarcelo Schmitt reg = <7>; 107d898f9acSMarcelo Schmitt }; 108d898f9acSMarcelo Schmitt }; 109d898f9acSMarcelo Schmitt }; 110