From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AAAE606A31C for ; Thu, 26 Nov 2026 17:18:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=2Y+0T7vI; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XzO1tZYj DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=hiigBLtqrRHh0TsaK7i0LOtiKUiGOjFYB42LCRgscu8=; b=2Y+0T7vI2HUPTgJObZoD8a3GEg BcQYNuno2m+kfHLp9oywY2fK2yzZv8CQoHBb7XlAqTmfOmgQbSG3k2jbZIoW1o1hlXx65sSLwg3rd yCh0ioDngmEoDY2s6wk5+lwBU7Oi7KYMMcScafN7vckFWWHIE7lhYDQnbiQHS365FlX/JLCbXvfbu u3lAjefurqMs1Jk2pPp0eyjB0sx25oGEejIczqA2mRD26p7vKIg+benvPHvwHIje4iapbfIXds155 A5vmBEo2vyZ+wQFosaNx+8hyN/nJrUm+r8GXZmy4I2HK6yua709/v5qB/RR7CSuoRvxf5pQAjcTx1 t0rsY8VA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWd6z-0000000E233-433m; Thu, 26 Nov 2026 17:18:21 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWd6t-0000000E21X-3yrB for linux-phy@lists.infradead.org; Thu, 26 Nov 2026 17:18:17 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 5FE0B453A7; Thu, 26 Nov 2026 17:18:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82EBF1F000C4; Thu, 26 Nov 2026 17:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795713495; bh=w120dgf1qMRFAFrYxURhT9tSBYAzmjIDKW2aCCxepAc=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=XzO1tZYjiMPl4BGrk8KrL+KedwziwSVuMmV+ZcK6UWWD/SFo34rD0ym72unn4a34F GhIDKC2wJIW4lV2uUOEjWk5u8vTOy7QnwkB3y3FUnX3ZLdSGd8ynAzfHaOTDhpW+27 0wV5/cngIYB6ORRltU7V8PgKotB/+vbOb2vrCvfEsdlN+sCx8d5QeKNRqsn0syBphR MfOYuqEUEwULC2DpVJuAzXATLbFq6sA8H8cKz5/0VuX4XLDNB+RcEGlOj17xmL52Hy QETWCIsQqgKg2XoGo4H9xLHIBEaxv7XXJ/TER1JsXUuRWJ5vqyLsXQyZq4em7NwP8k OTDl35OH6mmdA== Message-ID: <54eeb70e-e7d4-4f3b-af80-8b9da48ec7b0@kernel.org> Date: Thu, 26 Nov 2026 19:18:08 +0200 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/7] media: qcom: camss: Add SM8450 CAMSS support To: Frank Li Cc: Bjorn Andersson , Konrad Dybcio , Abel Vesa , Bryan O'Donoghue , Vinod Koul , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, Loic Poulain , Mauro Carvalho Chehab , linux-media@vger.kernel.org, Neil Armstrong , Manivannan Sadhasivam , linux-phy@lists.infradead.org, Conor Dooley , devicetree@vger.kernel.org References: <20261026224957.1115370-1-vz@kernel.org> <20261026224957.1115370-5-vz@kernel.org> From: Vladimir Zapolskiy In-Reply-To: X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-phy" X-Spam-Status: No, score=-15.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Frank. On 10/28/26 17:31, Frank Li wrote: > On Tue, Oct 27, 2026 at 12:49:54AM +0200, Vladimir Zapolskiy wrote: >> Add support of the camera subsystem (CAMSS) found on Qualcomm SM8450 SoC. >> >> The CAMSS IP on SM8450 contains: >> * three CSID and two CSID lite, which are supported by CSID 680, >> * three VFE and two VFE lite blocks, which are supported by VFE 680, >> * three CSI test pattern generators, which are supported by TPG Gen1. >> >> Qualcomm SM8450 CSIPHYs are supported by the CSI2 PHY driver only. >> >> Signed-off-by: Vladimir Zapolskiy >> --- >> drivers/media/platform/qcom/camss/camss-vfe.c | 2 + >> drivers/media/platform/qcom/camss/camss.c | 236 ++++++++++++++++++ >> drivers/media/platform/qcom/camss/camss.h | 1 + >> 3 files changed, 239 insertions(+) >> >> diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c b/drivers/media/platform/qcom/camss/camss-vfe.c >> index 2680a9914765..8ebd67bd9b2e 100644 >> --- a/drivers/media/platform/qcom/camss/camss-vfe.c >> +++ b/drivers/media/platform/qcom/camss/camss-vfe.c >> @@ -350,6 +350,7 @@ static u32 vfe_src_pad_code(struct vfe_line *line, u32 sink_code, >> case CAMSS_8280XP: >> case CAMSS_8300: >> case CAMSS_845: >> + case CAMSS_8450: >> case CAMSS_8550: >> case CAMSS_8650: >> case CAMSS_8775P: >> @@ -2010,6 +2011,7 @@ static int vfe_bpl_align_rdi(struct vfe_device *vfe) >> case CAMSS_8280XP: >> case CAMSS_8300: >> case CAMSS_845: >> + case CAMSS_8450: >> case CAMSS_8550: >> case CAMSS_8650: >> case CAMSS_8775P: >> diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c >> index b0d60e70e4bb..1db66976e51b 100644 >> --- a/drivers/media/platform/qcom/camss/camss.c >> +++ b/drivers/media/platform/qcom/camss/camss.c >> @@ -2967,6 +2967,226 @@ static const struct resources_icc icc_res_sc8280xp[] = { >> }, >> }; >> >> +static const struct camss_subdev_resources csid_res_sm8450[] = { >> + /* CSID0 */ >> + { >> + .regulators = {}, >> + .clock = { "cpas_ahb", "csid", "csiphy_rx" }, >> + .clock_rate = { { 0 }, >> + { 480000000 }, >> + { 400000000 }, }, >> + .reg = { "csid0" }, >> + .interrupt = { "csid0" }, >> + .csid = { >> + .hw_ops = &csid_ops_680, >> + .parent_dev_ops = &vfe_parent_dev_ops, >> + .formats = &csid_formats_gen2, >> + }, >> + }, >> + /* CSID1 */ >> + { >> + .regulators = {}, >> + .clock = { "cpas_ahb", "csid", "csiphy_rx" }, >> + .clock_rate = { { 0 }, >> + { 480000000 }, >> + { 400000000 }, }, >> + .reg = { "csid1" }, >> + .interrupt = { "csid1" }, >> + .csid = { >> + .hw_ops = &csid_ops_680, >> + .parent_dev_ops = &vfe_parent_dev_ops, >> + .formats = &csid_formats_gen2, >> + }, >> + }, >> + /* CSID2 */ >> + { >> + .regulators = {}, >> + .clock = { "cpas_ahb", "csid", "csiphy_rx" }, >> + .clock_rate = { { 0 }, >> + { 480000000 }, >> + { 400000000 }, }, >> + .reg = { "csid2" }, >> + .interrupt = { "csid2" }, >> + .csid = { >> + .hw_ops = &csid_ops_680, >> + .parent_dev_ops = &vfe_parent_dev_ops, >> + .formats = &csid_formats_gen2, >> + }, >> + }, >> + /* CSID_LITE0 */ >> + { >> + .regulators = {}, >> + .clock = { "cpas_ahb", "vfe_lite_csid", "vfe_lite_cphy_rx", >> + "csiphy_rx" }, >> + .clock_rate = { { 0 }, >> + { 480000000 }, >> + { 400000000 }, >> + { 400000000 }, }, >> + .reg = { "csid_lite0" }, >> + .interrupt = { "csid_lite0" }, >> + .csid = { >> + .is_lite = true, >> + .hw_ops = &csid_ops_680, >> + .parent_dev_ops = &vfe_parent_dev_ops, >> + .formats = &csid_formats_gen2, >> + }, >> + }, >> + /* CSID_LITE1 */ >> + { >> + .regulators = {}, >> + .clock = { "cpas_ahb", "vfe_lite_csid", "vfe_lite_cphy_rx", >> + "csiphy_rx" }, >> + .clock_rate = { { 0 }, >> + { 480000000 }, >> + { 400000000 }, >> + { 400000000 }, }, >> + .reg = { "csid_lite1" }, >> + .interrupt = { "csid_lite1" }, >> + .csid = { >> + .is_lite = true, >> + .hw_ops = &csid_ops_680, >> + .parent_dev_ops = &vfe_parent_dev_ops, >> + .formats = &csid_formats_gen2, >> + }, >> + }, >> +}; >> + >> +static const struct camss_subdev_resources vfe_res_sm8450[] = { >> + /* IFE0 */ >> + { >> + .regulators = {}, >> + .clock = { "gcc_hf_axi", "camnoc_axi", "cpas_ahb", >> + "core_ahb", "cpas_fast_ahb", "cpas_vfe0", >> + "vfe0_fast_ahb", "vfe0" }, >> + .clock_rate = { { 0 }, >> + { 300000000, 400000000 }, >> + { 0 }, >> + { 0 }, >> + { 0 }, >> + { 0 }, >> + { 0 }, >> + { 432000000, 594000000, 675000000, 727000000 }, }, > > Nit: > Can you align clock and clock_rate wrap method, > > "gcc_hf_axi", "camnoc_axi", "cpas_ahb", > > {0}, { 300000000, 400000000 }, {0}, > > 1st line have 3 clock at .clock, > clock rate also 3 clock_rate. > > So reader can know corresponding rate quickly, > > for example, If I know rate of cpas_fast_ahb, reader can simple > locate by second row and second col. I'm reluctant to do such a change for v3, because it does not match any of the current clock resource lists in the driver, which breaks the established tradition. If needed, this should be done for all clock resources in the driver at once, but this is out of the scope of this changeset, so I do not consider to update the change accordingly in a probable next version of the changeset, which adds SM8450 CAMSS support. -- Best wishes, Vladimir -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy