0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/potentiostat/ti,lmp91000.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Texas Instruments LMP91000 series of potentiostats with I2C control
0008
0009 maintainers:
0010 - Matt Ranostay <matt.ranostay@konsulko.com>
0011
0012 description: |
0013 Typically used as a signal conditioner for chemical sensors.
0014 LMP91000: https://www.ti.com/lit/ds/symlink/lmp91000.pdf
0015 LMP91002: https://www.ti.com/lit/ds/symlink/lmp91002.pdf
0016
0017 properties:
0018 compatible:
0019 enum:
0020 - ti,lmp91000
0021 - ti,lmp91002
0022
0023 reg:
0024 maxItems: 1
0025
0026 io-channels:
0027 maxItems: 1
0028
0029 ti,external-tia-resistor:
0030 $ref: /schemas/types.yaml#/definitions/flag
0031 description:
0032 If the property ti,tia-gain-ohm is not defined this needs to be set to
0033 signal that an external resistor value is being used.
0034
0035 ti,tia-gain-ohm:
0036 $ref: /schemas/types.yaml#/definitions/uint32
0037 enum: [2750, 3500, 7000, 14000, 35000, 120000, 350000]
0038 description:
0039 Internal resistor for the transimpedance amplifier.
0040
0041 ti,rload-ohm:
0042 $ref: /schemas/types.yaml#/definitions/uint32
0043 enum: [10, 33, 50, 100]
0044 description:
0045 Internal resistor load applied to the gas sensor.
0046 Default 100 Ohms.
0047
0048 required:
0049 - compatible
0050 - reg
0051 - io-channels
0052
0053 additionalProperties: false
0054
0055 examples:
0056 - |
0057 i2c {
0058 #address-cells = <1>;
0059 #size-cells = <0>;
0060 lmp91000@48 {
0061 compatible = "ti,lmp91000";
0062 reg = <0x48>;
0063 ti,tia-gain-ohm = <7000>;
0064 ti,rload-ohm = <100>;
0065 io-channels = <&adc>;
0066 };
0067 };
0068 ...