From: sashiko-bot@kernel.org
To: "Hangxiang Ma" <hangxiang.ma@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions
Date: Wed, 02 Dec 2026 14:56:03 +0000 [thread overview]
Message-ID: <sashiko-outbox-246020@kernel.org> (raw)
In-Reply-To: <20261202-kaanapali-camss-v26-1-1b7285860a7d@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: qcom: kaanapali: csiphy_mxc_opp_table uses invalid
300 MHz OPP
- [Low] arm64: dts: qcom: kaanapali: unused phy.h include and
opp-table-mxc order
--
commit b7929ea53a4609ad74d3aaa49a2d3680b0247558
Author: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions
This commit adds device tree nodes for the CAMSS camera subsystem, six
CSIPHY instances, and the CSIPHY MXC OPP table on the Qualcomm Kaanapali
SoC.
> diff --git a/arch/arm64/boot/dts/qcom/kaanapali.dtsi b/arch/arm64/boot/dts/qcom/kaanapali.dtsi
> index 132577d540bfb..807bca6d5bfa7 100644
> --- a/arch/arm64/boot/dts/qcom/kaanapali.dtsi
> +++ b/arch/arm64/boot/dts/qcom/kaanapali.dtsi
> @@ -20,6 +20,7 @@
> #include <dt-bindings/interconnect/qcom,kaanapali-rpmh.h>
> #include <dt-bindings/interrupt-controller/arm-gic.h>
> #include <dt-bindings/mailbox/qcom-ipcc.h>
> +#include <dt-bindings/phy/phy.h>
> #include <dt-bindings/phy/phy-qcom-qmp.h>
> #include <dt-bindings/power/qcom-rpmpd.h>
> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
[Severity: Low]
This isn't a bug, but dt-bindings/phy/phy.h is not used in this file.
Also, the top-level opp-table-mxc node added below sits between soc@0 and
thermal-zones instead of in alphabetical order by node name (between
memory@a0000000 and pmu).
[ ... ]
> @@ -6566,6 +6943,28 @@ pdp_tx: scp-sram-section@100 {
> };
> };
>
> + csiphy_mxc_opp_table: opp-table-mxc {
> + compatible = "operating-points-v2";
> +
> + opp-300000000 {
> + opp-hz = /bits/ 64 <300000000>;
> + required-opps = <&rpmhpd_opp_low_svs_d1>,
> + <&rpmhpd_opp_low_svs_d1>;
> + };
> +
> + opp-400000000 {
> + opp-hz = /bits/ 64 <400000000>;
> + required-opps = <&rpmhpd_opp_low_svs>,
> + <&rpmhpd_opp_low_svs>;
> + };
[Severity: High]
Should opp-300000000 in csiphy_mxc_opp_table be 266666667 Hz instead?
The CSIPHY core clocks (CAM_CC_CSIPHY0_CLK through CAM_CC_CSIPHY5_CLK)
derive from cam_cc_cphy_rx_clk_src, which uses clk_rcg2_shared_ops
(ceiling rate lookup) with the following frequency table:
drivers/clk/qcom/camcc-kaanapali.c:
static const struct freq_tbl ftbl_cam_cc_cphy_rx_clk_src[] = {
F(266666667, P_CAM_CC_PLL0_OUT_MAIN, 4.5, 0, 0),
F(400000000, P_CAM_CC_PLL0_OUT_MAIN, 3, 0, 0),
F(480000000, P_CAM_CC_PLL0_OUT_MAIN, 2.5, 0, 0),
{ }
};
When phy_qcom_mipi_csi2_set_clock_rates() powers on a CSIPHY for a sensor
link frequency at or below 1.2 GHz (link_freq / 4 <= 300 MHz),
dev_pm_opp_find_freq_ceil() selects opp-300000000 and
dev_pm_opp_set_rate() votes RPMHPD_MMCX and RPMHPD_MXC to
rpmhpd_opp_low_svs_d1 before requesting 300 MHz on the core clock.
Because 300 MHz exceeds 266666667 Hz, the RCG rounds the core clock up to
400 MHz while leaving MMCX and MXC at rpmhpd_opp_low_svs_d1 instead of
the rpmhpd_opp_low_svs level required for 400 MHz, and 266.67 MHz can
never be selected.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-kaanapali-camss-v26-0-1b7285860a7d@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-12-02 14:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 14:42 [PATCH v26 0/4] media: qcom: camss: Add Kaanapali support Hangxiang Ma
2026-12-02 14:42 ` [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions Hangxiang Ma
2026-12-02 14:56 ` sashiko-bot [this message]
2026-12-02 14:42 ` [PATCH v26 2/4] arm64: dts: qcom: kaanapali: Add CCI controller nodes Hangxiang Ma
2026-12-02 14:42 ` [PATCH v26 3/4] arm64: dts: qcom: kaanapali: Add camera MCLK pinctrl Hangxiang Ma
2026-12-02 14:42 ` [PATCH v26 4/4] arm64: dts: qcom: kaanapali-mtp-camera-s5kjn5: Add DT overlay 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=sashiko-outbox-246020@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hangxiang.ma@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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