From: Vikram Sharma <quic_vikramsa@quicinc.com>
To: <rfoss@kernel.org>, <todor.too@gmail.com>, <bryan.odonoghue@linaro.org>
Cc: <linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<quic_svankada@quicinc.com>
Subject: [PATCH v1 1/5] media: qcom: camss: Add qcs8300 compatible
Date: Fri, 14 Feb 2025 15:26:07 +0530 [thread overview]
Message-ID: <20250214095611.2498950-2-quic_vikramsa@quicinc.com> (raw)
In-Reply-To: <20250214095611.2498950-1-quic_vikramsa@quicinc.com>
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>
---
drivers/media/platform/qcom/camss/camss.c | 21 +++++++++++++++++++++
drivers/media/platform/qcom/camss/camss.h | 1 +
2 files changed, 22 insertions(+)
diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c
index f0d11298a7bd..1c0c3c019803 100644
--- a/drivers/media/platform/qcom/camss/camss.c
+++ b/drivers/media/platform/qcom/camss/camss.c
@@ -2847,6 +2847,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",
@@ -3831,6 +3844,13 @@ static const struct camss_resources msm8996_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,
@@ -3943,6 +3963,7 @@ static const struct of_device_id camss_dt_match[] = {
{ .compatible = "qcom,msm8916-camss", .data = &msm8916_resources },
{ .compatible = "qcom,msm8953-camss", .data = &msm8953_resources },
{ .compatible = "qcom,msm8996-camss", .data = &msm8996_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 },
diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/platform/qcom/camss/camss.h
index d3efd8bff948..93b7c38dc8fb 100644
--- a/drivers/media/platform/qcom/camss/camss.h
+++ b/drivers/media/platform/qcom/camss/camss.h
@@ -84,6 +84,7 @@ enum camss_version {
CAMSS_8x96,
CAMSS_8250,
CAMSS_8280XP,
+ CAMSS_8300,
CAMSS_845,
CAMSS_8550,
CAMSS_8775P,
--
2.25.1
next prev parent reply other threads:[~2025-02-14 9:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-14 9:56 [PATCH v1 0/5] media: qcom: camss: Add qcs8300 camss support Vikram Sharma
2025-02-14 9:56 ` Vikram Sharma [this message]
2025-02-14 9:56 ` [PATCH v1 2/5] media: qcom: camss: Add support for CSIPHY QCS8300 Vikram Sharma
2025-02-14 9:56 ` [PATCH v1 3/5] media: qcom: camss: Add CSID support for QCS8300 Vikram Sharma
2025-02-14 9:56 ` [PATCH v1 4/5] media: qcom: camss: Add VFE " Vikram Sharma
2025-02-14 9:56 ` [PATCH v1 5/5] media: qcom: camss: Enumerate resources " Vikram Sharma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250214095611.2498950-2-quic_vikramsa@quicinc.com \
--to=quic_vikramsa@quicinc.com \
--cc=bryan.odonoghue@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=quic_svankada@quicinc.com \
--cc=rfoss@kernel.org \
--cc=todor.too@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®