This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Peter Iliya:
Thanks for your input.
I tried to cross compile the same code. But i get the following error
drivers/hwmon/ina2xx.c: In function ‘ina2xx_probe’:
drivers/hwmon/ina2xx.c:447:27: error: implicit declaration of function ‘of_device_get_match_data’; did you mean ‘of_device_get_modalias’? [-Werror=implicit-function-declaration] chip = (enum ina2xx_ids)of_device_get_match_data(&client->dev);
If you are aware of this error earlier. Please do let me know in first place.
Looks like needs some modification in the code of adding a header or so..
In reply to siva prasad15:
Thanks for your support.
Now, I Succesfully compile the driver with proper changes to device_id and the module inserted succesfully.
But I donot see the corresponding folder created under /sys/class/hwmon/
In my case, hwmon0 is the temperature zone. I can only see that folder.
Am I in right path in usage of this driver ?
I am not sure how to read the register values or the voltage/current values by using the driver.
I am able to see the device with I2C address 0x41 when I probe with i2cdetect -y 3
Let me know if you need more inputs, I can share the code for your reference.
Looking forward for your help
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.