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/ti,adc12138.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 76be33864SEmmanuel Vadottitle: Texas Instruments ADC12138 and similar self-calibrating ADCs 86be33864SEmmanuel Vadot 96be33864SEmmanuel Vadotmaintainers: 106be33864SEmmanuel Vadot - Akinobu Mita <akinobu.mita@gmail.com> 116be33864SEmmanuel Vadot 126be33864SEmmanuel Vadotdescription: | 136be33864SEmmanuel Vadot 13 bit ADCs with 1, 2 or 8 inputs and self calibrating circuitry to 146be33864SEmmanuel Vadot correct for linearity, zero and full scale errors. 156be33864SEmmanuel Vadot 166be33864SEmmanuel Vadotproperties: 176be33864SEmmanuel Vadot compatible: 186be33864SEmmanuel Vadot enum: 196be33864SEmmanuel Vadot - ti,adc12130 206be33864SEmmanuel Vadot - ti,adc12132 216be33864SEmmanuel Vadot - ti,adc12138 226be33864SEmmanuel Vadot 236be33864SEmmanuel Vadot reg: 246be33864SEmmanuel Vadot maxItems: 1 256be33864SEmmanuel Vadot 266be33864SEmmanuel Vadot interrupts: 276be33864SEmmanuel Vadot maxItems: 1 286be33864SEmmanuel Vadot description: End of Conversion (EOC) interrupt 296be33864SEmmanuel Vadot 306be33864SEmmanuel Vadot clocks: 316be33864SEmmanuel Vadot maxItems: 1 326be33864SEmmanuel Vadot description: Conversion clock input. 336be33864SEmmanuel Vadot 346be33864SEmmanuel Vadot vref-p-supply: 356be33864SEmmanuel Vadot description: The regulator supply for positive analog voltage reference 366be33864SEmmanuel Vadot 376be33864SEmmanuel Vadot vref-n-supply: 386be33864SEmmanuel Vadot description: | 396be33864SEmmanuel Vadot The regulator supply for negative analog voltage reference 406be33864SEmmanuel Vadot (Note that this must not go below GND or exceed vref-p) 416be33864SEmmanuel Vadot If not specified, this is assumed to be analog ground. 426be33864SEmmanuel Vadot 436be33864SEmmanuel Vadot ti,acquisition-time: 446be33864SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 456be33864SEmmanuel Vadot enum: [ 6, 10, 18, 34 ] 466be33864SEmmanuel Vadot description: | 476be33864SEmmanuel Vadot The number of conversion clock periods for the S/H's acquisition time. 486be33864SEmmanuel Vadot For high source impedances, this value can be increased to 18 or 34. 496be33864SEmmanuel Vadot For less ADC accuracy and/or slower CCLK frequencies this value may be 506be33864SEmmanuel Vadot decreased to 6. See section 6.0 INPUT SOURCE RESISTANCE in the 516be33864SEmmanuel Vadot datasheet for details. 526be33864SEmmanuel Vadot 536be33864SEmmanuel Vadot "#io-channel-cells": 546be33864SEmmanuel Vadot const: 1 556be33864SEmmanuel Vadot 566be33864SEmmanuel Vadotrequired: 576be33864SEmmanuel Vadot - compatible 586be33864SEmmanuel Vadot - reg 596be33864SEmmanuel Vadot - interrupts 606be33864SEmmanuel Vadot - clocks 616be33864SEmmanuel Vadot - vref-p-supply 626be33864SEmmanuel Vadot 63*7ef62cebSEmmanuel VadotallOf: 64*7ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 65*7ef62cebSEmmanuel Vadot 66*7ef62cebSEmmanuel VadotunevaluatedProperties: false 676be33864SEmmanuel Vadot 686be33864SEmmanuel Vadotexamples: 696be33864SEmmanuel Vadot - | 706be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 716be33864SEmmanuel Vadot spi { 726be33864SEmmanuel Vadot #address-cells = <1>; 736be33864SEmmanuel Vadot #size-cells = <0>; 746be33864SEmmanuel Vadot 756be33864SEmmanuel Vadot adc@0 { 766be33864SEmmanuel Vadot compatible = "ti,adc12138"; 776be33864SEmmanuel Vadot reg = <0>; 786be33864SEmmanuel Vadot interrupts = <28 IRQ_TYPE_EDGE_RISING>; 796be33864SEmmanuel Vadot interrupt-parent = <&gpio1>; 806be33864SEmmanuel Vadot clocks = <&cclk>; 816be33864SEmmanuel Vadot vref-p-supply = <&ldo4_reg>; 826be33864SEmmanuel Vadot spi-max-frequency = <5000000>; 836be33864SEmmanuel Vadot ti,acquisition-time = <6>; 846be33864SEmmanuel Vadot #io-channel-cells = <1>; 856be33864SEmmanuel Vadot }; 866be33864SEmmanuel Vadot }; 876be33864SEmmanuel Vadot... 88