xref: /freebsd/sys/contrib/device-tree/Bindings/iio/potentiostat/ti,lmp91000.yaml (revision 31ba4ce8898f9dfa5e7f054fdbc26e50a599a6e3)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/potentiostat/ti,lmp91000.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments LMP91000 series of potentiostats with I2C control
8
9maintainers:
10  - Matt Ranostay <matt.ranostay@konsulko.com>
11
12description: |
13  Typically used as a signal conditioner for chemical sensors.
14  LMP91000: https://www.ti.com/lit/ds/symlink/lmp91000.pdf
15  LMP91002: https://www.ti.com/lit/ds/symlink/lmp91002.pdf
16
17properties:
18  compatible:
19    enum:
20      - ti,lmp91000
21      - ti,lmp91002
22
23  reg:
24    maxItems: 1
25
26  io-channels:
27    maxItems: 1
28
29  ti,external-tia-resistor:
30    $ref: /schemas/types.yaml#/definitions/flag
31    description:
32      If the property ti,tia-gain-ohm is not defined this needs to be set to
33      signal that an external resistor value is being used.
34
35  ti,tia-gain-ohm:
36    $ref: /schemas/types.yaml#/definitions/uint32
37    enum: [2750, 3500, 7000, 14000, 35000, 120000, 350000]
38    description:
39      Internal resistor for the transimpedance amplifier.
40
41  ti,rload-ohm:
42    $ref: /schemas/types.yaml#/definitions/uint32
43    enum: [10, 33, 50, 100]
44    description:
45      Internal resistor load applied to the gas sensor.
46      Default 100 Ohms.
47
48required:
49  - compatible
50  - reg
51  - io-channels
52
53additionalProperties: false
54
55examples:
56  - |
57    i2c {
58        #address-cells = <1>;
59        #size-cells = <0>;
60        lmp91000@48 {
61            compatible = "ti,lmp91000";
62            reg = <0x48>;
63            ti,tia-gain-ohm = <7000>;
64            ti,rload-ohm = <100>;
65            io-channels = <&adc>;
66        };
67    };
68...
69