-
Notifications
You must be signed in to change notification settings - Fork 8k
drivers: video: Add Omnivision OV7675 driver into the existing OV7670 driver. #96319
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
base: main
Are you sure you want to change the base?
Conversation
Please do not add a commit to fix review comments. You have to update the existing commits in order to fix the issue related to what is in each commit. Please fix that before requesting again a new review. |
Thought you would want it as new commit - going to be a pain to do it in the separate commits. In addition other than the 0x20 comment they seemed to all apply to the combined version As for not compiling for you - not sure why. I tested with both the OV7675 and OV7670 using zephyr directly and via the arduino ide. Both versions compiled without an issue. But will double check anyway |
Only commits which have been reviewed and are corrects will be merged into the tree. We do not merge series of commits fixing each others within the same PR. Cf https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html Especially this section:https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html#pr-requirements, point 3 (Squash Intermediary or Non-Final Development History) and 4 (Ensure Clean History Before Submission) |
6874e05
to
a1a7b03
Compare
Hi @mjs513, I will have a look at the code itself. I don't know how to make comment on the commit log itself so I write it here.
Aka, the short message like (first line) is repeated again within the commit log. Could you fix that ? |
All changes incorporated but can not seem to update the com10 register in prep commit (drivers: video: ov7670 driver changes in prep for adding OV7675) but it is fixed in the full commit. I did manage to fix dual camera mode so should be ready to try when PRs are incorporated for multiple streams. Tested on the GIGA - you are getting compile errors let me know what you are seeing. |
@mjs513 |
a1a7b03
to
d2f5e51
Compare
Morning @avolmat-st Thanks really strange. I am using Github desktop to push changes but I am not seeing that and using amend to make the change. So for
the only thing I am seeing after I do the amend (I am als updating for changes here)
This is all I am seeing for the other commit
So not sure how to fix that one UPDATE: NOW FIXED |
I can't help with Github desktop, never used that. |
Think I figured it out now to see about making changes |
Tried to incorporate changes to the 1st commit, i.e.,
but things were getting so corrupted with updating the file had to stop the trying to do the updates. Wondering if it would be better to temporarily delete the second commit
and finish off any changes to the first and then resubmit the second commit? UPDATE: Sorry went ahead and did this so should be easier to make the changes |
2770d45
to
d34d077
Compare
190faae
to
edcc6b6
Compare
96ef7e9
to
60697fa
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.
Hi @mjs513,
thanks for the update. Functionally this looks good to me. However some modifications are introduced within this commit which doesn't have to be I think.
This commit is all about switching to the CCI interface for talking to the sensor hence modification should stick to this.
60697fa
to
bb2fea6
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.
Hi @mjs513,
sorry I may sound very annoying with my reviews, however as I said previously, commit should be focused on one kind of modifications (this is also explained in the Zephyr contribution page but is also a general good thing when dealing with commits).
Here for example, the OV7670_INIT maybe sounds like actually just changing the indentation but turned out that there were a change that I didn't noticed at first:
struct ov7670_data ov7670_data_##inst
got replaced by
static struct ov7670_data ov7670_data_##inst
974b001
to
358c772
Compare
At fist, the request was to squash everything into a single commit... This helps! Though, a second step after "merging all WIP commits" might be "re-splitting the changes". So how to split the commit? First, find the commit you want to split with for instance Then, start an "interactive rebase" to modify the git history (pretty much the only command to remember for git) with
You would see a menu opening in a text editor, in which you can find your the commit you need (here just one in the list) replacing You will now be having your files at the state just before the big commit to split, and there you can the changes you want to split away from the big commit. You can do The changes of your new commit will be visible with For instance, once Finally, you can run this and you would have your big commit split:
Reviewing again that everything is fine with |
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 also update the commit message. You can simplify it by mentioning the move to the cci helpers ?
Thanks a lot.
358c772
to
bda249e
Compare
drivers: video: Restructure OV760.c driver before adding OV7675 support Modifications for use of video cci helpers in video_common.h. Signed-off-by: Mike S <[email protected]>
bda249e
to
518132a
Compare
@avolmat-st |
|
This will be the first Zephyr driver to support multiple sensors, so the time spent on isolating a commit that add another sensor to an existing driver will help the next users, so it is a bit like writing a step-by-step tutorial on how to do it where every step is a commit in a way. Thanks all for your patience! |
Think I am probably going to do the OV7675 changes necessary for the driver increaments. Should be easier to review. Then at the end do a squash of the incremental changes so at the end there will only 2 be 2 commits - 1 for the cci and the 2nd for the ov7675 Also should I rename the driver to ov767x.c? thanks |
Know the feeling. I thought I would do a simple diversion from cameras and add support for the is31fl3197 LED driver as there |
This PR is a clean PR of video: ov7675: add Omnivision OV7675 sensor support and basic controls PR per your request.