Information about iio:device0 ui_input_{0..2} (t210)

Is there some documentation about the meaning of ui_input_{0…2}, e.g. cat /sys/bus/i2c/drivers/ina3221x/6-0040/iio:device0/ui_input_* values? (Thx)

Hi beyondTime,

Please refer to the following instruction for the sysfs node of INA3221.
NVIDIA Jetson Linux Developer Guide : Clock Frequency and Power Management | NVIDIA Docs

Thanks for the reference to power management node explanation for various Jetson boards. It mentions (almost) all nodes, including a short description, but ‘ui_input’ node is missing on that documentation page.

If it’s a kernel module related output (from ina3221 hw monitoring ic), there should be a reference within source code or header file for a driver.

# ls -al /sys/bus/i2c/drivers/ina3221x/6-0040/iio:device0
total 0
drwxr-xr-x 3 root root    0 déc.  27 02:32 .
drwxr-xr-x 4 root root    0 déc.  27 02:32 ..
-rw------- 1 root root 4096 déc.  27 02:32 crit_current_limit_0
-rw------- 1 root root 4096 déc.  27 02:32 crit_current_limit_1
-rw------- 1 root root 4096 déc.  27 02:32 crit_current_limit_2
-rw------- 1 root root 4096 déc.  27 02:32 crit_current_limit_sum
-rw------- 1 root root 4096 déc.  27 02:32 crit_power_limit_0
-rw------- 1 root root 4096 déc.  27 02:32 crit_power_limit_1
-rw------- 1 root root 4096 déc.  27 02:32 crit_power_limit_2
-r--r--r-- 1 root root 4096 déc.  27 02:32 dev
-rw------- 1 root root 4096 déc.  27 02:32 in_current0_input
-rw------- 1 root root 4096 déc.  27 02:32 in_current0_trigger_input
-rw------- 1 root root 4096 déc.  27 02:32 in_current1_input
-rw------- 1 root root 4096 déc.  27 02:32 in_current1_trigger_input
-rw------- 1 root root 4096 déc.  27 02:32 in_current2_input
-rw------- 1 root root 4096 déc.  27 02:32 in_current2_trigger_input
-rw------- 1 root root 4096 déc.  27 02:32 in_current_sum_input
-rw------- 1 root root 4096 déc.  27 02:32 in_power0_input
-rw------- 1 root root 4096 déc.  27 02:32 in_power0_trigger_input
-rw------- 1 root root 4096 déc.  27 02:32 in_power1_input
-rw------- 1 root root 4096 déc.  27 02:32 in_power1_trigger_input
-rw------- 1 root root 4096 déc.  27 02:32 in_power2_input
-rw------- 1 root root 4096 déc.  27 02:32 in_power2_trigger_input
-rw------- 1 root root 4096 déc.  27 02:32 in_voltage0_input
-rw------- 1 root root 4096 déc.  27 02:32 in_voltage1_input
-rw------- 1 root root 4096 déc.  27 02:32 in_voltage2_input
-r--r--r-- 1 root root 4096 déc.  27 02:32 name
lrwxrwxrwx 1 root root    0 déc.  27 02:32 of_node -> ../../../../../../firmware/devicetree/base/host1x/i2c@546c0000/ina3221x@40
-rw------- 1 root root 4096 déc.  27 02:32 polling_delay_0
-rw------- 1 root root 4096 déc.  27 02:32 polling_delay_1
-rw------- 1 root root 4096 déc.  27 02:32 polling_delay_2
drwxr-xr-x 2 root root    0 déc.  27 02:32 power
-rw------- 1 root root 4096 déc.  27 02:32 rail_name_0
-rw------- 1 root root 4096 déc.  27 02:32 rail_name_1
-rw------- 1 root root 4096 déc.  27 02:32 rail_name_2
-rw------- 1 root root 4096 déc.  27 02:32 running_mode
lrwxrwxrwx 1 root root    0 déc.  27 02:32 subsystem -> ../../../../../../bus/iio
-rw-r--r-- 1 root root 4096 déc.  27 02:32 uevent
-rw------- 1 root root 4096 déc.  27 02:32 ui_input_0
-rw------- 1 root root 4096 déc.  27 02:32 ui_input_1
-rw------- 1 root root 4096 déc.  27 02:32 ui_input_2
-rw------- 1 root root 4096 déc.  27 02:32 warn_current_limit_0
-rw------- 1 root root 4096 déc.  27 02:32 warn_current_limit_1
-rw------- 1 root root 4096 déc.  27 02:32 warn_current_limit_2

They(ui_input_x) are just the voltage and current for different channel(x) and you could find more details in ina230.c.

Thank you for explaining and the source reference.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.