-
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
Add lsm6dsl specific samples + change its dts binding #11848
Conversation
@galak @MaureenHelm |
All checks are passing now. Review history of this comment for details about previous failed status. |
86771fc
to
cfecc76
Compare
Codecov Report
@@ Coverage Diff @@
## master #11848 +/- ##
=======================================
Coverage 53.94% 53.94%
=======================================
Files 242 242
Lines 27654 27654
Branches 6717 6717
=======================================
Hits 14917 14917
Misses 9932 9932
Partials 2805 2805 Continue to review full report at Codecov.
|
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 for the documentation, one little tweak.
samples/sensor/lsm6dsl/README.rst
Outdated
References | ||
********** | ||
|
||
- LSM6DSL http://www.st.com/en/mems-and-sensors/lsm6dsl.html |
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.
Rendering is better without the leading space:
- LSM6DSL http://www.st.com/en/mems-and-sensors/lsm6dsl.html | |
- LSM6DSL http://www.st.com/en/mems-and-sensors/lsm6dsl.html |
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.
ack
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.
Seems in conflict with #11854. Can you have a check?
cfecc76
to
c7d108e
Compare
Going to mark this DNM for now until #11854 goes in. |
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.
doc changes LGTM, thanks!
Can you rebase now that we merged #11854 |
c7d108e
to
b80a510
Compare
done! |
recheck |
@galak L/home/buildslave/src/github.com/zephyrproject-rtos/zephyr/out-3nd-pass/disco_l475_iot1/samples/net/wifi/test/zephyr -lgcc -Wl,--print-memory-usage -mthumb -nostdlib -static -no-pie --coverage -Wl,-X -Wl,-N -Wl,--gc-sections -Wl,--build-id=none -Wl,--orphan-handling=warn -mabi=aapcs && : |
Nope, you aren't. Looking to see how this happened. |
Fix in PR #11988 |
OK, I'll wait for the merge of that PR |
b80a510
to
af9f267
Compare
Merged! |
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.
Just noticed, and while not directly related CONFIG_LSM6DSL_BUS_TYPE we should be able to replace with {DT_ST_LSM6DSL_BUS_I2C and/or DT_ST_LSM6DSL_BUS_SPI} that are now generated.
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.
The sample never gets built for an platform via sanitycheck:
./scripts/sanitycheck -T samples/sensor/lsm6dsl/
I wondering if we can wait for #11800 and than use a filter on DT_COMPAT_ST_LSM6DSL
af9f267
to
1b67e9e
Compare
This PR has been rebased onto #12105 |
1b67e9e
to
55d0892
Compare
55d0892
to
b1c07ec
Compare
samples/sensor/lsm6dsl/sample.yaml
Outdated
name: LSM6DSL accelerometer and gyrometer sensor | ||
tests: | ||
test: | ||
filter: DT_COMPAT_ST_LSM6DSL |
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.
remove the filter:
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.
You need to add 'lsm6dsl' to the board yaml that support it.
Add the irq-gpios property to LSM6DSL sensor yaml description file for I2C case. Signed-off-by: Armando Visconti <armando.visconti@st.com>
b1c07ec
to
8b0a756
Compare
removed the filter and added lsm6dsl to ArgonKey board. |
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.
2 minor comments, otherwise tested ok
@@ -14,4 +14,7 @@ supported: | |||
- hts221 | |||
- rtc | |||
- spi | |||
- lsm6dsl |
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.
Can you add it in disco_l475_iot1 as well?
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.
Sure.
} | ||
|
||
while (1) { | ||
/* lsm6dsl accel */ |
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.
Can you add following to ease result view:
/* Erase previous */
printf("\0033\014");
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.
ack
Provide through the dts the gpio on which the lsm6dsl INT1 is connected. Enable also the lsm6dsl trigger mode. Signed-off-by: Armando Visconti <armando.visconti@st.com>
Add LPS22HB and LSM6DSL sensors to yaml file. Signed-off-by: Armando Visconti <armando.visconti@st.com>
Add supported sensor to yaml file. The ArgonKey board supports following sensors: - HTS221 (humidity) - LPS22HB (pressure) - LSM6DSL (imu) - VL53L0X (proximity) Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit provides sample application for sensor lsm6dsl. This sample has been tested on both 96b_argonkey board, where lsm6dsl is connect to the micro thru SPI bus, and on disco_l475_iot1 board, where instead it is connected to I2C bus. Signed-off-by: Armando Visconti <armando.visconti@st.com>
8b0a756
to
5f70824
Compare
Modified according to @erwango observation and re-pushed. |
This PR is composed by 3 commits, all 3 somehow related to lsm6dsl sensor.