From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Loic Poulain <loic.poulain@oss.qualcomm.com>,
rfoss@kernel.org, konradybcio@kernel.org, andersson@kernel.org,
krzk+dt@kernel.org, robh@kernel.org
Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org,
devicetree@vger.kernel.org, dmitry.baryshkov@oss.qualcomm.com
Subject: Re: [PATCH v2 4/6] media: qcom: camss: add support for QCM2290 camss
Date: Thu, 17 Apr 2025 16:54:52 +0100 [thread overview]
Message-ID: <ec212a39-d2d0-4141-8032-489046715082@linaro.org> (raw)
In-Reply-To: <20250417145819.626733-5-loic.poulain@oss.qualcomm.com>
On 17/04/2025 15:58, Loic Poulain wrote:
> The camera subsystem for QCM2290 which is based on Spectra 340.
>
> Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
> ---
> drivers/media/platform/qcom/camss/camss-vfe.c | 2 +
> drivers/media/platform/qcom/camss/camss.c | 148 ++++++++++++++++++
> 2 files changed, 150 insertions(+)
>
> diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c b/drivers/media/platform/qcom/camss/camss-vfe.c
> index 4bca6c3abaff..c575c9767492 100644
> --- a/drivers/media/platform/qcom/camss/camss-vfe.c
> +++ b/drivers/media/platform/qcom/camss/camss-vfe.c
> @@ -340,6 +340,7 @@ static u32 vfe_src_pad_code(struct vfe_line *line, u32 sink_code,
> }
> break;
> case CAMSS_660:
> + case CAMSS_2290:
> case CAMSS_7280:
> case CAMSS_8x96:
> case CAMSS_8250:
> @@ -1969,6 +1970,7 @@ static int vfe_bpl_align(struct vfe_device *vfe)
> int ret = 8;
>
> switch (vfe->camss->res->version) {
> + case CAMSS_2290:
> case CAMSS_7280:
> case CAMSS_8250:
> case CAMSS_8280XP:
> diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c
> index 06f42875702f..64f263b8065c 100644
> --- a/drivers/media/platform/qcom/camss/camss.c
> +++ b/drivers/media/platform/qcom/camss/camss.c
> @@ -515,6 +515,140 @@ static const struct camss_subdev_resources vfe_res_8x96[] = {
> }
> };
>
> +static const struct camss_subdev_resources csiphy_res_2290[] = {
> + /* CSIPHY0 */
> + {
> + .regulators = { "vdda-phy", "vdda-pll" },
> + .clock = { "top_ahb", "ahb", "csiphy0", "csiphy0_timer" },
> + .clock_rate = { { 0 },
> + { 0 },
> + { 240000000, 341330000, 384000000 },
> + { 100000000, 200000000, 268800000 } },
> + .reg = { "csiphy0" },
> + .interrupt = { "csiphy0" },
> + .csiphy = {
> + .id = 0,
> + .hw_ops = &csiphy_ops_3ph_1_0,
> + .formats = &csiphy_formats_sdm845
> + }
> + },
> +
> + /* CSIPHY1 */
> + {
> + .regulators = { "vdda-phy", "vdda-pll" },
> + .clock = { "top_ahb", "ahb", "csiphy1", "csiphy1_timer" },
> + .clock_rate = { { 0 },
> + { 0 },
> + { 240000000, 341330000, 384000000 },
> + { 100000000, 200000000, 268800000 } },
> + .reg = { "csiphy1" },
> + .interrupt = { "csiphy1" },
> + .csiphy = {
> + .id = 1,
> + .hw_ops = &csiphy_ops_3ph_1_0,
> + .formats = &csiphy_formats_sdm845
> + }
> + }
> +};
> +
> +static const struct camss_subdev_resources csid_res_2290[] = {
> + /* CSID0 */
> + {
> + .regulators = {},
> + .clock = { "top_ahb", "ahb", "csi0", "vfe0_cphy_rx", "vfe0" },
> + .clock_rate = { { 0 },
> + { 0 },
> + { 192000000, 240000000, 384000000, 426400000 },
> + { 0 },
> + { 0 } },
> + .reg = { "csid0" },
> + .interrupt = { "csid0" },
> + .csid = {
> + .hw_ops = &csid_ops_340,
> + .parent_dev_ops = &vfe_parent_dev_ops,
> + .formats = &csid_formats_gen2
> + }
> + },
> +
> + /* CSID1 */
> + {
> + .regulators = {},
> + .clock = { "top_ahb", "ahb", "csi1", "vfe1_cphy_rx", "vfe1" },
> + .clock_rate = { { 0 },
> + { 0 },
> + { 192000000, 240000000, 384000000, 426400000 },
> + { 0 },
> + { 0 } },
> + .reg = { "csid1" },
> + .interrupt = { "csid1" },
> + .csid = {
> + .hw_ops = &csid_ops_340,
> + .parent_dev_ops = &vfe_parent_dev_ops,
> + .formats = &csid_formats_gen2
> + }
> + }
> +};
> +
> +static const struct camss_subdev_resources vfe_res_2290[] = {
> + /* VFE0 */
> + {
> + .regulators = {},
> + .clock = { "top_ahb", "ahb", "axi", "vfe0", "camnoc_rt_axi", "camnoc_nrt_axi" },
> + .clock_rate = { { 0 },
> + { 0 },
> + { 0 },
> + { 19200000, 153600000, 192000000, 256000000, 384000000, 460800000 },
> + { 0 },
> + { 0 }, },
> + .reg = { "vfe0" },
> + .interrupt = { "vfe0" },
> + .vfe = {
> + .line_num = 4,
> + .hw_ops = &vfe_ops_340,
> + .formats_rdi = &vfe_formats_rdi_845,
> + .formats_pix = &vfe_formats_pix_845
> + }
> + },
> +
> + /* VFE1 */
> + {
> + .regulators = {},
> + .clock = { "top_ahb", "ahb", "axi", "vfe1", "camnoc_rt_axi", "camnoc_nrt_axi" },
> + .clock_rate = { { 0 },
> + { 0 },
> + { 0 },
> + { 19200000, 153600000, 192000000, 256000000, 384000000, 460800000 },
> + { 0 },
> + { 0 }, },
> + .reg = { "vfe1" },
> + .interrupt = { "vfe1" },
> + .vfe = {
> + .line_num = 4,
> + .hw_ops = &vfe_ops_340,
> + .formats_rdi = &vfe_formats_rdi_845,
> + .formats_pix = &vfe_formats_pix_845
> + }
> + },
> +};
> +
> +static const struct resources_icc icc_res_2290[] = {
> + {
> + .name = "ahb",
> + .icc_bw_tbl.avg = 150000,
> + .icc_bw_tbl.peak = 300000,
> + },
> + {
> + .name = "hf_mnoc",
> + .icc_bw_tbl.avg = 2097152,
> + .icc_bw_tbl.peak = 3000000,
> + },
> + {
> + .name = "sf_mnoc",
> + .icc_bw_tbl.avg = 2097152,
> + .icc_bw_tbl.peak = 3000000,
> + },
> +};
> +
> static const struct camss_subdev_resources csiphy_res_660[] = {
> /* CSIPHY0 */
> {
> @@ -3753,6 +3887,19 @@ static const struct camss_resources msm8996_resources = {
> .link_entities = camss_link_entities
> };
>
> +static const struct camss_resources qcm2290_resources = {
> + .version = CAMSS_2290,
> + .csiphy_res = csiphy_res_2290,
> + .csid_res = csid_res_2290,
> + .vfe_res = vfe_res_2290,
> + .icc_res = icc_res_2290,
> + .icc_path_num = ARRAY_SIZE(icc_res_2290),
> + .csiphy_num = ARRAY_SIZE(csiphy_res_2290),
> + .csid_num = ARRAY_SIZE(csid_res_2290),
> + .vfe_num = ARRAY_SIZE(vfe_res_2290),
> + .link_entities = camss_link_entities
> +};
> +
> static const struct camss_resources sdm660_resources = {
> .version = CAMSS_660,
> .csiphy_res = csiphy_res_660,
> @@ -3865,6 +4012,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,qcm2290-camss", .data = &qcm2290_resources },
> { .compatible = "qcom,sc7280-camss", .data = &sc7280_resources },
> { .compatible = "qcom,sc8280xp-camss", .data = &sc8280xp_resources },
> { .compatible = "qcom,sdm660-camss", .data = &sdm660_resources },
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
next prev parent reply other threads:[~2025-04-17 15:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-17 14:58 [PATCH v2 0/6] media: qcom: camss: Add qcm2290 support Loic Poulain
2025-04-17 14:58 ` [PATCH v2 1/6] media: qcom: camss: Add support for TFE (Spectra 340) Loic Poulain
2025-04-17 15:49 ` Bryan O'Donoghue
2025-04-17 19:33 ` Loic Poulain
2025-04-17 14:58 ` [PATCH v2 2/6] media: qcom: camss: Add CSID 340 support Loic Poulain
2025-04-18 7:14 ` Bryan O'Donoghue
2025-04-17 14:58 ` [PATCH v2 3/6] media: qcom: camss: csiphy-3ph: Add CSIPHY 2ph DPHY v2.0.1 init sequence Loic Poulain
2025-04-18 7:17 ` Bryan O'Donoghue
2025-04-17 14:58 ` [PATCH v2 4/6] media: qcom: camss: add support for QCM2290 camss Loic Poulain
2025-04-17 15:54 ` Bryan O'Donoghue [this message]
2025-04-17 14:58 ` [PATCH v2 5/6] media: dt-bindings: media: camss: Add qcom,qcm2290-camss binding Loic Poulain
2025-04-18 7:08 ` Bryan O'Donoghue
2025-04-17 14:58 ` [PATCH v2 6/6] arm64: dts: qcom: qcm2290: Add CAMSS node Loic Poulain
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=ec212a39-d2d0-4141-8032-489046715082@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
/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