]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: qcom: camss: Add qcs8300 compatible
authorVikram Sharma <quic_vikramsa@quicinc.com>
Wed, 13 Aug 2025 05:37:19 +0000 (11:07 +0530)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 9 Sep 2025 13:59:21 +0000 (15:59 +0200)
Add CAMSS_8300 enum, QCS8300 compatible and qcs8300 camss driver
private data, the private data just include some basic information
for now, later changes will enumerate with csiphy, tpg, csid and
vfe resources.

Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/qcom/camss/camss.c
drivers/media/platform/qcom/camss/camss.h

index ca9904dd18482975eb2777b46513b11b73875bab..72fa22bdf49d183f8771f3a09aae01aed93603fa 100644 (file)
@@ -2995,6 +2995,19 @@ static const struct camss_subdev_resources vfe_res_8775p[] = {
        },
 };
 
+static const struct resources_icc icc_res_qcs8300[] = {
+       {
+               .name = "ahb",
+               .icc_bw_tbl.avg = 38400,
+               .icc_bw_tbl.peak = 76800,
+       },
+       {
+               .name = "hf_0",
+               .icc_bw_tbl.avg = 2097152,
+               .icc_bw_tbl.peak = 2097152,
+       },
+};
+
 static const struct resources_icc icc_res_sa8775p[] = {
        {
                .name = "ahb",
@@ -4290,6 +4303,14 @@ static const struct camss_resources qcm2290_resources = {
        .link_entities = camss_link_entities
 };
 
+static const struct camss_resources qcs8300_resources = {
+       .version = CAMSS_8300,
+       .pd_name = "top",
+       .icc_res = icc_res_qcs8300,
+       .icc_path_num = ARRAY_SIZE(icc_res_qcs8300),
+       .link_entities = camss_link_entities
+};
+
 static const struct camss_resources sa8775p_resources = {
        .version = CAMSS_8775P,
        .pd_name = "top",
@@ -4418,6 +4439,7 @@ static const struct of_device_id camss_dt_match[] = {
        { .compatible = "qcom,msm8953-camss", .data = &msm8953_resources },
        { .compatible = "qcom,msm8996-camss", .data = &msm8996_resources },
        { .compatible = "qcom,qcm2290-camss", .data = &qcm2290_resources },
+       { .compatible = "qcom,qcs8300-camss", .data = &qcs8300_resources },
        { .compatible = "qcom,sa8775p-camss", .data = &sa8775p_resources },
        { .compatible = "qcom,sc7280-camss", .data = &sc7280_resources },
        { .compatible = "qcom,sc8280xp-camss", .data = &sc8280xp_resources },
index 552af5c3314d881f251f14b3b8eef155e7aac292..c1f32e151314077100bf1418f4d649992bbe9d15 100644 (file)
@@ -85,6 +85,7 @@ enum camss_version {
        CAMSS_8x96,
        CAMSS_8250,
        CAMSS_8280XP,
+       CAMSS_8300,
        CAMSS_845,
        CAMSS_8550,
        CAMSS_8775P,