1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/hwmon/ti,ina3221.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Texas Instruments INA3221 Current and Voltage Monitor
10 - Jean Delvare <jdelvare@suse.com>
11 - Guenter Roeck <linux@roeck-us.net>
22 This chip has two power modes: single-shot (chip takes one measurement
23 and then shuts itself down) and continuous (chip takes continuous
24 measurements). The continuous mode is more reliable and suitable for
25 hardware monitor type device, but the single-shot mode is more power-
26 friendly and useful for battery-powered device which cares power
27 consumptions while still needs some measurements occasionally.
29 If this property is present, the single-shot mode will be used, instead
30 of the default continuous one for monitoring.
31 $ref: /schemas/types.yaml#/definitions/flag
34 description: Required only if a child node is present.
38 description: Required only if a child node is present.
43 description: The node contains optional child nodes for three channels.
44 Each child node describes the information of input source. Input channels
45 default to enabled in the chip. Unless channels are explicitly disabled
46 in device-tree, input channels will be enabled.
48 additionalProperties: false
51 description: Must be 0, 1 and 2, corresponding to the IN1, IN2 or IN3
52 ports of the INA3221, respectively.
56 description: name of the input source
58 shunt-resistor-micro-ohms:
59 description: shunt resistor value in micro-Ohm
63 The INA3221 has a critical alert pin that can be controlled by the
64 summation control function. This function adds the single
65 shunt-voltage conversions for the desired channels in order to
66 compare the combined sum to the programmed limit. The Shunt-Voltage
67 Sum Limit register contains the programmed value that is compared
68 to the value in the Shunt-Voltage Sum register in order to
69 determine if the total summed limit is exceeded. If the
70 shunt-voltage sum limit value is exceeded, the critical alert pin
73 For the summation limit to have a meaningful value, it is necessary
74 to use the same shunt-resistor value on all enabled channels. If
75 this is not the case or if a channel should not be used for
76 triggering the critical alert pin, then this property can be used
77 exclude specific channels from the summation control function.
87 additionalProperties: false
96 compatible = "ti,ina3221";
104 * Input channels are enabled by default in the device and so
105 * to disable, must be explicitly disabled in device-tree.
112 shunt-resistor-micro-ohms = <5000>;
118 shunt-resistor-micro-ohms = <5000>;