Message ID | 20210211052206.2955988-1-daniel@0x0f.com |
---|---|
Headers | show |
Series | ARM: mstar: Basic MPLL support | expand |
Quoting Daniel Palmer (2021-02-10 21:22:00) > Simple header to document the relationship between the MPLL outputs > and which divider they come from. > > Output 0 is missing because it should not be consumed. > > Signed-off-by: Daniel Palmer <daniel@0x0f.com> > Acked-by: Rob Herring <robh@kernel.org> > --- Applied to clk-next
Quoting Daniel Palmer (2021-02-10 21:22:03) > This adds a basic driver for the MPLL block found in MStar/SigmaStar > ARMv7 SoCs. > > Currently this driver is only good for calculating the rates of it's > outputs and the actual configuration must be done before the kernel > boots. Usually this is done even before u-boot starts. > > This driver targets the MPLL block found in the MSC313/MSC313E but > there is no documentation this chip so the register descriptions for > the another MStar chip the MST786 were used as they seem to match. > > Signed-off-by: Daniel Palmer <daniel@0x0f.com> > --- Applied to clk-next
Quoting Daniel Palmer (2021-02-10 21:22:03) > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index 85856cff506c..a29c15444d0e 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -379,6 +379,7 @@ source "drivers/clk/ingenic/Kconfig" > source "drivers/clk/keystone/Kconfig" > source "drivers/clk/mediatek/Kconfig" > source "drivers/clk/meson/Kconfig" > +source "drivers/clk/mstar/Kconfig" > source "drivers/clk/mvebu/Kconfig" > source "drivers/clk/qcom/Kconfig" > source "drivers/clk/renesas/Kconfig" > diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile > index dbdc590e7de3..7fed7e5944cd 100644 > --- a/drivers/clk/Makefile > +++ b/drivers/clk/Makefile > @@ -95,6 +95,7 @@ obj-$(CONFIG_MACH_PIC32) += microchip/ > ifeq ($(CONFIG_COMMON_CLK), y) > obj-$(CONFIG_ARCH_MMP) += mmp/ > endif > +obj-$(CONFIG_ARCH_MSTARV7) += mstar/ > obj-y += mvebu/ > obj-$(CONFIG_ARCH_MXS) += mxs/ > obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ > diff --git a/drivers/clk/mstar/Kconfig b/drivers/clk/mstar/Kconfig > new file mode 100644 > index 000000000000..23765edde3af > --- /dev/null > +++ b/drivers/clk/mstar/Kconfig > @@ -0,0 +1,5 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +config MSTAR_MSC313_MPLL > + bool > + select REGMAP > + select REGMAP_MMIO BTW, it would be nice to expose this driver to compile testing instead of putting it behind ARCH_MSTARTV7. Can we have this patch? ---8<--- diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 7fed7e5944cd..e5e23a44fbe9 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -95,7 +95,7 @@ obj-$(CONFIG_MACH_PIC32) += microchip/ ifeq ($(CONFIG_COMMON_CLK), y) obj-$(CONFIG_ARCH_MMP) += mmp/ endif -obj-$(CONFIG_ARCH_MSTARV7) += mstar/ +obj-y += mstar/ obj-y += mvebu/ obj-$(CONFIG_ARCH_MXS) += mxs/ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ diff --git a/drivers/clk/mstar/Kconfig b/drivers/clk/mstar/Kconfig index 23765edde3af..adac76f60f3e 100644 --- a/drivers/clk/mstar/Kconfig +++ b/drivers/clk/mstar/Kconfig @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only config MSTAR_MSC313_MPLL - bool - select REGMAP + bool "MStar MPLL driver" + depends on ARCH_MSTARV7 || COMPILE_TEST + default ARCH_MSTARV7 select REGMAP_MMIO
Hi Stephen, On Mon, 15 Feb 2021 at 05:48, Stephen Boyd <sboyd@kernel.org> wrote: > BTW, it would be nice to expose this driver to compile testing instead > of putting it behind ARCH_MSTARTV7. Can we have this patch? I like that idea. I'll send a patch. Thanks, Daniel
Hi Arnd and Olof, On Thu, 11 Feb 2021 at 14:22, Daniel Palmer <daniel@0x0f.com> wrote: > Daniel Palmer (7): > dt-bindings: clk: mstar msc313 mpll binding header > dt-bindings: clk: mstar msc313 mpll binding description > clk: fixed: add devm helper for clk_hw_register_fixed_factor() > clk: mstar: MStar/SigmaStar MPLL driver > ARM: mstar: Select MSTAR_MSC313_MPLL > ARM: mstar: Add the external clocks to the base dsti > ARM: mstar: Add mpll to base dtsi The first four patches have now been merged. I forgot to send these to the soc patchwork so I think the last 3 didn't show up on your radar.. What do I need to do to get the last 3 merged? Thanks, Daniel
On Tue, Feb 23, 2021 at 2:44 AM Daniel Palmer <daniel@0x0f.com> wrote: > > On Thu, 11 Feb 2021 at 14:22, Daniel Palmer <daniel@0x0f.com> wrote: > > Daniel Palmer (7): > > dt-bindings: clk: mstar msc313 mpll binding header > > dt-bindings: clk: mstar msc313 mpll binding description > > clk: fixed: add devm helper for clk_hw_register_fixed_factor() > > clk: mstar: MStar/SigmaStar MPLL driver > > ARM: mstar: Select MSTAR_MSC313_MPLL > > ARM: mstar: Add the external clocks to the base dsti > > ARM: mstar: Add mpll to base dtsi > > The first four patches have now been merged. > I forgot to send these to the soc patchwork so I think the last 3 > didn't show up on your radar.. > What do I need to do to get the last 3 merged? Let's merge them for the next merge window, please send them after -rc1 is out. Arnd