-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sensor: Add support for INA219 #35538
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting on the binding only.
0890844
to
26ac811
Compare
9c0b5a6
to
41b1309
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. The binding looks good to me now. I didn't review the rest in detail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While working on something else, I discovered samples/drivers/current_sensing, which is a pretty hacky example of getting this exact sensor working on a particular breakout board with a hardcoded I2C device name.
I think it's no longer necessary with this patch -- @leonardp could you please add a commit to this pull request removing the stale sample?
21cfa4d
to
56c1dbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add to tests/drivers/build_all/sensor/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more changes requested, please check my comments. I still see that samples comes before the actual driver, can you re-order commits in proper chronological order?
5a2e09b
to
e46f881
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase and resolve the merge conflict
samples/sensor/ina219/CMakeLists.txt
Outdated
@@ -0,0 +1,8 @@ | |||
# SPDX-License-Identifier: Apache-2.0 | |||
|
|||
cmake_minimum_required(VERSION 3.13.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should now be 3.20.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebased and updated
This adds support for the TI INA219 Zero-Drift, Bidirectional Current/Power Monitor with I2C Interface Signed-off-by: Leonard Pollak <leonardp@tr-host.de>
This adds the INA219 driver to the build tests. Signed-off-by: Leonard Pollak <leonardp@tr-host.de>
This adds an example application for the TI INA219 Zero-Drift, Bidirectional Current/Power Monitor with I2C Interface Signed-off-by: Leonard Pollak <leonardp@tr-host.de>
This removes the now stale sample code for the INA219 Signed-off-by: Leonard Pollak <leonardp@tr-host.de>
Remove leftovers of a code sample that was (only partially) deleted with PR zephyrproject-rtos#35538 Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Remove leftovers of a code sample that was (only partially) deleted with PR #35538 Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This adds support and an example application for the TI INA219 zero-drift, bidirectional current/power monitor.
There already is a "quick and dirty" application example using this device here.
Improvements over the old example application are:
Signed-off-by: Leonard Pollak leonardp@tr-host.de