WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / hwmon / adi,ltc2992.yaml
blob64a8fcb7bc463d739dec79e5cb61d6ab8817a00d
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/hwmon/adi,ltc2992.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Linear Technology 2992 Power Monitor
9 maintainers:
10   - Alexandru Tachici <alexandru.tachici@analog.com>
12 description: |
13   Linear Technology 2992 Dual Wide Range Power Monitor
14   https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2992.pdf
16 properties:
17   compatible:
18     enum:
19       - adi,ltc2992
21   reg:
22     maxItems: 1
24   '#address-cells':
25     const: 1
27   '#size-cells':
28     const: 0
30   avcc-supply: true
32 patternProperties:
33   "^channel@([0-1])$":
34     type: object
35     description: |
36       Represents the two supplies to be monitored.
38     properties:
39       reg:
40         description: |
41           The channel number. LTC2992 can monitor two supplies.
42         items:
43           minimum: 0
44           maximum: 1
46       shunt-resistor-micro-ohms:
47         description:
48           The value of curent sense resistor in microohms.
50 required:
51   - compatible
52   - reg
54 additionalProperties: false
56 examples:
57   - |
58     i2c1 {
59         #address-cells = <1>;
60         #size-cells = <0>;
62         ltc2992@6F {
63                 #address-cells = <1>;
64                 #size-cells = <0>;
66                 compatible = "adi,ltc2992";
67                 reg = <0x6F>;
69                 channel@0 {
70                         reg = <0x0>;
71                         shunt-resistor-micro-ohms = <10000>;
72                 };
74                 channel@1 {
75                         reg = <0x1>;
76                         shunt-resistor-micro-ohms = <10000>;
77                 };
78         };
79     };
80 ...