Re: [PATCH v12 1/6] soc: qcom: ice: Add OPP-based clock scaling support for ICE
Abel Vesa <[email protected]>
| Newsgroups | org.kernel.vger.linux-scsi,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-mmc |
|---|---|
| Message-ID | <shqrnwcclocbs4yrbhra5k3tixn3zbmri5pa34cib4t2zsaxix@a3i4nquiafua> |
On 26-08-24 01:17:38, Abhinaba Rakshit wrote: > Register optional operation-points-v2 table for ICE device > during device probe. Attach the OPP-table with only the ICE > core clock. Since, dtbinding is on a transition phase to include > iface clock and clock-names, attaching the opp-table to core clock > remains optional such that it does not cause probe failures. > > Introduce clock scaling API qcom_ice_scale_clk which scale ICE > core clock based on the target frequency provided and if a valid > OPP-table is registered. Use round_ceil passed to decide on the > rounding of the clock freq against OPP-table. Clock scaling is > disabled when a valid OPP-table is not registered. > > This ensures when an ICE-device specific OPP table is available, > use the PM OPP framework to manage frequency scaling and maintain > proper power-domain constraints. > > Reviewed-by: Harshal Dev <[email protected]> > Signed-off-by: Abhinaba Rakshit <[email protected]> Reviewed-by: Abel Vesa <[email protected]>