[PATCH v3 0/7] qcom: qcs8300: Add qcs8300 camss support
From: Vikram Sharma <hidden>
Date: 2025-08-13 05:38:15
Also in:
linux-arm-msm, linux-devicetree, linux-media, lkml
From: Vikram Sharma <redacted> QCS8300 is a Qualcomm SoC. This series adds bindings and devicetree and 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 Changes in v3 compared to v2: - Bindings and Device Tree: Reordered csid_wrapper to appear first in the register list (as suggested by Bryan). - CSIPHY Driver: Updated the commit message for the CSIPHY patch. - VFE/CSID Resource Data: Reused the same resource data as sa8775p for VFE and CSID. - Patch Series Order: Rearranged the patch sequence and moved the DTSI update to the final patch in the series. - Code Cleanup: Removed duplicate data structures and reused existing ones. - Optimization: Simplified and optimized conditional checks. - Link to v2: https://lore.kernel.org/linux-arm-msm/20250711131134.215382-1-quic_vikramsa@quicinc.com/ (local) Changes compared to v1: - Changed the order for register entries in bindings - Krzysztof - Changed the naming for interrupts for consistency - Krzysztof - Combined separate series for driver and dtsi into one. - Rebased on top of latest version of sa8775p camss patches. - Link to v1: Driver: https://lore.kernel.org/all/20250214095611.2498950-1-quic_vikramsa@quicinc.com (local) DTSI: https://lore.kernel.org/all/20250214094747.2483058-1-quic_vikramsa@quicinc.com (local) Dependencies: https://lore.kernel.org/linux-arm-msm/20250807121105.710072-1-quic_vikramsa@quicinc.com/ (local) We have tested this on qcs8300-ride board with 'Test Pattern Generator' https://lore.kernel.org/all/20250717-qcs8300_tpg-v2-1-0946c69c2c8b@quicinc.com/ (local) A rebased version of the TPG driver, built on top of this series, will be shared in a follow-up post. Used following tools for the sanity check of these changes. - make CHECK_DTBS=y W=1 DT_SCHEMA_FILES=media/qcom,qcs8300-camss.yaml qcom/qcs8300-ride.dtb - make DT_CHECKER_FLAGS=-m W=1 DT_SCHEMA_FILES=media/qcom,qcs8300-camss.yaml dt_binding_check - Smatch: make CHECK="smatch --full-path" M=drivers/media/platform/qcom/camss/ - Sparse: make C=2 M=drivers/media/platform/qcom/camss/ - make -j32 W=1 - checkpatch.pl Vikram Sharma (7): media: dt-bindings: Add qcom,qcs8300-camss compatible media: qcom: camss: Add qcs8300 compatible media: qcom: camss: Add CSIPHY support for QCS8300 media: qcom: camss: enable csid 690 for qcs8300 media: qcom: camss: enable vfe 690 for qcs8300 media: qcom: camss: Enumerate resources for QCS8300 arm64: dts: qcom: qcs8300: Add support for camss .../bindings/media/qcom,qcs8300-camss.yaml | 336 ++++++++++++++++++ arch/arm64/boot/dts/qcom/qcs8300.dtsi | 171 +++++++++ .../platform/qcom/camss/camss-csid-gen3.c | 3 +- .../qcom/camss/camss-csiphy-3ph-1-0.c | 2 + .../platform/qcom/camss/camss-vfe-gen3.c | 3 +- drivers/media/platform/qcom/camss/camss-vfe.c | 2 + drivers/media/platform/qcom/camss/camss.c | 85 +++++ drivers/media/platform/qcom/camss/camss.h | 1 + 8 files changed, 601 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/qcom,qcs8300-camss.yaml Signed-off-by: Vikram Sharma <redacted> -- 2.25.1