Re: [PATCH 6/7] clk: qcom: gcc: Add multiple global clock controller driver for Nord SoC
From: Dmitry Baryshkov
Date: Fri Apr 03 2026 - 17:47:21 EST
On Fri, Apr 03, 2026 at 04:10:54PM +0200, Bartosz Golaszewski wrote:
> From: Taniya Das <taniya.das@xxxxxxxxxxxxxxxx>
>
> The global clock controller on the Nord SoC is partitioned into
> GCC, SE_GCC, NE_GCC, and NW_GCC. Introduce driver support for each
> of these controllers.
>
> Signed-off-by: Taniya Das <taniya.das@xxxxxxxxxxxxxxxx>
> [Shawn: Drop include of <linux/of.h> as the driver doesn't use any OF APIs]
> Co-developed-by: Shawn Guo <shengchao.guo@xxxxxxxxxxxxxxxx>
> Signed-off-by: Shawn Guo <shengchao.guo@xxxxxxxxxxxxxxxx>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> ---
> drivers/clk/qcom/Kconfig | 10 +
> drivers/clk/qcom/Makefile | 1 +
> drivers/clk/qcom/gcc-nord.c | 1901 +++++++++++++++++++++++++++++++++++++++
> drivers/clk/qcom/negcc-nord.c | 1987 +++++++++++++++++++++++++++++++++++++++++
> drivers/clk/qcom/nwgcc-nord.c | 688 ++++++++++++++
> drivers/clk/qcom/segcc-nord.c | 1609 +++++++++++++++++++++++++++++++++
> 6 files changed, 6196 insertions(+)
>
> +
> +static const struct qcom_cc_desc se_gcc_nord_desc = {
> + .config = &se_gcc_nord_regmap_config,
> + .clks = se_gcc_nord_clocks,
> + .num_clks = ARRAY_SIZE(se_gcc_nord_clocks),
> + .resets = se_gcc_nord_resets,
> + .num_resets = ARRAY_SIZE(se_gcc_nord_resets),
> + .gdscs = se_gcc_nord_gdscs,
> + .num_gdscs = ARRAY_SIZE(se_gcc_nord_gdscs),
> + .driver_data = &se_gcc_nord_driver_data,
use_rpm = true?
(here and in other drivers)
> +};
> +
> +static const struct of_device_id se_gcc_nord_match_table[] = {
> + { .compatible = "qcom,nord-segcc" },
> + { }
> +};
> +MODULE_DEVICE_TABLE(of, se_gcc_nord_match_table);
> +
> +static int se_gcc_nord_probe(struct platform_device *pdev)
> +{
> + return qcom_cc_probe(pdev, &se_gcc_nord_desc);
> +}
> +
> +static struct platform_driver se_gcc_nord_driver = {
> + .probe = se_gcc_nord_probe,
> + .driver = {
> + .name = "segcc-nord",
> + .of_match_table = se_gcc_nord_match_table,
> + },
> +};
> +
> +module_platform_driver(se_gcc_nord_driver);
> +
> +MODULE_DESCRIPTION("QTI SEGCC NORD Driver");
> +MODULE_LICENSE("GPL");
>
> --
> 2.47.3
>
--
With best wishes
Dmitry