Path: blob/main/sys/contrib/device-tree/Bindings/hwmon/ina3221.txt
48375 views
Texas Instruments INA3221 Device Tree Bindings121) ina3221 node3Required properties:4- compatible: Must be "ti,ina3221"5- reg: I2C address67Optional properties:8- ti,single-shot: This chip has two power modes: single-shot (chip takes one9measurement and then shuts itself down) and continuous (10chip takes continuous measurements). The continuous mode is11more reliable and suitable for hardware monitor type device,12but the single-shot mode is more power-friendly and useful13for battery-powered device which cares power consumptions14while still needs some measurements occasionally.15If this property is present, the single-shot mode will be16used, instead of the default continuous one for monitoring.1718= The node contains optional child nodes for three channels =19= Each child node describes the information of input source =2021- #address-cells: Required only if a child node is present. Must be 1.22- #size-cells: Required only if a child node is present. Must be 0.23242) child nodes25Required properties:26- reg: Must be 0, 1 or 2, corresponding to IN1, IN2 or IN3 port of INA32212728Optional properties:29- label: Name of the input source30- shunt-resistor-micro-ohms: Shunt resistor value in micro-Ohm3132Example:3334ina3221@40 {35compatible = "ti,ina3221";36reg = <0x40>;37#address-cells = <1>;38#size-cells = <0>;3940input@0 {41reg = <0x0>;42status = "disabled";43};44input@1 {45reg = <0x1>;46shunt-resistor-micro-ohms = <5000>;47};48input@2 {49reg = <0x2>;50label = "VDD_5V";51shunt-resistor-micro-ohms = <5000>;52};53};545556