-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
drivers/video/ov7670.c
Outdated
|
|
||
| /* OV7670 definitions */ | ||
| #define OV7670_PROD_ID 0x76 | ||
| #define OV7670_PROD_ID 0x76 |
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.
New spaces added here, please avoid unnecessary modifications.
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.
Weird - ran it through clang and check patch 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.
hopefully fixed - checkpatch did not pick up errors
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.
There are still new spaces added before 0x76
|
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. |
drivers/video/ov7670.c
Outdated
|
|
||
| /* OV7670 definitions */ | ||
| #define OV7670_PROD_ID 0x76 | ||
| #define OV7670_PROD_ID 0x76 |
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.
There are still new spaces added before 0x76
|
@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
c27c3e3 to
226040f
Compare
This memcpy was part of the original code and without it data->fmt is never set so yes it is mandatory. |
What I meant by mandatory is that since its already in the 'if' statement its already be set. Guess my C++ understanding is not quite there. Now you have me curious. Anyway its back 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.
Few small / minor points left, but apart from that (and Copyright point to be discussed), looks ok.
226040f to
240534b
Compare
As for the copyright did make one change - found that for openmv can use something simplier which I added for now until we get to this. |
If you refer to the line just above. One is memcmp (compare) and the other one is memcpy (copy). Anyway now that it is back in it is ok. |
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.
Could you also simplify the commit messages ? It is not necessary to mention what has been discussed or steps to achieve this. The commit message should give information about what is done in this commit.
6b64183 to
d886b3b
Compare
Was trying to keep a running tally of what changes were being made and would simplify at the end. |
68915ae to
db7475b
Compare
|
Hello @mjs513. It looks like you needed to import the latest Could you try the operation again? You might need a |
Thats weird didnt notice that will double check\ EDIT: Think if I do push pull of squashed changes it always going to want to update to latest changes! |
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]>
drivers: video: Update OV7670 to use generic ov767x functions Minimal changes to OV760 drive to use generic ov767x structures. - This includes changes to function names. - Includes changes to defines as necessary. - Deleted camera_id as no longer required Signed-off-by: Mike S <[email protected]>
drivers: video Changes ov7670 driver name to ov767x.c Changes driver name from ov7670.c to ov767x.c. Signed-off-by: Mike S <[email protected]>
d919eff to
1172625
Compare
drivers: video Add OV7675 changes to OV767x This commit adds in support for the OV7675 camera. Signed-off-by: Mike S <[email protected]>
1172625 to
022c38b
Compare
|




This PR is a clean PR of video: ov7675: add Omnivision OV7675 sensor support and basic controls PR per your request.