From: Mike Turquette <mturquette@linaro.org>
To: Jingchang Lu <jingchang.lu@freescale.com>,
Cc: scottwood@freescale.com, linuxppc-dev@lists.ozlabs.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Jingchang Lu <jingchang.lu@freescale.com>
Subject: Re: [PATCHv4] clk: ppc-corenet: rename to ppc-qoriq and add CLK_OF_DECLARE support
Date: Thu, 25 Sep 2014 14:39:59 -0700 [thread overview]
Message-ID: <20140925213959.19023.80648@quantum> (raw)
In-Reply-To: <1411454806-8214-1-git-send-email-jingchang.lu@freescale.com>
Quoting Jingchang Lu (2014-09-22 23:46:46)
> The IP is shared by PPC and ARM, this renames it to qoriq for better
> represention, and this also adds the CLK_OF_DECLARE support for being
> initialized by of_clk_init() on ARM.
> =
> Signed-off-by: Jingchang Lu <jingchang.lu@freescale.com>
> ---
> changes in v4:
> remove "corenet" literals omitted in v3 remove.
> =
> changes in v3:
> generate the patch with -M -C option
> =
> changes in v2:
> rename the driver name to ppc-qoriq.c for shared on PPC and ARM.
> =
> drivers/clk/Kconfig | 9 +++++----
> drivers/clk/Makefile | 2 +-
> drivers/clk/{clk-ppc-corenet.c =3D> clk-qoriq.c} | 27 +++++++++++++++---=
--------
> 3 files changed, 22 insertions(+), 16 deletions(-)
> rename drivers/clk/{clk-ppc-corenet.c =3D> clk-qoriq.c} (89%)
> =
> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
> index 85131ae..f5f76cb 100644
> --- a/drivers/clk/Kconfig
> +++ b/drivers/clk/Kconfig
> @@ -92,12 +92,13 @@ config COMMON_CLK_AXI_CLKGEN
> Support for the Analog Devices axi-clkgen pcore clock generator=
for Xilinx
> FPGAs. It is commonly used in Analog Devices' reference designs.
> =
> -config CLK_PPC_CORENET
> - bool "Clock driver for PowerPC corenet platforms"
> - depends on PPC_E500MC && OF
> +config CLK_QORIQ
> + bool "Clock driver for PowerPC corenet and compatible ARM-based p=
latforms"
> + depends on (PPC_E500MC || ARM) && OF
> ---help---
> This adds the clock driver support for Freescale PowerPC corenet
> - platforms using common clock framework.
> + platforms and compatible Freescale ARM based platforms using co=
mmon
> + clock framework.
> =
> config COMMON_CLK_XGENE
> bool "Clock driver for APM XGene SoC"
> diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
> index 27c542b..20f42e9 100644
> --- a/drivers/clk/Makefile
> +++ b/drivers/clk/Makefile
> @@ -29,7 +29,7 @@ obj-$(CONFIG_ARCH_MOXART) +=3D clk-moxart.o
> obj-$(CONFIG_ARCH_NOMADIK) +=3D clk-nomadik.o
> obj-$(CONFIG_ARCH_NSPIRE) +=3D clk-nspire.o
> obj-$(CONFIG_COMMON_CLK_PALMAS) +=3D clk-palmas.o
> -obj-$(CONFIG_CLK_PPC_CORENET) +=3D clk-ppc-corenet.o
> +obj-$(CONFIG_CLK_QORIQ) +=3D clk-qoriq.o
> obj-$(CONFIG_COMMON_CLK_S2MPS11) +=3D clk-s2mps11.o
> obj-$(CONFIG_COMMON_CLK_SI5351) +=3D clk-si5351.o
> obj-$(CONFIG_COMMON_CLK_SI570) +=3D clk-si570.o
> diff --git a/drivers/clk/clk-ppc-corenet.c b/drivers/clk/clk-qoriq.c
> similarity index 89%
> rename from drivers/clk/clk-ppc-corenet.c
> rename to drivers/clk/clk-qoriq.c
> index 8e58edf..cba8abe 100644
> --- a/drivers/clk/clk-ppc-corenet.c
> +++ b/drivers/clk/clk-qoriq.c
> @@ -155,7 +155,7 @@ static void __init core_pll_init(struct device_node *=
np)
> =
> base =3D of_iomap(np, 0);
> if (!base) {
> - pr_err("clk-ppc: iomap error\n");
> + pr_err("clk-qoriq: iomap error\n");
> return;
> }
> =
> @@ -252,7 +252,7 @@ static void __init sysclk_init(struct device_node *no=
de)
> u32 rate;
> =
> if (!np) {
> - pr_err("ppc-clk: could not get parent node\n");
> + pr_err("qoriq-clk: could not get parent node\n");
> return;
> }
> =
> @@ -278,30 +278,35 @@ static const struct of_device_id clk_match[] __init=
const =3D {
> {}
> };
> =
> -static int __init ppc_corenet_clk_probe(struct platform_device *pdev)
> +static int __init qoriq_clk_probe(struct platform_device *pdev)
> {
> of_clk_init(clk_match);
> =
> return 0;
> }
> =
> -static const struct of_device_id ppc_clk_ids[] __initconst =3D {
> +static const struct of_device_id qoriq_clk_ids[] __initconst =3D {
> { .compatible =3D "fsl,qoriq-clockgen-1.0", },
> { .compatible =3D "fsl,qoriq-clockgen-2.0", },
> {}
> };
> =
> -static struct platform_driver ppc_corenet_clk_driver __initdata =3D {
> +static struct platform_driver qoriq_clk_driver __initdata =3D {
> .driver =3D {
> - .name =3D "ppc_corenet_clock",
> + .name =3D "qoriq_clock",
> .owner =3D THIS_MODULE,
> - .of_match_table =3D ppc_clk_ids,
> + .of_match_table =3D qoriq_clk_ids,
> },
> - .probe =3D ppc_corenet_clk_probe,
> + .probe =3D qoriq_clk_probe,
> };
> =
> -static int __init ppc_corenet_clk_init(void)
> +static int __init qoriq_clk_init(void)
> {
> - return platform_driver_register(&ppc_corenet_clk_driver);
> + return platform_driver_register(&qoriq_clk_driver);
> }
> -subsys_initcall(ppc_corenet_clk_init);
> +subsys_initcall(qoriq_clk_init);
> +
> +CLK_OF_DECLARE(qoriq_core_pll_v1, "fsl,qoriq-core-pll-1.0", core_pll_ini=
t);
> +CLK_OF_DECLARE(qoriq_core_pll_v2, "fsl,qoriq-core-pll-2.0", core_pll_ini=
t);
> +CLK_OF_DECLARE(qoriq_core_mux_v1, "fsl,qoriq-core-mux-1.0", core_mux_ini=
t);
> +CLK_OF_DECLARE(qoriq_core_mux_v2, "fsl,qoriq-core-mux-2.0", core_mux_ini=
t);
Is there binding documentation for these compatibles?
Regards,
Mike
> -- =
> 1.8.0
>=20
WARNING: multiple messages have this Message-ID (diff)
From: mturquette@linaro.org (Mike Turquette)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv4] clk: ppc-corenet: rename to ppc-qoriq and add CLK_OF_DECLARE support
Date: Thu, 25 Sep 2014 14:39:59 -0700 [thread overview]
Message-ID: <20140925213959.19023.80648@quantum> (raw)
In-Reply-To: <1411454806-8214-1-git-send-email-jingchang.lu@freescale.com>
Quoting Jingchang Lu (2014-09-22 23:46:46)
> The IP is shared by PPC and ARM, this renames it to qoriq for better
> represention, and this also adds the CLK_OF_DECLARE support for being
> initialized by of_clk_init() on ARM.
>
> Signed-off-by: Jingchang Lu <jingchang.lu@freescale.com>
> ---
> changes in v4:
> remove "corenet" literals omitted in v3 remove.
>
> changes in v3:
> generate the patch with -M -C option
>
> changes in v2:
> rename the driver name to ppc-qoriq.c for shared on PPC and ARM.
>
> drivers/clk/Kconfig | 9 +++++----
> drivers/clk/Makefile | 2 +-
> drivers/clk/{clk-ppc-corenet.c => clk-qoriq.c} | 27 +++++++++++++++-----------
> 3 files changed, 22 insertions(+), 16 deletions(-)
> rename drivers/clk/{clk-ppc-corenet.c => clk-qoriq.c} (89%)
>
> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
> index 85131ae..f5f76cb 100644
> --- a/drivers/clk/Kconfig
> +++ b/drivers/clk/Kconfig
> @@ -92,12 +92,13 @@ config COMMON_CLK_AXI_CLKGEN
> Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
> FPGAs. It is commonly used in Analog Devices' reference designs.
>
> -config CLK_PPC_CORENET
> - bool "Clock driver for PowerPC corenet platforms"
> - depends on PPC_E500MC && OF
> +config CLK_QORIQ
> + bool "Clock driver for PowerPC corenet and compatible ARM-based platforms"
> + depends on (PPC_E500MC || ARM) && OF
> ---help---
> This adds the clock driver support for Freescale PowerPC corenet
> - platforms using common clock framework.
> + platforms and compatible Freescale ARM based platforms using common
> + clock framework.
>
> config COMMON_CLK_XGENE
> bool "Clock driver for APM XGene SoC"
> diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
> index 27c542b..20f42e9 100644
> --- a/drivers/clk/Makefile
> +++ b/drivers/clk/Makefile
> @@ -29,7 +29,7 @@ obj-$(CONFIG_ARCH_MOXART) += clk-moxart.o
> obj-$(CONFIG_ARCH_NOMADIK) += clk-nomadik.o
> obj-$(CONFIG_ARCH_NSPIRE) += clk-nspire.o
> obj-$(CONFIG_COMMON_CLK_PALMAS) += clk-palmas.o
> -obj-$(CONFIG_CLK_PPC_CORENET) += clk-ppc-corenet.o
> +obj-$(CONFIG_CLK_QORIQ) += clk-qoriq.o
> obj-$(CONFIG_COMMON_CLK_S2MPS11) += clk-s2mps11.o
> obj-$(CONFIG_COMMON_CLK_SI5351) += clk-si5351.o
> obj-$(CONFIG_COMMON_CLK_SI570) += clk-si570.o
> diff --git a/drivers/clk/clk-ppc-corenet.c b/drivers/clk/clk-qoriq.c
> similarity index 89%
> rename from drivers/clk/clk-ppc-corenet.c
> rename to drivers/clk/clk-qoriq.c
> index 8e58edf..cba8abe 100644
> --- a/drivers/clk/clk-ppc-corenet.c
> +++ b/drivers/clk/clk-qoriq.c
> @@ -155,7 +155,7 @@ static void __init core_pll_init(struct device_node *np)
>
> base = of_iomap(np, 0);
> if (!base) {
> - pr_err("clk-ppc: iomap error\n");
> + pr_err("clk-qoriq: iomap error\n");
> return;
> }
>
> @@ -252,7 +252,7 @@ static void __init sysclk_init(struct device_node *node)
> u32 rate;
>
> if (!np) {
> - pr_err("ppc-clk: could not get parent node\n");
> + pr_err("qoriq-clk: could not get parent node\n");
> return;
> }
>
> @@ -278,30 +278,35 @@ static const struct of_device_id clk_match[] __initconst = {
> {}
> };
>
> -static int __init ppc_corenet_clk_probe(struct platform_device *pdev)
> +static int __init qoriq_clk_probe(struct platform_device *pdev)
> {
> of_clk_init(clk_match);
>
> return 0;
> }
>
> -static const struct of_device_id ppc_clk_ids[] __initconst = {
> +static const struct of_device_id qoriq_clk_ids[] __initconst = {
> { .compatible = "fsl,qoriq-clockgen-1.0", },
> { .compatible = "fsl,qoriq-clockgen-2.0", },
> {}
> };
>
> -static struct platform_driver ppc_corenet_clk_driver __initdata = {
> +static struct platform_driver qoriq_clk_driver __initdata = {
> .driver = {
> - .name = "ppc_corenet_clock",
> + .name = "qoriq_clock",
> .owner = THIS_MODULE,
> - .of_match_table = ppc_clk_ids,
> + .of_match_table = qoriq_clk_ids,
> },
> - .probe = ppc_corenet_clk_probe,
> + .probe = qoriq_clk_probe,
> };
>
> -static int __init ppc_corenet_clk_init(void)
> +static int __init qoriq_clk_init(void)
> {
> - return platform_driver_register(&ppc_corenet_clk_driver);
> + return platform_driver_register(&qoriq_clk_driver);
> }
> -subsys_initcall(ppc_corenet_clk_init);
> +subsys_initcall(qoriq_clk_init);
> +
> +CLK_OF_DECLARE(qoriq_core_pll_v1, "fsl,qoriq-core-pll-1.0", core_pll_init);
> +CLK_OF_DECLARE(qoriq_core_pll_v2, "fsl,qoriq-core-pll-2.0", core_pll_init);
> +CLK_OF_DECLARE(qoriq_core_mux_v1, "fsl,qoriq-core-mux-1.0", core_mux_init);
> +CLK_OF_DECLARE(qoriq_core_mux_v2, "fsl,qoriq-core-mux-2.0", core_mux_init);
Is there binding documentation for these compatibles?
Regards,
Mike
> --
> 1.8.0
>
next prev parent reply other threads:[~2014-09-25 21:40 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 6:46 [PATCHv4] clk: ppc-corenet: rename to ppc-qoriq and add CLK_OF_DECLARE support Jingchang Lu
2014-09-23 6:46 ` Jingchang Lu
2014-09-23 6:46 ` Jingchang Lu
2014-09-25 9:47 ` Jingchang Lu
2014-09-25 9:47 ` Jingchang Lu
2014-09-25 9:47 ` Jingchang Lu
2014-09-25 20:08 ` Scott Wood
2014-09-25 20:08 ` Scott Wood
2014-09-25 20:08 ` Scott Wood
2014-09-25 22:54 ` Mike Turquette
2014-09-25 22:54 ` Mike Turquette
2014-09-25 22:54 ` Mike Turquette
2014-09-25 22:56 ` Scott Wood
2014-09-25 22:56 ` Scott Wood
2014-09-25 22:56 ` Scott Wood
2014-09-26 23:29 ` Mike Turquette
2014-09-26 23:29 ` Mike Turquette
2014-09-28 2:18 ` Yuantian Tang
2014-09-28 2:18 ` Yuantian Tang
2014-09-28 2:18 ` Yuantian Tang
2014-09-29 23:57 ` Scott Wood
2014-09-29 23:57 ` Scott Wood
2014-09-29 23:57 ` Scott Wood
2014-10-08 3:28 ` Yuantian Tang
2014-10-08 3:28 ` Yuantian Tang
2014-10-08 3:28 ` Yuantian Tang
2014-09-25 12:55 ` Laurentiu Tudor
2014-09-25 12:55 ` Laurentiu Tudor
2014-09-25 12:55 ` Laurentiu Tudor
2014-09-28 10:01 ` Jingchang Lu
2014-09-28 10:01 ` Jingchang Lu
2014-09-28 10:01 ` Jingchang Lu
2014-09-25 21:39 ` Mike Turquette [this message]
2014-09-25 21:39 ` Mike Turquette
2014-09-25 22:04 ` Scott Wood
2014-09-25 22:04 ` Scott Wood
2014-09-25 22:04 ` Scott Wood
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=20140925213959.19023.80648@quantum \
--to=mturquette@linaro.org \
--cc=jingchang.lu@freescale.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=scottwood@freescale.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.