^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) ltc2990: Linear Technology LTC2990 power monitor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible: Must be "lltc,ltc2990"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - reg: I2C slave address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - lltc,meas-mode:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) An array of two integers for configuring the chip measurement mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) The first integer defines the bits 2..0 in the control register. In all
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) cases the internal temperature and supply voltage are measured. In
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) addition the following input measurements are enabled per mode:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 0: V1, V2, TR2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 1: V1-V2, TR2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 2: V1-V2, V3, V4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 3: TR1, V3, V4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 4: TR1, V3-V4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 5: TR1, TR2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 6: V1-V2, V3-V4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 7: V1, V2, V3, V4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) The second integer defines the bits 4..3 in the control register. This
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) allows a subset of the measurements to be enabled:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 0: Internal temperature and supply voltage only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 1: TR1, V1 or V1-V2 only per mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 2: TR2, V3 or V3-V4 only per mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 3: All measurements per mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) ltc2990@4c {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) compatible = "lltc,ltc2990";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) reg = <0x4c>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) lltc,meas-mode = <7 3>; /* V1, V2, V3, V4 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) };