Part Number: INA223
We are using the INA223 for voltage/current monitoring on one of our arm boards.
It is interfaced on I2C BUS and the board is up with linux kernel v4.1.15
I am wondering whether there is any linux driver and user space application available to spped up our development on using this device ?
your help is greatly appreciated. Looking forward for your response.
Please do let me know if you need more information.
In reply to siva prasad15:
Now I am able to see the ina223 device under
# cat /sys/class/hwmon/hwmon0/name
ina223# cat /sys/class/hwmon/hwmon0/curr1_input352# cat /sys/class/hwmon/hwmon0/in0_input0# cat /sys/class/hwmon/hwmon0/nameina223~# cat /sys/class/hwmon/hwmon0/power1_input0
in the dmesg, I can see the
~# dmesg | grep ina223[ 0.246615] i2c i2c-3: of_i2c: register /soc/aips-bus@30800000/i2c@30a50000/ina223@41[ 0.246772] i2c i2c-3: client [ina223] registered with bus id 3-0041[ 1.871869] ina223 3-0041: probe[ 1.872693] ina223 3-0041: power monitor ina223 (Rshunt = 10000 uOhm)[ 1.877880] i2c-core: driver [ina223] registered[ 4.551582] ina223 3-0041: uevent[ 4.635567] ina223 3-0041: uevent[ 4.635820] ina223 3-0041: uevent[ 4.636053] ina223 3-0041: uevent
Now at this stage, I am not sure how to read the current & voltage readings from the driver populated sys filesystem. Could you please assist.
How can i change the configuration register value from the sysfs using the ina223 driver.
Please provide me your inputs on this topic. Looking forward for your response
You cannot read the current or voltage from the INA223 over I2C, it is an analog output only device, not I2C. The I2C interface is only used to select which signal is sent out of the analog output pin, you have to then sample that signal yourself.
If you are wanting to read these values over I2C then please select one of the devices in this series that does have an internal ADC. If you would also like Linux support I would recommend one of the devices listed in the Linux driver, as these are already supported.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.