xref: /linux/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml (revision 1260ed77798502de9c98020040d2995008de10cc)
115d4a6f7SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
215d4a6f7SKrzysztof Kozlowski%YAML 1.2
315d4a6f7SKrzysztof Kozlowski---
415d4a6f7SKrzysztof Kozlowski$id: http://devicetree.org/schemas/hwmon/adi,adm1275.yaml#
515d4a6f7SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
615d4a6f7SKrzysztof Kozlowski
7379bb1f4SJose Ramon San Buenaventuratitle: Analog Devices ADM1075/ADM127x/ADM1281/ADM129x digital power monitors
815d4a6f7SKrzysztof Kozlowski
915d4a6f7SKrzysztof Kozlowskimaintainers:
1015d4a6f7SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
1115d4a6f7SKrzysztof Kozlowski
1215d4a6f7SKrzysztof Kozlowskidescription: |
1315d4a6f7SKrzysztof Kozlowski  The ADM1293 and ADM1294 are high accuracy integrated digital power monitors
1415d4a6f7SKrzysztof Kozlowski  that offer digital current, voltage, and power monitoring using an on-chip,
1515d4a6f7SKrzysztof Kozlowski  12-bit analog-to-digital converter (ADC), communicated through a PMBus
1615d4a6f7SKrzysztof Kozlowski  compliant I2C interface.
1715d4a6f7SKrzysztof Kozlowski
1815d4a6f7SKrzysztof Kozlowski  Datasheets:
1915d4a6f7SKrzysztof Kozlowski    https://www.analog.com/en/products/adm1294.html
2015d4a6f7SKrzysztof Kozlowski
2115d4a6f7SKrzysztof Kozlowskiproperties:
2215d4a6f7SKrzysztof Kozlowski  compatible:
2315d4a6f7SKrzysztof Kozlowski    enum:
2415d4a6f7SKrzysztof Kozlowski      - adi,adm1075
2515d4a6f7SKrzysztof Kozlowski      - adi,adm1272
26*2b2b62a9SJohn Erasmus Mari Geronimo      - adi,adm1273
2715d4a6f7SKrzysztof Kozlowski      - adi,adm1275
2815d4a6f7SKrzysztof Kozlowski      - adi,adm1276
2915d4a6f7SKrzysztof Kozlowski      - adi,adm1278
30379bb1f4SJose Ramon San Buenaventura      - adi,adm1281
3115d4a6f7SKrzysztof Kozlowski      - adi,adm1293
3215d4a6f7SKrzysztof Kozlowski      - adi,adm1294
3315d4a6f7SKrzysztof Kozlowski
3415d4a6f7SKrzysztof Kozlowski  reg:
3515d4a6f7SKrzysztof Kozlowski    maxItems: 1
3615d4a6f7SKrzysztof Kozlowski
37a1138701SPotin Lai  adi,volt-curr-sample-average:
38a1138701SPotin Lai    description: |
39a1138701SPotin Lai      Number of samples to be used to report voltage and current values.
40a1138701SPotin Lai    $ref: /schemas/types.yaml#/definitions/uint32
41a1138701SPotin Lai    enum: [1, 2, 4, 8, 16, 32, 64, 128]
42a1138701SPotin Lai
43a1138701SPotin Lai  adi,power-sample-average:
44a1138701SPotin Lai    description: |
45a1138701SPotin Lai      Number of samples to be used to report power values.
46a1138701SPotin Lai    $ref: /schemas/types.yaml#/definitions/uint32
47a1138701SPotin Lai    enum: [1, 2, 4, 8, 16, 32, 64, 128]
48a1138701SPotin Lai
49a1138701SPotin LaiallOf:
5009458a0eSKrzysztof Kozlowski  - $ref: hwmon-common.yaml#
51a1138701SPotin Lai  - if:
52a1138701SPotin Lai      properties:
53a1138701SPotin Lai        compatible:
54a1138701SPotin Lai          contains:
55a1138701SPotin Lai            enum:
56a1138701SPotin Lai              - adi,adm1075
57a1138701SPotin Lai              - adi,adm1276
58a1138701SPotin Lai    then:
59a1138701SPotin Lai      properties:
60a1138701SPotin Lai        adi,volt-curr-sample-average:
61a1138701SPotin Lai          default: 128
62a1138701SPotin Lai        adi,power-sample-average: false
63a1138701SPotin Lai
64a1138701SPotin Lai  - if:
65a1138701SPotin Lai      properties:
66a1138701SPotin Lai        compatible:
67a1138701SPotin Lai          contains:
68a1138701SPotin Lai            enum:
69a1138701SPotin Lai              - adi,adm1275
70a1138701SPotin Lai    then:
71a1138701SPotin Lai      properties:
72a1138701SPotin Lai        adi,volt-curr-sample-average:
73a1138701SPotin Lai          default: 16
74a1138701SPotin Lai        adi,power-sample-average: false
75a1138701SPotin Lai
76a1138701SPotin Lai  - if:
77a1138701SPotin Lai      properties:
78a1138701SPotin Lai        compatible:
79a1138701SPotin Lai          contains:
80a1138701SPotin Lai            enum:
81a1138701SPotin Lai              - adi,adm1272
82*2b2b62a9SJohn Erasmus Mari Geronimo              - adi,adm1273
83a1138701SPotin Lai    then:
84a1138701SPotin Lai      properties:
85a1138701SPotin Lai        adi,volt-curr-sample-average:
86a1138701SPotin Lai          default: 128
87a1138701SPotin Lai        adi,power-sample-average:
88a1138701SPotin Lai          default: 128
89a1138701SPotin Lai
90a1138701SPotin Lai  - if:
91a1138701SPotin Lai      properties:
92a1138701SPotin Lai        compatible:
93a1138701SPotin Lai          contains:
94a1138701SPotin Lai            enum:
95a1138701SPotin Lai              - adi,adm1278
96379bb1f4SJose Ramon San Buenaventura              - adi,adm1281
97a1138701SPotin Lai              - adi,adm1293
98a1138701SPotin Lai              - adi,adm1294
99a1138701SPotin Lai    then:
100a1138701SPotin Lai      properties:
101a1138701SPotin Lai        adi,volt-curr-sample-average:
102a1138701SPotin Lai          default: 128
103a1138701SPotin Lai        adi,power-sample-average:
104a1138701SPotin Lai          default: 1
105a1138701SPotin Lai
10615d4a6f7SKrzysztof Kozlowskirequired:
10715d4a6f7SKrzysztof Kozlowski  - compatible
10815d4a6f7SKrzysztof Kozlowski  - reg
10915d4a6f7SKrzysztof Kozlowski
11009458a0eSKrzysztof KozlowskiunevaluatedProperties: false
11115d4a6f7SKrzysztof Kozlowski
11215d4a6f7SKrzysztof Kozlowskiexamples:
11315d4a6f7SKrzysztof Kozlowski  - |
11415d4a6f7SKrzysztof Kozlowski    i2c {
11515d4a6f7SKrzysztof Kozlowski        #address-cells = <1>;
11615d4a6f7SKrzysztof Kozlowski        #size-cells = <0>;
11715d4a6f7SKrzysztof Kozlowski
11815d4a6f7SKrzysztof Kozlowski        power-sensor@10 {
11915d4a6f7SKrzysztof Kozlowski            compatible = "adi,adm1272";
12015d4a6f7SKrzysztof Kozlowski            reg = <0x10>;
12115d4a6f7SKrzysztof Kozlowski            shunt-resistor-micro-ohms = <500>;
122a1138701SPotin Lai            adi,volt-curr-sample-average = <128>;
123a1138701SPotin Lai            adi,power-sample-average = <128>;
12415d4a6f7SKrzysztof Kozlowski        };
12515d4a6f7SKrzysztof Kozlowski    };
126