Repository navigation
gm: the Aptina MT9P006 at 0xBA - #308
Merged
Merged
Conversation
The GM8128 camera of #305 carries an MT9P006: CHIP_VERSION 0x1801 at register 0x00, with one-byte register addresses and two-byte data. The MT9P001 and MT9P031 read the same value, so the name is the camera's own (its firmware loads isp_mt9p031.cfg for the part). ipctool only.
PR Summary by Qodogm: detect the Aptina MT9P006 sensor at 0xBA on GM8128
AI Description
Merge Risk
|
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 move or hide resolved findings to focus on what still needs action |
Closed
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.
For #305: with #306 and #307 in, the reporter's GM8128 is named, but its sensor isn't found (comment). The reporter measured it themselves:
i2cdetectfinds a device at0xba.i2cdump 0xba 0x00 0x01reads18 01.mt9p006and loadsisp_mt9p031.cfgfor it.The Aptina (now onsemi) MT9P0xx use one-byte register addresses with two-byte data, and keep CHIP_VERSION at
0x00. That register reads0x1801on the MT9P001, MT9P031 and MT9P006 alike (Linux'smt9p031driver handles all three with the one ID), so the register can't tell them apart. The report says MT9P006, the name this camera's firmware uses.The probe is part of the onsemi probe, runs only at
0xBA, and makes only reads.0xBAis added to the Grain Media HAL's onsemi address list. Like the rest of the GM8126 support, this is in ipctool only:ipcinfois byte-identical (153852 bytes on arm32).Tested
I booted qemu-bench's
gm8126machine with the GM8128 chip ID and a stand-in sensor at0x5D(0xBAin ipctool's 8-bit form): an 8-bit-register model that holds0x1801at0x00. The stand-in was a temporary entry in my local build only, not committed to qemu-bench. It reads18 01throughi2cdump, as the reporter's sensor does.master:No sensor detected, as on the reporter's camera.model: MT9P006,addr: 0xba, bus 0.The native unit tests pass.