[PATCH v1 0/5] media: qcom: camss: Add qcs8300 camss support
From: Vikram Sharma
Date: Fri Feb 14 2025 - 04:56:57 EST
QCS8300 is a Qualcomm SoC. This series adds driver changes to bring up
CSIPHY, TPG, CSID, VFE/RDI interfaces in QCS8300.
QCS8300 provides
- 2 x VFE, 3 RDI per VFE
- 5 x VFE Lite, 6 RDI per VFE
- 2 x CSID
- 5 x CSID Lite
- 3 x TPG
- 3 x CSIPHY
Dependencies:
I took below patch series as dependency to test these changes.
- https://lore.kernel.org/all/20250210155605.575367-1-quic_vikramsa@xxxxxxxxxxx/
- https://lore.kernel.org/all/20250210162843.609337-1-quic_vikramsa@xxxxxxxxxxx/
- https://lore.kernel.org/all/20250109-qcs8300-mm-patches-new-v4-0-63e8ac268b02@xxxxxxxxxxx/
- https://lore.kernel.org/all/20250214094747.2483058-1-quic_vikramsa@xxxxxxxxxxx
We have tested this on qcs8300-ride board with 'Test Pattern Generator'
TPG driver support will be posted in a follow up series.
Tested with following commands:
- media-ctl -d /dev/media0 --reset
- yavta --no-query -w '0x009f0903 0' /dev/v4l-subdev0
- media-ctl -d /dev/media0 -V '"msm_tpg0":0[fmt:SRGGB10/1920x1080
field:none]'
- media-ctl -d /dev/media0 -V '"msm_csid0":0[fmt:SRGGB10/1920x1080
field:none]'
- media-ctl -d /dev/media0 -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/1920x1080
field:none]'
- media-ctl -d /dev/media0 -l '"msm_tpg0":1->"msm_csid0":0[1]'
- media-ctl -d /dev/media0 -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]'
- yavta --no-query -w '0x009f0903 9' /dev/v4l-subdev0
- yavta -B capture-mplane -n 5 -f SRGGB10P -s 1920x1080 /dev/video0
--capture=7
Used following tools for the sanity check of these changes.
- make -j32 W=1
- ./scripts/checkpatch.pl
Signed-off-by: Vikram Sharma <quic_vikramsa@xxxxxxxxxxx>
Vikram Sharma (5):
media: qcom: camss: Add qcs8300 compatible
media: qcom: camss: Add support for CSIPHY QCS8300
media: qcom: camss: Add CSID support for QCS8300
media: qcom: camss: Add VFE support for QCS8300
media: qcom: camss: Enumerate resources for QCS8300
.../qcom/camss/camss-csiphy-3ph-1-0.c | 2 +
.../media/platform/qcom/camss/camss-csiphy.c | 5 +
.../media/platform/qcom/camss/camss-csiphy.h | 1 +
drivers/media/platform/qcom/camss/camss-vfe.c | 2 +
drivers/media/platform/qcom/camss/camss.c | 392 ++++++++++++++++++
drivers/media/platform/qcom/camss/camss.h | 1 +
6 files changed, 403 insertions(+)
--
2.25.1