From: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
To: Bryan O'Donoghue <bod@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney@redhat.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Taniya Das <taniya.das@oss.qualcomm.com>,
Jagadeesh Kona <quic_jkona@quicinc.com>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Subject: Re: [PATCH v5 5/6] clk: qcom: camcc-x1p42100: Add support for camera clock controller
Date: Fri, 8 May 2026 09:40:10 +0530 [thread overview]
Message-ID: <b92a2cbb-fe8d-4378-aa02-d91e2e4dfff4@oss.qualcomm.com> (raw)
In-Reply-To: <26191034-ad27-4559-a845-14841c075a4c@kernel.org>
On 5/7/2026 1:45 PM, Bryan O'Donoghue wrote:
> On 07/05/2026 06:38, Jagadeesh Kona wrote:
>> +static const struct alpha_pll_config cam_cc_pll1_config = {
>> + .l = 0x25,
>> + .alpha = 0xeaaa,
>> + .config_ctl_val = 0x20485699,
>> + .config_ctl_hi_val = 0x00182261,
>> + .config_ctl_hi1_val = 0x82aa299c,
>> + .test_ctl_val = 0x00000000,
>> + .test_ctl_hi_val = 0x00000003,
>> + .test_ctl_hi1_val = 0x00009000,
>> + .test_ctl_hi2_val = 0x00000034,
>> + .user_ctl_val = 0x00000400,
>> + .user_ctl_hi_val = 0x00000005,
>> +};
>
> Since its a script that generates most of this code, can't you teach it to enumerate these magic numbers with defines and bit-fields ?
>
> I'm not sure if I got an answer to that question on the last iteration of this patch but, asking again now.
>
As Konrad mentioned in the earlier thread [1], most of the values above are static configuration parameters recommended
by the PLL hardware team to ensure correct PLL operation. These values are programmed as is during initialization and
are not modified or referenced by software later. Since these settings/fields are unused later in SW, they are defined
as static values.
For the limited set of PLL registers that software interacts with, the relevant bit definitions are already defined
in clk-alpha-pll.c.
[1]: https://lore.kernel.org/all/009ecdbb-2297-44eb-862d-233e3290691c@oss.qualcomm.com/#t
Thanks,
Jagadeesh
next prev parent reply other threads:[~2026-05-08 4:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 5:38 [PATCH v5 0/6] Add support for videocc and camcc on X1P42100 platform Jagadeesh Kona
2026-05-07 5:38 ` [PATCH v5 1/6] dt-bindings: clock: qcom: Add X1P42100 video clock controller Jagadeesh Kona
2026-05-07 5:38 ` [PATCH v5 2/6] dt-bindings: clock: qcom: Add X1P42100 camera " Jagadeesh Kona
2026-05-07 5:38 ` [PATCH v5 3/6] clk: qcom: videocc-x1p42100: Add support for video " Jagadeesh Kona
2026-05-07 5:38 ` [PATCH v5 4/6] clk: qcom: camcc-x1e80100: Add support for camera QDSS debug clocks Jagadeesh Kona
2026-05-07 5:38 ` [PATCH v5 5/6] clk: qcom: camcc-x1p42100: Add support for camera clock controller Jagadeesh Kona
2026-05-07 8:15 ` Bryan O'Donoghue
2026-05-08 4:10 ` Jagadeesh Kona [this message]
2026-05-07 5:38 ` [PATCH v5 6/6] arm64: dts: qcom: x1e80100: Add CAMCC block definition Jagadeesh Kona
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=b92a2cbb-fe8d-4378-aa02-d91e2e4dfff4@oss.qualcomm.com \
--to=jagadeesh.kona@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=bmasney@redhat.com \
--cc=bod@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=quic_jkona@quicinc.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=taniya.das@oss.qualcomm.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