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,ltc2945.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices LTC2945 wide range i2c power monitor
8
9maintainers:
10  - Guenter Roeck <linux@roeck-us.net>
11
12description: |
13  Analog Devices LTC2945 wide range i2c power monitor over I2C.
14
15  https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2945.pdf
16
17properties:
18  compatible:
19    enum:
20      - adi,ltc2945
21
22  reg:
23    maxItems: 1
24
25  shunt-resistor-micro-ohms:
26    description:
27      Shunt resistor value in micro-Ohms
28    default: 1000
29
30required:
31  - compatible
32  - reg
33
34additionalProperties: false
35
36examples:
37  - |
38    i2c {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        power-monitor@6e {
43            compatible = "adi,ltc2945";
44            reg = <0x6e>;
45            /* 10 milli-Ohm shunt resistor */
46            shunt-resistor-micro-ohms = <10000>;
47        };
48    };
49...
50