Re: [PATCH v4 2/5] phy: qcom-mipi-csi2: Make OPP table optional
From: Bryan O'Donoghue
Date: Tue Dec 01 2026 - 23:55:35 EST
On 01/12/2026 21:02, Anusha Arun Nandi wrote:
Not every SoC the generic MIPI CSI2 PHY driver supports needs an OPP
table: a CSIPHY with only a single, unscaled power-domain has no
performance state to vote on, so running its "core" clock through
the OPP framework buys nothing over a plain clk_set_rate(). Add a
no_opp flag to struct mipi_csi2phy_soc_cfg and skip
devm_pm_opp_set_clkname()/devm_pm_opp_of_add_table() in probe() and
the OPP/performance-state handling in
phy_qcom_mipi_csi2_set_clock_rates() when it's set, falling back to
clk_round_rate()/clk_set_rate() on the timer clock only.
There should definitely be a CX and MX rail for this hardware.
x1e80100 doesn't set no_opp, so this is a no-op for it. The "core"/
"timer" clock-name strings themselves stay hardcoded literals: every
SoC this driver supports uses the same two names, so there's nothing
to make configurable there.
Co-developed-by: Jigarkumar Zala<jigarkumar.zala@xxxxxxxxxxxxxxxx>
Signed-off-by: Jigarkumar Zala<jigarkumar.zala@xxxxxxxxxxxxxxxx>
Signed-off-by: Anusha Arun Nandi<anusha.nandi@xxxxxxxxxxxxxxxx>
---
bod