xref: /linux/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1*bc4d251eSMike Looijmans# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*bc4d251eSMike Looijmans%YAML 1.2
3*bc4d251eSMike Looijmans---
4*bc4d251eSMike Looijmans$id: http://devicetree.org/schemas/iio/adc/ti,ads1298.yaml#
5*bc4d251eSMike Looijmans$schema: http://devicetree.org/meta-schemas/core.yaml#
6*bc4d251eSMike Looijmans
7*bc4d251eSMike Looijmanstitle: Texas Instruments' ads1298 medical ADC chips
8*bc4d251eSMike Looijmans
9*bc4d251eSMike Looijmansdescription: |
10*bc4d251eSMike Looijmans  Datasheet at: https://www.ti.com/product/ADS1298
11*bc4d251eSMike Looijmans  Bindings for this chip aren't complete.
12*bc4d251eSMike Looijmans
13*bc4d251eSMike Looijmansmaintainers:
14*bc4d251eSMike Looijmans  - Mike Looijmans <mike.looijmans@topic.nl>
15*bc4d251eSMike Looijmans
16*bc4d251eSMike Looijmansproperties:
17*bc4d251eSMike Looijmans  compatible:
18*bc4d251eSMike Looijmans    enum:
19*bc4d251eSMike Looijmans      - ti,ads1298
20*bc4d251eSMike Looijmans
21*bc4d251eSMike Looijmans  reg:
22*bc4d251eSMike Looijmans    maxItems: 1
23*bc4d251eSMike Looijmans
24*bc4d251eSMike Looijmans  spi-cpha: true
25*bc4d251eSMike Looijmans
26*bc4d251eSMike Looijmans  reset-gpios:
27*bc4d251eSMike Looijmans    maxItems: 1
28*bc4d251eSMike Looijmans
29*bc4d251eSMike Looijmans  avdd-supply:
30*bc4d251eSMike Looijmans    description:
31*bc4d251eSMike Looijmans      Analog power supply, voltage between AVDD and AVSS. When providing a
32*bc4d251eSMike Looijmans      symmetric +/- 2.5V, the regulator should report 5V.
33*bc4d251eSMike Looijmans
34*bc4d251eSMike Looijmans  vref-supply:
35*bc4d251eSMike Looijmans    description:
36*bc4d251eSMike Looijmans      Optional reference voltage. If omitted, internal reference is used,
37*bc4d251eSMike Looijmans      which is 2.4V when analog supply is below 4.4V, 4V otherwise.
38*bc4d251eSMike Looijmans
39*bc4d251eSMike Looijmans  clocks:
40*bc4d251eSMike Looijmans    description: Optional 2.048 MHz external source clock on CLK pin
41*bc4d251eSMike Looijmans    maxItems: 1
42*bc4d251eSMike Looijmans
43*bc4d251eSMike Looijmans  interrupts:
44*bc4d251eSMike Looijmans    description: Interrupt on DRDY pin, triggers on falling edge
45*bc4d251eSMike Looijmans    maxItems: 1
46*bc4d251eSMike Looijmans
47*bc4d251eSMike Looijmans  label: true
48*bc4d251eSMike Looijmans
49*bc4d251eSMike Looijmansrequired:
50*bc4d251eSMike Looijmans  - compatible
51*bc4d251eSMike Looijmans  - reg
52*bc4d251eSMike Looijmans  - avdd-supply
53*bc4d251eSMike Looijmans  - interrupts
54*bc4d251eSMike Looijmans
55*bc4d251eSMike LooijmansallOf:
56*bc4d251eSMike Looijmans  - $ref: /schemas/spi/spi-peripheral-props.yaml#
57*bc4d251eSMike Looijmans
58*bc4d251eSMike LooijmansunevaluatedProperties: false
59*bc4d251eSMike Looijmans
60*bc4d251eSMike Looijmansexamples:
61*bc4d251eSMike Looijmans  - |
62*bc4d251eSMike Looijmans    #include <dt-bindings/gpio/gpio.h>
63*bc4d251eSMike Looijmans    #include <dt-bindings/interrupt-controller/irq.h>
64*bc4d251eSMike Looijmans    spi {
65*bc4d251eSMike Looijmans        #address-cells = <1>;
66*bc4d251eSMike Looijmans        #size-cells = <0>;
67*bc4d251eSMike Looijmans
68*bc4d251eSMike Looijmans        adc@1 {
69*bc4d251eSMike Looijmans          reg = <1>;
70*bc4d251eSMike Looijmans          compatible = "ti,ads1298";
71*bc4d251eSMike Looijmans          label = "ads1298-1-ecg";
72*bc4d251eSMike Looijmans          avdd-supply = <&reg_iso_5v_a>;
73*bc4d251eSMike Looijmans          clocks = <&clk_ads1298>;
74*bc4d251eSMike Looijmans          interrupt-parent = <&gpio0>;
75*bc4d251eSMike Looijmans          interrupts = <78 IRQ_TYPE_EDGE_FALLING>;
76*bc4d251eSMike Looijmans          spi-max-frequency = <20000000>;
77*bc4d251eSMike Looijmans          spi-cpha;
78*bc4d251eSMike Looijmans        };
79*bc4d251eSMike Looijmans    };
80*bc4d251eSMike Looijmans...
81