xref: /freebsd/sys/contrib/device-tree/Bindings/hwmon/adi,adm1275.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot
55def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/hwmon/adi,adm1275.yaml#
65def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
75def4c47SEmmanuel Vadot
8*7d0873ebSEmmanuel Vadottitle: Analog Devices ADM1075/ADM127x/ADM1281/ADM129x digital power monitors
95def4c47SEmmanuel Vadot
105def4c47SEmmanuel Vadotmaintainers:
115def4c47SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
125def4c47SEmmanuel Vadot
135def4c47SEmmanuel Vadotdescription: |
145def4c47SEmmanuel Vadot  The ADM1293 and ADM1294 are high accuracy integrated digital power monitors
155def4c47SEmmanuel Vadot  that offer digital current, voltage, and power monitoring using an on-chip,
165def4c47SEmmanuel Vadot  12-bit analog-to-digital converter (ADC), communicated through a PMBus
175def4c47SEmmanuel Vadot  compliant I2C interface.
185def4c47SEmmanuel Vadot
195def4c47SEmmanuel Vadot  Datasheets:
205def4c47SEmmanuel Vadot    https://www.analog.com/en/products/adm1294.html
215def4c47SEmmanuel Vadot
225def4c47SEmmanuel Vadotproperties:
235def4c47SEmmanuel Vadot  compatible:
245def4c47SEmmanuel Vadot    enum:
255def4c47SEmmanuel Vadot      - adi,adm1075
265def4c47SEmmanuel Vadot      - adi,adm1272
275def4c47SEmmanuel Vadot      - adi,adm1275
285def4c47SEmmanuel Vadot      - adi,adm1276
295def4c47SEmmanuel Vadot      - adi,adm1278
30*7d0873ebSEmmanuel Vadot      - adi,adm1281
315def4c47SEmmanuel Vadot      - adi,adm1293
325def4c47SEmmanuel Vadot      - adi,adm1294
335def4c47SEmmanuel Vadot
345def4c47SEmmanuel Vadot  reg:
355def4c47SEmmanuel Vadot    maxItems: 1
365def4c47SEmmanuel Vadot
37c9ccf3a3SEmmanuel Vadot  adi,volt-curr-sample-average:
38c9ccf3a3SEmmanuel Vadot    description: |
39c9ccf3a3SEmmanuel Vadot      Number of samples to be used to report voltage and current values.
40c9ccf3a3SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
41c9ccf3a3SEmmanuel Vadot    enum: [1, 2, 4, 8, 16, 32, 64, 128]
42c9ccf3a3SEmmanuel Vadot
43c9ccf3a3SEmmanuel Vadot  adi,power-sample-average:
44c9ccf3a3SEmmanuel Vadot    description: |
45c9ccf3a3SEmmanuel Vadot      Number of samples to be used to report power values.
46c9ccf3a3SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
47c9ccf3a3SEmmanuel Vadot    enum: [1, 2, 4, 8, 16, 32, 64, 128]
48c9ccf3a3SEmmanuel Vadot
49c9ccf3a3SEmmanuel VadotallOf:
5001950c46SEmmanuel Vadot  - $ref: hwmon-common.yaml#
51c9ccf3a3SEmmanuel Vadot  - if:
52c9ccf3a3SEmmanuel Vadot      properties:
53c9ccf3a3SEmmanuel Vadot        compatible:
54c9ccf3a3SEmmanuel Vadot          contains:
55c9ccf3a3SEmmanuel Vadot            enum:
56c9ccf3a3SEmmanuel Vadot              - adi,adm1075
57c9ccf3a3SEmmanuel Vadot              - adi,adm1276
58c9ccf3a3SEmmanuel Vadot    then:
59c9ccf3a3SEmmanuel Vadot      properties:
60c9ccf3a3SEmmanuel Vadot        adi,volt-curr-sample-average:
61c9ccf3a3SEmmanuel Vadot          default: 128
62c9ccf3a3SEmmanuel Vadot        adi,power-sample-average: false
63c9ccf3a3SEmmanuel Vadot
64c9ccf3a3SEmmanuel Vadot  - if:
65c9ccf3a3SEmmanuel Vadot      properties:
66c9ccf3a3SEmmanuel Vadot        compatible:
67c9ccf3a3SEmmanuel Vadot          contains:
68c9ccf3a3SEmmanuel Vadot            enum:
69c9ccf3a3SEmmanuel Vadot              - adi,adm1275
70c9ccf3a3SEmmanuel Vadot    then:
71c9ccf3a3SEmmanuel Vadot      properties:
72c9ccf3a3SEmmanuel Vadot        adi,volt-curr-sample-average:
73c9ccf3a3SEmmanuel Vadot          default: 16
74c9ccf3a3SEmmanuel Vadot        adi,power-sample-average: false
75c9ccf3a3SEmmanuel Vadot
76c9ccf3a3SEmmanuel Vadot  - if:
77c9ccf3a3SEmmanuel Vadot      properties:
78c9ccf3a3SEmmanuel Vadot        compatible:
79c9ccf3a3SEmmanuel Vadot          contains:
80c9ccf3a3SEmmanuel Vadot            enum:
81c9ccf3a3SEmmanuel Vadot              - adi,adm1272
82c9ccf3a3SEmmanuel Vadot    then:
83c9ccf3a3SEmmanuel Vadot      properties:
84c9ccf3a3SEmmanuel Vadot        adi,volt-curr-sample-average:
85c9ccf3a3SEmmanuel Vadot          default: 128
86c9ccf3a3SEmmanuel Vadot        adi,power-sample-average:
87c9ccf3a3SEmmanuel Vadot          default: 128
88c9ccf3a3SEmmanuel Vadot
89c9ccf3a3SEmmanuel Vadot  - if:
90c9ccf3a3SEmmanuel Vadot      properties:
91c9ccf3a3SEmmanuel Vadot        compatible:
92c9ccf3a3SEmmanuel Vadot          contains:
93c9ccf3a3SEmmanuel Vadot            enum:
94c9ccf3a3SEmmanuel Vadot              - adi,adm1278
95*7d0873ebSEmmanuel Vadot              - adi,adm1281
96c9ccf3a3SEmmanuel Vadot              - adi,adm1293
97c9ccf3a3SEmmanuel Vadot              - adi,adm1294
98c9ccf3a3SEmmanuel Vadot    then:
99c9ccf3a3SEmmanuel Vadot      properties:
100c9ccf3a3SEmmanuel Vadot        adi,volt-curr-sample-average:
101c9ccf3a3SEmmanuel Vadot          default: 128
102c9ccf3a3SEmmanuel Vadot        adi,power-sample-average:
103c9ccf3a3SEmmanuel Vadot          default: 1
104c9ccf3a3SEmmanuel Vadot
1055def4c47SEmmanuel Vadotrequired:
1065def4c47SEmmanuel Vadot  - compatible
1075def4c47SEmmanuel Vadot  - reg
1085def4c47SEmmanuel Vadot
10901950c46SEmmanuel VadotunevaluatedProperties: false
1105def4c47SEmmanuel Vadot
1115def4c47SEmmanuel Vadotexamples:
1125def4c47SEmmanuel Vadot  - |
1135def4c47SEmmanuel Vadot    i2c {
1145def4c47SEmmanuel Vadot        #address-cells = <1>;
1155def4c47SEmmanuel Vadot        #size-cells = <0>;
1165def4c47SEmmanuel Vadot
1175def4c47SEmmanuel Vadot        power-sensor@10 {
1185def4c47SEmmanuel Vadot            compatible = "adi,adm1272";
1195def4c47SEmmanuel Vadot            reg = <0x10>;
1205def4c47SEmmanuel Vadot            shunt-resistor-micro-ohms = <500>;
121c9ccf3a3SEmmanuel Vadot            adi,volt-curr-sample-average = <128>;
122c9ccf3a3SEmmanuel Vadot            adi,power-sample-average = <128>;
1235def4c47SEmmanuel Vadot        };
1245def4c47SEmmanuel Vadot    };
125