kernel/hi3516cv200: recognize the gc2023_mipi sensor type - #207
Open
phedoreanu wants to merge 1 commit into
Open
kernel/hi3516cv200: recognize the gc2023_mipi sensor type#207phedoreanu wants to merge 1 commit into
phedoreanu wants to merge 1 commit into
Conversation
Mirror of the ov2710_mipi arm: I2C0 pinmux plus 24MHz sensor clock, with the parallel VI pads left alone so the MIPI PHY keeps the pins. Companion to OpenIPC/firmware#2248, which adds the gc2023_mipi identity to load_hisilicon and a gc2023_mipi_1080p.ini; without this arm a gc2023_mipi boot logs "sensor_type 'gc2023_mipi' is error!!!" before the script's devmem writes apply the same values. The register writes themselves are hardware-verified: they are the ones the load_hisilicon arm issues via devmem on a VStarcam Hi3518EV200 (see OpenIPC/firmware#2243 for the bring-up record).
PR Summary by Qodohi3516cv200: add gc2023_mipi sensor handling to open_sys_config
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can enable the Remediation agent and Qodo fixes findings in a dedicated fix PR More tips ↗ | Customize Qodo ↗ | Qodo docs ↗ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add a
gc2023_mipiarm to the hi3516cv200open_sys_configsensor table: I2C0 pinmux + 24 MHz sensor clock, parallel VI pads left alone so the MIPI PHY keeps the pins. Mechanical mirror of the existingov2710_mipiarm.Why
Companion to OpenIPC/firmware#2248, which adds the
gc2023_mipiidentity toload_hisiliconand agc2023_mipi_1080p.ini.open_sys_configfalls through tosensor_type '%s' is error!!!for names it does not know; that is non-fatal (the script'sdevmemwrites run afterwards and win), but it leaves an alarming line in every boot log and lets the two pinmux tables drift. The OV2710 MIPI addition updated both tables; this restores that symmetry for GC2023.Raised by @widgetii in the review of OpenIPC/firmware#2248.
Verification
The register writes are hardware-verified in their
devmemform: they are exactly what theload_hisiliconarm issues on a VStarcam Hi3518EV200 with the GC2023 wired to MIPI (I2C reaches the sensor, MIPI PHY delivers frames with the vendor MIPI libsns — full bring-up record in OpenIPC/firmware#2243). This kernel arm is a byte-for-byte mirror of theov2710_mipiarm apart from the name and comment; I have not built the cv200 kernel tree standalone.