-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: sensors: add ST VL53L1X TOF sensor #18772
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
drivers: sensors: add ST VL53L1X TOF sensor #18772
Conversation
|
This is a driver for ST VL53L1X. I mostly took the code from vl53l0x driver but rewrote the platforms api to support 16bit register of vl53l1x (instead of 8bit of vl53l0x). |
|
Found the following issues, please fix and resubmit: License issuesIn most cases you do not need to do anything here, especially if the files
|
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.
First batch of comments, thanks for this submission!
Please update west.yml manifest file to use the PR you submitted in hal_st (cf https://docs.zephyrproject.org/latest/contribute/index.html?highlight=modules#contributions-to-external-modules)
Also add your sign-off in commit message
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.
ditto
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.
Ditto
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.
Ditto
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.
Not sure all these files are actually needed here
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.
they're included in the platform-folder of STSW-IMG007 and basically I just copied everything from there to the driver folder - I think it makes sense.
I just wonder why the driver got so much more files compared to VL53L0X.
Also, atm
VL53L1_WriteMulti
is not working (as far as I can tell the other I2C funcs work).
I'll push the updated files but they will still have most of the style errors.
|
well, that's why I added [DNM] and [RFC] - I know that there are code changes to do, I just knew no other place to start - code via mailing list is.. urgh |
|
what about the licensing issues in the platform files? ST gives a choice of BSD or ST proprietary but not Apache-2.0 |
4372172 to
9078dcb
Compare
ade598c to
9f5a4ab
Compare
|
What is this issue about?
I tried different combinations of the signed-off message but none does work And what‘s about this execute permission? |
|
@chris-makaio, for sign-off, you'll find info here: https://docs.zephyrproject.org/latest/contribute/index.html
I'm not sure what you're referring to |
|
@chris-makaio, for ST license update to Apache 2.0, we need first to check what files are requested for this. Can you confirm the names of the files that are actually requested to be in Zephyr repo? Specially, I'd like to understand the difference with files that were used for driver vl53l1x. |
|
@erwango I'm confused. Aren't exactly those files listed under Concerning sign off: I think it was an old issue which already disappeared |
9f5a4ab to
f1c3832
Compare
|
@chris-makaio, there is already a driver for a similar sensor (vl53l0x) in zephyr tree. I haven't check in details difference between ST lib for vl53l0x and vl53l1x, but I'd expect them to be similar. Hence I'd like to understand why the set of files you're pushing in this PR is different. |
Adds Zephyr platform driver for VL51L1X TOF sensor, based on ST's driver API (see UM2356) Signed-off-by: Chris Schramm <[email protected]>
f1c3832 to
d5483b1
Compare
|
@erwango because it's a different and newer driver for a different device. The files are from ST's STSW-IMG007 and are just a boilerplate which one has to add the platform-specific implementation to. I did not want to mess with the files so I deliberately kept all files (also, for easier maintenance) and just added implementations where needed |
|
changed the title and removed DNM/RFC because the driver is basically complete now |
|
So any changes left for me to do? |
|
@chris-makaio, before going on with in deep review, we need to check if it is possible to convert the files you propose to upstream in zephyr main tree to Apache 2.0 licence. I need to get this information internally from with ST. I'll get back to you on that |
|
@chris-makaio, quick message to update you on the situation: this is progressing, I hope to have an answer next week. |
|
@chris-makaio, I inform you that ST allows the change of License to Apache 2.0 in the files you're importing for x-cube package. Though, please keep STMicro copyright. |
|
@chris-makaio, do you consider to complete work on this PR? |
|
Closing in favor of #22747 |
Adds Zephyr platform driver for VL51L1X TOF sensor,
based on ST's driver API (see UM2356)