xref: /linux/Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml (revision 6b830c6a023ff6e8fe05dbe47a9e5cd276df09ee)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwmon/renesas,isl28022.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Renesas ISL28022 power monitor
8
9maintainers:
10  - Carsten Spieß <mail@carsten-spiess.de>
11
12description: |
13  The ISL28022 is a power monitor with I2C interface. The device monitors
14  voltage, current via shunt resistor and calculated power.
15
16  Datasheets:
17    https://www.renesas.com/us/en/www/doc/datasheet/isl28022.pdf
18
19properties:
20  compatible:
21    const: renesas,isl28022
22
23  reg:
24    maxItems: 1
25
26  shunt-resistor-micro-ohms:
27    description:
28      Shunt resistor value in micro-Ohm
29    minimum: 800
30    default: 10000
31
32  renesas,shunt-range-microvolt:
33    description:
34      Maximal shunt voltage range of +/- 40 mV, 80 mV, 160 mV or 320 mV
35    default: 320000
36    enum: [40000, 80000, 160000, 320000]
37
38  renesas,average-samples:
39    description:
40      Number of samples to be used to report voltage, current and power values.
41    default: 1
42    $ref: /schemas/types.yaml#/definitions/uint32
43    enum: [1, 2, 4, 8, 16, 32, 64, 128]
44
45required:
46  - compatible
47  - reg
48
49additionalProperties: false
50
51examples:
52  - |
53    i2c {
54        #address-cells = <1>;
55        #size-cells = <0>;
56
57        power-monitor@40 {
58            compatible = "renesas,isl28022";
59            reg = <0x40>;
60            shunt-resistor-micro-ohms = <8000>;
61            renesas,shunt-range-microvolt = <40000>;
62            renesas,average-samples = <128>;
63        };
64    };
65