1# Copyright (c) 2023 Carl Zeiss Meditec AG
2# SPDX-License-Identifier: Apache-2.0
3
4
5description: ADLTC2990 Quad I2C Voltage, Current and Temperature Monitor
6
7compatible: "adi,adltc2990"
8
9include: [sensor-device.yaml, i2c-device.yaml]
10
11properties:
12  temperature-format:
13    type: int
14    description: |
15      Define the temperature format. As per the datasheet,
16      b7 Temperature Format Temperature Reported In; Celsius = 0 (Default), Kelvin = 1
17    default: 0
18    enum:
19      - 0
20      - 1
21
22  acquistion-format:
23    type: int
24    description: |
25      Define the acquisition format. As per the datasheet,
26      b6 Repeat/Single Repeated Acquisition = 0 (Default), Single Acquisition = 1
27    default: 0
28    enum:
29      - 0
30      - 1
31
32  measurement-mode:
33    type: array
34    description: |
35      An array of two integers for configuring the chip measurement mode.
36
37      The first integer defines the bits 2..0 in the control register. In all
38      cases the internal temperature and supply voltage are measured. In
39      addition the following input measurements are enabled per mode:
40      As per the datasheet,
41      -------------------------------------------
42      b[2:0] | Mode [2:0] | Mode Description
43         0   |  0 0 0     | V1, V2, TR2 (Default)
44         1   |  0 0 1     | V1V2, TR2
45         2   |  0 1 0     | V1V2, V3, V4
46         3   |  0 1 1     | TR1, V3, V4
47         4   |  1 0 0     | TR1, V3V4
48         5   |  1 0 1     | TR1, TR2
49         6   |  1 1 0     | V1V2, V3V4
50         7   |  1 1 1     | V1, V2, V3, V4
51      -------------------------------------------
52      The second integer defines the bits 4..3 in the control register. This
53      allows a subset of the measurements to be enabled:
54      As Per the Datasheet,
55      ------------------------------------------------------------
56      b[4:3] | Mode [4:3] | Mode Description
57         0   |  0 0       | Internal Temperature Only (Default)
58         1   |  0 1       | TR1, V1 or V1V2 Only per Mode [2:0]
59         2   |  1 0       | TR2, V3 or V3V4 Only per Mode [2:0]
60         3   |  1 1       | All Measurements per Mode [2:0]
61      ------------------------------------------------------------
62    default: [0, 0]
63
64  pins-v1-v2-current-resistor:
65    type: int
66    description: Define the resistor to be used for measuring current in microohms
67
68  pin-v1-voltage-divider-resistors:
69    type: array
70    description: Define the resistor to be used for measuring Vout in milliohms
71
72  pin-v2-voltage-divider-resistors:
73    type: array
74    description: Define the resistor to be used for measuring Vout in milliohms
75
76  pins-v3-v4-current-resistor:
77    type: int
78    description: Define the resistor to be used for measuring current in microohms
79
80  pin-v3-voltage-divider-resistors:
81    type: array
82    description: Define the resistor to be used for measuring Vout in milliohms
83
84  pin-v4-voltage-divider-resistors:
85    type: array
86    description: Define the resistor to be used for measuring Vout in milliohms
87