16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 26be33864SEmmanuel Vadot%YAML 1.2 36be33864SEmmanuel Vadot--- 46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/maxim,max1118.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 76be33864SEmmanuel Vadottitle: Maxim MAX1118 and similar ADCs 86be33864SEmmanuel Vadot 96be33864SEmmanuel Vadotmaintainers: 106be33864SEmmanuel Vadot - Akinobu Mita <akinobu.mita@gmail.com> 116be33864SEmmanuel Vadot 126be33864SEmmanuel Vadotdescription: | 136be33864SEmmanuel Vadot Dual channel 8bit ADCs. 146be33864SEmmanuel Vadot 156be33864SEmmanuel Vadotproperties: 166be33864SEmmanuel Vadot compatible: 176be33864SEmmanuel Vadot enum: 186be33864SEmmanuel Vadot - maxim,max1117 196be33864SEmmanuel Vadot - maxim,max1118 206be33864SEmmanuel Vadot - maxim,max1119 216be33864SEmmanuel Vadot 226be33864SEmmanuel Vadot reg: 236be33864SEmmanuel Vadot maxItems: 1 246be33864SEmmanuel Vadot 256be33864SEmmanuel Vadot spi-max-frequency: 266be33864SEmmanuel Vadot maximum: 5000000 276be33864SEmmanuel Vadot 286be33864SEmmanuel Vadot vref-supply: 296be33864SEmmanuel Vadot description: External reference, needed to establish input scaling 306be33864SEmmanuel Vadot 31*7ef62cebSEmmanuel VadotallOf: 32*7ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 33*7ef62cebSEmmanuel Vadot - if: 346be33864SEmmanuel Vadot properties: 356be33864SEmmanuel Vadot compatible: 366be33864SEmmanuel Vadot contains: 376be33864SEmmanuel Vadot const: maxim,max1118 386be33864SEmmanuel Vadot then: 396be33864SEmmanuel Vadot required: 406be33864SEmmanuel Vadot - vref-supply 416be33864SEmmanuel Vadot else: 426be33864SEmmanuel Vadot properties: 436be33864SEmmanuel Vadot vref-supply: false 446be33864SEmmanuel Vadot 456be33864SEmmanuel Vadotrequired: 466be33864SEmmanuel Vadot - compatible 476be33864SEmmanuel Vadot - reg 486be33864SEmmanuel Vadot 49*7ef62cebSEmmanuel VadotunevaluatedProperties: false 506be33864SEmmanuel Vadot 516be33864SEmmanuel Vadotexamples: 526be33864SEmmanuel Vadot - | 536be33864SEmmanuel Vadot spi { 546be33864SEmmanuel Vadot #address-cells = <1>; 556be33864SEmmanuel Vadot #size-cells = <0>; 566be33864SEmmanuel Vadot 576be33864SEmmanuel Vadot adc@0 { 586be33864SEmmanuel Vadot compatible = "maxim,max1118"; 596be33864SEmmanuel Vadot reg = <0>; 606be33864SEmmanuel Vadot vref-supply = <&adc_vref>; 616be33864SEmmanuel Vadot spi-max-frequency = <1000000>; 626be33864SEmmanuel Vadot }; 636be33864SEmmanuel Vadot }; 646be33864SEmmanuel Vadot... 65