Re: [PATCH v3 05/12] clk: qcom: ipq-cmn-pll: Add NSS clock support
From: Konrad Dybcio
Date: Thu Sep 03 2026 - 08:01:05 EST
On 8/14/26 2:48 PM, Luo Jie wrote:
> The NSS (network subsystem) clock's parent is cmn_pll_div2 (CMN PLL
> rate / 2); it is then further divided by a configurable 6-bit divider.
>
> Register the NSS clock through a new ipq_cmn_pll_regmap_div_register()
> helper, built as a plain struct clk_regmap_div instance instead of
> hand-rolling recalc_rate/set_rate. The helper takes the register field
> mask and clock name as parameters so that the upcoming PPE clock, which
> shares the same register with a different field, can reuse it.
>
> Signed-off-by: Luo Jie <jie.luo@xxxxxxxxxxxxxxxx>
> ---
[...]
> +static struct clk_hw *ipq_cmn_pll_regmap_div_register(struct platform_device *pdev,
> + struct regmap *regmap,
> + struct clk_hw *parent_hw,
> + const char *name,
> + u32 field_mask)
Since we're doing clk_regmap now, you can just use the clk/qcom/common.c
infrastructure instead of NIH-ing it..
Konrad