1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/adc/ti,adc12138.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Texas Instruments ADC12138 and similar self-calibrating ADCs
10 - Akinobu Mita <akinobu.mita@gmail.com>
13 13 bit ADCs with 1, 2 or 8 inputs and self calibrating circuitry to
14 correct for linearity, zero and full scale errors.
28 description: End of Conversion (EOC) interrupt
32 description: Conversion clock input.
34 spi-max-frequency: true
37 description: The regulator supply for positive analog voltage reference
41 The regulator supply for negative analog voltage reference
42 (Note that this must not go below GND or exceed vref-p)
43 If not specified, this is assumed to be analog ground.
46 $ref: /schemas/types.yaml#/definitions/uint32
47 enum: [ 6, 10, 18, 34 ]
49 The number of conversion clock periods for the S/H's acquisition time.
50 For high source impedances, this value can be increased to 18 or 34.
51 For less ADC accuracy and/or slower CCLK frequencies this value may be
52 decreased to 6. See section 6.0 INPUT SOURCE RESISTANCE in the
53 datasheet for details.
65 additionalProperties: false
69 #include <dt-bindings/interrupt-controller/irq.h>
75 compatible = "ti,adc12138";
77 interrupts = <28 IRQ_TYPE_EDGE_RISING>;
78 interrupt-parent = <&gpio1>;
80 vref-p-supply = <&ldo4_reg>;
81 spi-max-frequency = <5000000>;
82 ti,acquisition-time = <6>;
83 #io-channel-cells = <1>;