xref: /openbmc/linux/Documentation/devicetree/bindings/hwmon/adi,ltc2992.yaml (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1fe8c573cSAlexandru Tachici# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2fe8c573cSAlexandru Tachici%YAML 1.2
3fe8c573cSAlexandru Tachici---
4fe8c573cSAlexandru Tachici$id: http://devicetree.org/schemas/hwmon/adi,ltc2992.yaml#
5fe8c573cSAlexandru Tachici$schema: http://devicetree.org/meta-schemas/core.yaml#
6fe8c573cSAlexandru Tachici
7fe8c573cSAlexandru Tachicititle: Linear Technology 2992 Power Monitor
8fe8c573cSAlexandru Tachici
9fe8c573cSAlexandru Tachicimaintainers:
10fe8c573cSAlexandru Tachici  - Alexandru Tachici <alexandru.tachici@analog.com>
11fe8c573cSAlexandru Tachici
12fe8c573cSAlexandru Tachicidescription: |
13fe8c573cSAlexandru Tachici  Linear Technology 2992 Dual Wide Range Power Monitor
14fe8c573cSAlexandru Tachici  https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2992.pdf
15fe8c573cSAlexandru Tachici
16fe8c573cSAlexandru Tachiciproperties:
17fe8c573cSAlexandru Tachici  compatible:
18fe8c573cSAlexandru Tachici    enum:
19fe8c573cSAlexandru Tachici      - adi,ltc2992
20fe8c573cSAlexandru Tachici
21fe8c573cSAlexandru Tachici  reg:
22fe8c573cSAlexandru Tachici    maxItems: 1
23fe8c573cSAlexandru Tachici
24fe8c573cSAlexandru Tachici  '#address-cells':
25fe8c573cSAlexandru Tachici    const: 1
26fe8c573cSAlexandru Tachici
27fe8c573cSAlexandru Tachici  '#size-cells':
28fe8c573cSAlexandru Tachici    const: 0
29fe8c573cSAlexandru Tachici
30fe8c573cSAlexandru Tachici  avcc-supply: true
31fe8c573cSAlexandru Tachici
32fe8c573cSAlexandru TachicipatternProperties:
33fe8c573cSAlexandru Tachici  "^channel@([0-1])$":
34fe8c573cSAlexandru Tachici    type: object
35e62fc182SRob Herring    additionalProperties: false
36fe8c573cSAlexandru Tachici    description: |
37fe8c573cSAlexandru Tachici      Represents the two supplies to be monitored.
38fe8c573cSAlexandru Tachici
39fe8c573cSAlexandru Tachici    properties:
40fe8c573cSAlexandru Tachici      reg:
41fe8c573cSAlexandru Tachici        description: |
42fe8c573cSAlexandru Tachici          The channel number. LTC2992 can monitor two supplies.
43fe8c573cSAlexandru Tachici        items:
44fe8c573cSAlexandru Tachici          minimum: 0
45fe8c573cSAlexandru Tachici          maximum: 1
46fe8c573cSAlexandru Tachici
47fe8c573cSAlexandru Tachici      shunt-resistor-micro-ohms:
48fe8c573cSAlexandru Tachici        description:
49*47aab533SBjorn Helgaas          The value of current sense resistor in microohms.
50fe8c573cSAlexandru Tachici
51fe8c573cSAlexandru Tachicirequired:
52fe8c573cSAlexandru Tachici  - compatible
53fe8c573cSAlexandru Tachici  - reg
54fe8c573cSAlexandru Tachici
55fe8c573cSAlexandru TachiciadditionalProperties: false
56fe8c573cSAlexandru Tachici
57fe8c573cSAlexandru Tachiciexamples:
58fe8c573cSAlexandru Tachici  - |
5908be4233SKrzysztof Kozlowski    i2c {
60fe8c573cSAlexandru Tachici        #address-cells = <1>;
61fe8c573cSAlexandru Tachici        #size-cells = <0>;
62fe8c573cSAlexandru Tachici
6322f0fd20SKrzysztof Kozlowski        ltc2992@6f {
64fe8c573cSAlexandru Tachici            #address-cells = <1>;
65fe8c573cSAlexandru Tachici            #size-cells = <0>;
66fe8c573cSAlexandru Tachici
67fe8c573cSAlexandru Tachici            compatible = "adi,ltc2992";
6822f0fd20SKrzysztof Kozlowski            reg = <0x6f>;
69fe8c573cSAlexandru Tachici
70fe8c573cSAlexandru Tachici            channel@0 {
71fe8c573cSAlexandru Tachici                reg = <0x0>;
72fe8c573cSAlexandru Tachici                shunt-resistor-micro-ohms = <10000>;
73fe8c573cSAlexandru Tachici            };
74fe8c573cSAlexandru Tachici
75fe8c573cSAlexandru Tachici            channel@1 {
76fe8c573cSAlexandru Tachici                reg = <0x1>;
77fe8c573cSAlexandru Tachici                shunt-resistor-micro-ohms = <10000>;
78fe8c573cSAlexandru Tachici            };
79fe8c573cSAlexandru Tachici        };
80fe8c573cSAlexandru Tachici    };
81fe8c573cSAlexandru Tachici...
82