Repository navigation
sensors: detect the AR0230, the one S3L firmware sensor still unnamed - #272
Conversation
OpenIPC's S3L firmware ships drivers for ar0230, ar0237, imx172, imx178, imx226, imx274, imx290, imx326, ov2718 and ov4689, and load_ambarella asks `ipcinfo -s` which one to load. All of them were already told apart but the AR0230 (CHIP_VERSION_REG 0x3000 = 0x0056) and the two Sony sensors below. Both byte orders are taken: the AR0237's 0x0950 arrives as 0x5009 through the reader the S3L HAL uses, and the AR0230's ID would arrive the same way. Not done: IMX172 and IMX326. Neither has an ID register, the vendor drivers check nothing at probe, and without a board or a datasheet to hand there is no reset default to tell them from the IMX226 that the `// IMX326 too?` branch already reports; a guessed one would risk misnaming sensors that are detected correctly today. A board with either can set sensor= in U-Boot. Tested: sensors_test passes against the golden list (two AR0230 rows added). On a Hikvision DS-2CD2423G0-I (S3Lm + AR0237) a static armhf ipcinfo still reports chip s3l, family s3l and sensor ar0237. No AR0230 here, so its rows are unproven on hardware.
PR Summary by QodoDetect AR0230 sensors on Ambarella S3L
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Unverified 0x5600 alias may misname other onsemi-address parts
|
|
On the 0x5600 finding: keeping it, and here's why. The swap isn't inferred; it's the S3L reader's measured behaviour. On the DS-2CD2423G0-I, register 0x3000 of the AR0237 holds 0x0950 and arrives as 0x5009 through The unproven part is narrower: whether an AR0230 reads its datasheet value. 0x0056 covers readers that don't swap. A false match on 0x5600 would need some other part at onsemi's 0x20/0x30 whose real ID is 0x5600, and none in this table is. |
OpenIPC's S3L firmware ships drivers for ar0230, ar0237, imx172, imx178,
imx226, imx274, imx290, imx326, ov2718 and ov4689, and load_ambarella asks
ipcinfo -swhich one to load. All of them were already told apart but theAR0230 (CHIP_VERSION_REG 0x3000 = 0x0056) and the two Sony sensors below.
Both byte orders are taken: the AR0237's 0x0950 arrives as 0x5009 through
the reader the S3L HAL uses, and the AR0230's ID would arrive the same way.
Not done: IMX172 and IMX326. Neither has an ID register, the vendor drivers
check nothing at probe, and without a board or a datasheet to hand there is
no reset default to tell them from the IMX226 that the
// IMX326 too?branch already reports; a guessed one would risk misnaming sensors that are
detected correctly today. A board with either can set sensor= in U-Boot.
Tested: sensors_test passes against the golden list (two AR0230 rows added).
On a Hikvision DS-2CD2423G0-I (S3Lm + AR0237) a static armhf ipcinfo still
reports chip s3l, family s3l and sensor ar0237. No AR0230 here, so its rows
are unproven on hardware.