From: bod@kernel.org
To: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
Cc: Robert Foss <rfoss@kernel.org>, Todor Tomov <todor.too@gmail.com>,
Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 3/5] media: qcom: camss: csiphy: Add support for v2.3.0 two-phase CSIPHY
Date: Sun, 31 May 2026 08:58:29 +0100 [thread overview]
Message-ID: <178021430900.11283.3388219738164759698.b4-reply@b4> (raw)
In-Reply-To: <20260508-add-support-for-camss-on-sm8750-v3-3-fc6861a65c67@oss.qualcomm.com>
On 2026-05-08 02:51 -0700, Hangxiang Ma wrote:
> Add more detailed resource information for CSIPHY devices in the camss
> driver along with the support for v2.3.0 in the 2 phase CSIPHY driver
> that is responsible for the PHY lane register configuration, module
> reset and interrupt handling.
>
> Additionally, generalize the struct name for the lane configuration that
> had been added for Kaanapali and use it for SM8750 as well as they share
> the settings.
>
> Signed-off-by: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
Reviewed-by: Bryan O'Donoghue <bod@kernel.org>
> ---
> .../platform/qcom/camss/camss-csiphy-3ph-1-0.c | 5 +-
> drivers/media/platform/qcom/camss/camss.c | 125 +++++++++++++++++++++
> 2 files changed, 129 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c b/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c
> index c51ffcd93ce1..5b633786314a 100644
> --- a/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c
> +++ b/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c
> @@ -684,7 +684,7 @@ csiphy_lane_regs lane_regs_sm8650[] = {
> {0x0c10, 0x52, 0x00, CSIPHY_DEFAULT_PARAMS},
> };
>
> -/* 3nm 2PH v 2.4.0 2p5Gbps 4 lane DPHY mode */
> +/* 3nm 2PH v 2.3.0/2.4.0 2p5Gbps 4 lane DPHY mode */
> static const struct
> csiphy_lane_regs lane_regs_2_4_0[] = {
> /* LN 0 */
> @@ -1135,6 +1135,7 @@ static bool csiphy_is_gen2(u32 version)
> case CAMSS_845:
> case CAMSS_8550:
> case CAMSS_8650:
> + case CAMSS_8750:
> case CAMSS_8775P:
> case CAMSS_KAANAPALI:
> case CAMSS_X1E80100:
> @@ -1252,7 +1253,9 @@ static int csiphy_init(struct csiphy_device *csiphy)
> regs->lane_regs = &lane_regs_sa8775p[0];
> regs->lane_array_size = ARRAY_SIZE(lane_regs_sa8775p);
> break;
> + case CAMSS_8750:
> case CAMSS_KAANAPALI:
> + /* CSPHY v2.4.0 is backward compatible with v2.3.0 settings */
> regs->lane_regs = &lane_regs_2_4_0[0];
> regs->lane_array_size = ARRAY_SIZE(lane_regs_2_4_0);
> regs->offset = 0x1000;
> diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c
> index 3cebce812c58..6b7c3160e285 100644
> --- a/drivers/media/platform/qcom/camss/camss.c
> +++ b/drivers/media/platform/qcom/camss/camss.c
> @@ -4238,6 +4238,129 @@ static const struct resources_icc icc_res_sa8775p[] = {
> },
> };
>
> +static const struct camss_subdev_resources csiphy_res_8750[] = {
> + /* CSIPHY0 */
> + {
> + .regulators = {
> + { .supply = "vdd-csiphy0-0p9", .init_load_uA = 148000 },
> + { .supply = "vdd-csiphy0-1p2", .init_load_uA = 14660 }
> + },
> + .clock = { "csiphy0", "csiphy0_timer",
> + "cpas_ahb", "cpas_fast_ahb" },
> + .clock_rate = { { 400000000, 480000000 },
> + { 400000000 },
> + { 0 },
> + { 0 } },
> + .reg = { "csiphy0" },
> + .interrupt = { "csiphy0" },
> + .csiphy = {
> + .id = 0,
> + .hw_ops = &csiphy_ops_3ph_1_0,
> + .formats = &csiphy_formats_sdm845
> + }
> + },
> + /* CSIPHY1 */
> + {
> + .regulators = {
> + { .supply = "vdd-csiphy1-0p9", .init_load_uA = 148000 },
> + { .supply = "vdd-csiphy1-1p2", .init_load_uA = 14660 }
> + },
> + .clock = { "csiphy1", "csiphy1_timer",
> + "cpas_ahb", "cpas_fast_ahb" },
> + .clock_rate = { { 400000000, 480000000 },
> + { 400000000 },
> + { 0 },
> + { 0 } },
> + .reg = { "csiphy1" },
> + .interrupt = { "csiphy1" },
> + .csiphy = {
> + .id = 1,
> + .hw_ops = &csiphy_ops_3ph_1_0,
> + .formats = &csiphy_formats_sdm845
> + }
> + },
> + /* CSIPHY2 */
> + {
> + .regulators = {
> + { .supply = "vdd-csiphy2-0p9", .init_load_uA = 148000 },
> + { .supply = "vdd-csiphy2-1p2", .init_load_uA = 14660 }
> + },
> + .clock = { "csiphy2", "csiphy2_timer",
> + "cpas_ahb", "cpas_fast_ahb" },
> + .clock_rate = { { 400000000, 480000000 },
> + { 400000000 },
> + { 0 },
> + { 0 } },
> + .reg = { "csiphy2" },
> + .interrupt = { "csiphy2" },
> + .csiphy = {
> + .id = 2,
> + .hw_ops = &csiphy_ops_3ph_1_0,
> + .formats = &csiphy_formats_sdm845
> + }
> + },
> + /* CSIPHY3 */
> + {
> + .regulators = {
> + { .supply = "vdd-csiphy3-0p9", .init_load_uA = 148000 },
> + { .supply = "vdd-csiphy3-1p2", .init_load_uA = 14660 }
> + },
> + .clock = { "csiphy3", "csiphy3_timer",
> + "cpas_ahb", "cpas_fast_ahb" },
> + .clock_rate = { { 400000000, 480000000 },
> + { 400000000 },
> + { 0 },
> + { 0 } },
> + .reg = { "csiphy3" },
> + .interrupt = { "csiphy3" },
> + .csiphy = {
> + .id = 3,
> + .hw_ops = &csiphy_ops_3ph_1_0,
> + .formats = &csiphy_formats_sdm845
> + }
> + },
> + /* CSIPHY4 */
> + {
> + .regulators = {
> + { .supply = "vdd-csiphy4-0p9", .init_load_uA = 148000 },
> + { .supply = "vdd-csiphy4-1p2", .init_load_uA = 14660 }
> + },
> + .clock = { "csiphy4", "csiphy4_timer",
> + "cpas_ahb", "cpas_fast_ahb" },
> + .clock_rate = { { 400000000, 480000000 },
> + { 400000000 },
> + { 0 },
> + { 0 } },
> + .reg = { "csiphy4" },
> + .interrupt = { "csiphy4" },
> + .csiphy = {
> + .id = 4,
> + .hw_ops = &csiphy_ops_3ph_1_0,
> + .formats = &csiphy_formats_sdm845
> + }
> + },
> + /* CSIPHY5 */
> + {
> + .regulators = {
> + { .supply = "vdd-csiphy5-0p9", .init_load_uA = 148000 },
> + { .supply = "vdd-csiphy5-1p2", .init_load_uA = 14660 }
> + },
> + .clock = { "csiphy5", "csiphy5_timer",
> + "cpas_ahb", "cpas_fast_ahb" },
> + .clock_rate = { { 400000000, 480000000 },
> + { 400000000 },
> + { 0 },
> + { 0 } },
> + .reg = { "csiphy5" },
> + .interrupt = { "csiphy5" },
> + .csiphy = {
> + .id = 5,
> + .hw_ops = &csiphy_ops_3ph_1_0,
> + .formats = &csiphy_formats_sdm845
> + }
> + },
> +};
> +
> static const struct resources_icc icc_res_sm8750[] = {
> {
> .name = "ahb",
> @@ -5677,7 +5800,9 @@ static const struct camss_resources sm8650_resources = {
> static const struct camss_resources sm8750_resources = {
> .version = CAMSS_8750,
> .pd_name = "top",
> + .csiphy_res = csiphy_res_8750,
> .icc_res = icc_res_sm8750,
> + .csiphy_num = ARRAY_SIZE(csiphy_res_8750),
> .icc_path_num = ARRAY_SIZE(icc_res_sm8750),
> };
>
>
> --
> 2.34.1
>
>
next prev parent reply other threads:[~2026-05-31 7:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-08 9:51 [PATCH v3 0/5] media: qcom: camss: Add SM8750 support Hangxiang Ma
2026-05-08 9:51 ` [PATCH v3 1/5] media: dt-bindings: Add CAMSS device for SM8750 Hangxiang Ma
2026-05-14 10:39 ` Krzysztof Kozlowski
2026-05-08 9:51 ` [PATCH v3 2/5] media: qcom: camss: Add SM8750 compatible camss driver Hangxiang Ma
2026-05-08 9:51 ` [PATCH v3 3/5] media: qcom: camss: csiphy: Add support for v2.3.0 two-phase CSIPHY Hangxiang Ma
2026-05-31 7:58 ` bod [this message]
2026-05-31 8:38 ` bod
2026-05-08 9:51 ` [PATCH v3 4/5] media: qcom: camss: csid: Add support for CSID 980 Hangxiang Ma
2026-05-08 9:51 ` [PATCH v3 5/5] media: qcom: camss: vfe: Add support for VFE 980 Hangxiang Ma
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=178021430900.11283.3388219738164759698.b4-reply@b4 \
--to=bod@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hangxiang.ma@oss.qualcomm.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=todor.too@gmail.com \
--cc=vladimir.zapolskiy@linaro.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