xref: /linux/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1440b075bSKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2e2dbaa65SKrzysztof Kozlowski%YAML 1.2
3e2dbaa65SKrzysztof Kozlowski---
4e2dbaa65SKrzysztof Kozlowski$id: http://devicetree.org/schemas/hwmon/lltc,ltc4151.yaml#
5e2dbaa65SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6e2dbaa65SKrzysztof Kozlowski
7e2dbaa65SKrzysztof Kozlowskititle: LTC4151 High Voltage I2C Current and Voltage Monitor
8e2dbaa65SKrzysztof Kozlowski
9e2dbaa65SKrzysztof Kozlowskimaintainers:
108a1e6bb3SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
11e2dbaa65SKrzysztof Kozlowski
12e2dbaa65SKrzysztof Kozlowskiproperties:
13e2dbaa65SKrzysztof Kozlowski  compatible:
14e2dbaa65SKrzysztof Kozlowski    const: lltc,ltc4151
15e2dbaa65SKrzysztof Kozlowski
16e2dbaa65SKrzysztof Kozlowski  reg:
17e2dbaa65SKrzysztof Kozlowski    maxItems: 1
18e2dbaa65SKrzysztof Kozlowski
19e2dbaa65SKrzysztof Kozlowski  shunt-resistor-micro-ohms:
20e2dbaa65SKrzysztof Kozlowski    description:
21e2dbaa65SKrzysztof Kozlowski      Shunt resistor value in micro-Ohms
22e2dbaa65SKrzysztof Kozlowski    default: 1000
23e2dbaa65SKrzysztof Kozlowski
24e2dbaa65SKrzysztof Kozlowskirequired:
25e2dbaa65SKrzysztof Kozlowski  - compatible
26e2dbaa65SKrzysztof Kozlowski  - reg
27e2dbaa65SKrzysztof Kozlowski
28*a095d8c0SKrzysztof KozlowskiallOf:
29*a095d8c0SKrzysztof Kozlowski  - $ref: hwmon-common.yaml#
30*a095d8c0SKrzysztof Kozlowski
31*a095d8c0SKrzysztof KozlowskiunevaluatedProperties: false
32e2dbaa65SKrzysztof Kozlowski
33e2dbaa65SKrzysztof Kozlowskiexamples:
34e2dbaa65SKrzysztof Kozlowski  - |
35e2dbaa65SKrzysztof Kozlowski    i2c {
36e2dbaa65SKrzysztof Kozlowski        #address-cells = <1>;
37e2dbaa65SKrzysztof Kozlowski        #size-cells = <0>;
38e2dbaa65SKrzysztof Kozlowski
39e2dbaa65SKrzysztof Kozlowski        sensor@6e {
40e2dbaa65SKrzysztof Kozlowski            compatible = "lltc,ltc4151";
41e2dbaa65SKrzysztof Kozlowski            reg = <0x6e>;
42e2dbaa65SKrzysztof Kozlowski            shunt-resistor-micro-ohms = <1500>;
43e2dbaa65SKrzysztof Kozlowski        };
44e2dbaa65SKrzysztof Kozlowski    };
45