^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) Texas Instruments INA3221 Device Tree Bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) 1) ina3221 node
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - compatible: Must be "ti,ina3221"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - reg: I2C address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - ti,single-shot: This chip has two power modes: single-shot (chip takes one
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) measurement and then shuts itself down) and continuous (
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) chip takes continuous measurements). The continuous mode is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) more reliable and suitable for hardware monitor type device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) but the single-shot mode is more power-friendly and useful
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) for battery-powered device which cares power consumptions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) while still needs some measurements occasionally.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) If this property is present, the single-shot mode will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) used, instead of the default continuous one for monitoring.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) = The node contains optional child nodes for three channels =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) = Each child node describes the information of input source =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - #address-cells: Required only if a child node is present. Must be 1.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - #size-cells: Required only if a child node is present. Must be 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 2) child nodes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - reg: Must be 0, 1 or 2, corresponding to IN1, IN2 or IN3 port of INA3221
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - label: Name of the input source
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) - shunt-resistor-micro-ohms: Shunt resistor value in micro-Ohm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) ina3221@40 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) compatible = "ti,ina3221";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) reg = <0x40>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) input@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) reg = <0x0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) status = "disabled";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) input@1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) reg = <0x1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) shunt-resistor-micro-ohms = <5000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) input@2 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) reg = <0x2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) label = "VDD_5V";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) shunt-resistor-micro-ohms = <5000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) };