Re: [PATCH v2 4/4] media: qcom: camss: Report hardware version via media controller
From: Bryan O'Donoghue
Date: Tue Jul 21 2026 - 18:17:05 EST
On 21/07/2026 14:21, Loic Poulain wrote:
Populate media_dev.hw_revision with the top-level CAMSS hardware versionReviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
so that user space can query the exact hardware variant through the media
controller (e.g. via media-ctl or MEDIA_IOC_DEVICE_INFO). This can help
identify the platform variant and adapt behaviour accordingly, for example
allowing libcamera to apply quirks or enable features that cannot be
discovered through standard V4L2 or media-controller APIs.
The version register is exposed by some platforms through the top-level
"top" reg region (offset 0). When present, map it and read the version
once at probe. This is a no-op on platforms not mapping the region (yet).
Reported media info on Agatti/CM2290 (Spectra 520):
Media Driver Info:
Driver name : qcom-camss
Model : Qualcomm Camera Subsystem
Bus info : platform:5c11000.camss
Hardware revision: 0x00050200 (328192)
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxxxxxxxxx>