Skip to content

Commit bc4d251

Browse files
MikeLooijmansjic23
authored andcommitted
dt-bindings: iio: adc: ti-ads1298: Add bindings
Bindings for the TI ADS1298 medical ADC. This device is typically used for ECG and similar measurements. Supports data acquisition at configurable scale and sampling frequency. The device has so many options for connecting stuff, at this point the bindings aren't nearly complete but partial bindings are better than no bindings at all. Signed-off-by: Mike Looijmans <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 05f5d78 commit bc4d251

File tree

1 file changed

+80
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)