From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>,
hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Robert Foss <rfoss@kernel.org>, Todor Tomov <todor.too@gmail.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
vincent.knecht@mailoo.org, matti.lehtimaki@gmail.com,
quic_grosikop@quicinc.com
Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/6] media: qcom: camss: Add sc8280xp resource details
Date: Wed, 8 Nov 2023 00:47:01 +0000 [thread overview]
Message-ID: <9601c3ca-c7a1-4c90-878d-feeccd9e6610@linaro.org> (raw)
In-Reply-To: <871e668a-1732-4ed6-9d12-818504296464@linaro.org>
On 07/11/2023 21:48, Konrad Dybcio wrote:
>
>
> On 11/5/23 18:45, Bryan O'Donoghue wrote:
>> This commit describes the hardware layout for the sc8280xp for the
>> following hardware blocks:
>>
>> - 4 x VFE, 4 RDI per VFE
>> - 4 x VFE Lite, 4 RDI per VFE
>> - 4 x CSID
>> - 4 x CSID Lite
>> - 4 x CSI PHY
>>
>> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
>> ---
>> drivers/media/platform/qcom/camss/camss.c | 383
>> ++++++++++++++++++++++++++++++
>> 1 file changed, 383 insertions(+)
>>
>> diff --git a/drivers/media/platform/qcom/camss/camss.c
>> b/drivers/media/platform/qcom/camss/camss.c
>> index 8778fdc1ee342..51619842f3925 100644
>> --- a/drivers/media/platform/qcom/camss/camss.c
>> +++ b/drivers/media/platform/qcom/camss/camss.c
>> @@ -941,6 +941,374 @@ static const struct resources_icc
>> icc_res_sm8250[] = {
>> },
>> };
>> +static const struct camss_subdev_resources csiphy_res_sc8280xp[] = {
>> + /* CSIPHY0 */
>> + {
>> + .regulators = {},
>> + .clock = { "csiphy0", "csiphy0_timer" },
>> + .clock_rate = { { 400000000 },
>> + { 300000000 } },
>> + .reg = { "csiphy0" },
>> + .interrupt = { "csiphy0" },
>> + .ops = &csiphy_ops_3ph_1_0
>> + },
>> + /* CSIPHY1 */
>> + {
>> + .regulators = {},
>> + .clock = { "csiphy1", "csiphy1_timer" },
>> + .clock_rate = { { 400000000 },
>> + { 300000000 } },
>> + .reg = { "csiphy1" },
>> + .interrupt = { "csiphy1" },
>> + .ops = &csiphy_ops_3ph_1_0
>> + },
>> + /* CSIPHY2 */
>> + {
>> + .regulators = {},
>> + .clock = { "csiphy2", "csiphy2_timer" },
>> + .clock_rate = { { 400000000 },
>> + { 300000000 } },
>> + .reg = { "csiphy2" },
>> + .interrupt = { "csiphy2" },
>> + .ops = &csiphy_ops_3ph_1_0
>> + },
>> + /* CSIPHY3 */
>> + {
>> + .regulators = {},
>> + .clock = { "csiphy3", "csiphy3_timer" },
>> + .clock_rate = { { 400000000 },
>> + { 300000000 } },
>> + .reg = { "csiphy3" },
>> + .interrupt = { "csiphy3" },
>> + .ops = &csiphy_ops_3ph_1_0
>> + },
>> +};
>> +
>> +static const struct camss_subdev_resources csid_res_sc8280xp[] = {
>> + /* CSID0 */
>> + {
>> + .regulators = { "vdda-phy", "vdda-pll" },
>> + .clock = { "vfe0_csid_src", "vfe0_csid", "cphy_rx_src",
>> + "vfe0_cphy_rx", "vfe0_src", "vfe0", "vfe0_axi" },
> This looks like downstream hack copypasta.. All the _src clocks
> should be axed from here, from the camss bindings and simply be
> enabled with CLK_OPS_PARENT_ENABLE on their children (which should
> be the default for all branch clocks anyway eh)
This is a legitimate comment though, at least in principle,.
I ought to be able to drop vfe0_src and vfe0_csid_src since they should
be the roots for vfe0 and vfe0_csid.
I will see what can be rationalised in this list tomorrow.
---
bod
next prev parent reply other threads:[~2023-11-08 0:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-05 17:44 [PATCH v3 0/6] media: qcom: camss: Add sc8280xp support Bryan O'Donoghue
2023-11-05 17:45 ` [PATCH v3 1/6] media: dt-bindings: media: camss: Add qcom,sc8280xp-camss binding Bryan O'Donoghue
2023-11-05 18:25 ` Rob Herring
2023-11-05 18:27 ` Krzysztof Kozlowski
2023-11-05 17:45 ` [PATCH v3 2/6] media: qcom: camss: Add CAMSS_SC8280XP enum Bryan O'Donoghue
2023-11-05 17:45 ` [PATCH v3 3/6] media: qcom: camss: csiphy-3ph: Add Gen2 v1.1 two-phase MIPI CSI-2 DPHY init Bryan O'Donoghue
2023-11-07 21:43 ` Konrad Dybcio
2023-11-08 0:36 ` Bryan O'Donoghue
2023-11-05 17:45 ` [PATCH v3 4/6] media: qcom: camss: Add sc8280xp resource details Bryan O'Donoghue
2023-11-07 21:48 ` Konrad Dybcio
2023-11-08 0:47 ` Bryan O'Donoghue [this message]
2023-11-05 17:45 ` [PATCH v3 5/6] media: qcom: camss: Add sc8280xp support Bryan O'Donoghue
2023-11-07 21:37 ` Konrad Dybcio
2023-11-05 17:45 ` [PATCH v3 6/6] media: qcom: camss: vfe-17x: Rename camss-vfe-170 to camss-vfe-17x Bryan O'Donoghue
2023-11-07 21:41 ` Konrad Dybcio
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=9601c3ca-c7a1-4c90-878d-feeccd9e6610@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=matti.lehtimaki@gmail.com \
--cc=mchehab@kernel.org \
--cc=quic_grosikop@quicinc.com \
--cc=rfoss@kernel.org \
--cc=robh+dt@kernel.org \
--cc=todor.too@gmail.com \
--cc=vincent.knecht@mailoo.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
all inboxes | Powered by JetHome®