Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-22 Thread Stephen Boyd
; MMP clk drivers do so. I guess the initialization should look like any > >>>> of the qcom GCC drivers then? > >>> > >>> Yes. > >> > >> With the entire clock driver code in one file this is quite messy as I also > >> needed to add module_ini

Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-20 Thread Duje Mihanović
river? Not that I know of, I did it like this only because the other in-tree MMP clk drivers do so. I guess the initialization should look like any of the qcom GCC drivers then? Yes. With the entire clock driver code in one file this is quite messy as I also needed to add module_init and module

Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-19 Thread Stephen Boyd
a platform driver? > > > > > > Not that I know of, I did it like this only because the other in-tree > > > MMP clk drivers do so. I guess the initialization should look like any > > > of the qcom GCC drivers then? > > > > Yes. > > With the

Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-19 Thread Duje Mihanović
it like this only because the other in-tree > > MMP clk drivers do so. I guess the initialization should look like any > > of the qcom GCC drivers then? > > Yes. With the entire clock driver code in one file this is quite messy as I also needed to add module_init and mod

Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-11 Thread Stephen Boyd
Quoting Duje Mihanović (2024-04-11 03:15:34) > On 4/11/2024 10:00 AM, Stephen Boyd wrote: > > > > Is there a reason this file can't be a platform driver? > > Not that I know of, I did it like this only because the other in-tree > MMP clk drivers do so. I guess the initialization should look like

Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-11 Thread Duje Mihanović
On 4/11/2024 10:00 AM, Stephen Boyd wrote: Quoting Duje Mihanović (2024-04-02 13:55:41) diff --git a/drivers/clk/mmp/clk-of-pxa1908.c b/drivers/clk/mmp/clk-of-pxa1908.c new file mode 100644 index ..6f1f6e25a718 --- /dev/null +++ b/drivers/clk/mmp/clk-of-pxa1908.c @@ -0,0 +1,328 @@ +/

Re: [PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-11 Thread Stephen Boyd
Quoting Duje Mihanović (2024-04-02 13:55:41) > diff --git a/drivers/clk/mmp/clk-of-pxa1908.c > b/drivers/clk/mmp/clk-of-pxa1908.c > new file mode 100644 > index ..6f1f6e25a718 > --- /dev/null > +++ b/drivers/clk/mmp/clk-of-pxa1908.c > @@ -0,0 +1,328 @@ > +// SPDX-License-Identifier: GP

[PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-02 Thread Duje Mihanović
Add driver for Marvell PXA1908 clock controller blocks. The SoC has numerous clock controller blocks, currently supporting APBC, APBCP, MPMU and APMU. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-of-pxa1908.c | 328 +

[PATCH v8 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-01-10 Thread Duje Mihanović
Add driver for Marvell PXA1908 clock controller blocks. The SoC has numerous clock controller blocks, currently supporting APBC, APBCP, MPMU and APMU. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-of-pxa1908.c | 328 +

[PATCH v3 05/11] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

Re: [PATCH v13 1/4] clk: ralink: add clock driver for mt7621 SoC

2021-04-13 Thread Stephen Boyd
Quoting Sergio Paracuellos (2021-04-09 22:50:56) > The documentation for this SOC only talks about two > registers regarding to the clocks: > * SYSC_REG_CPLL_CLKCFG0 - provides some information about > boostrapped refclock. PLL and dividers used for CPU and some > sort of BUS. > * SYSC_REG_CPLL_CLK

Re: [PATCH 3/5] ASoC: rt5682: clock driver must use the clock provider API

2021-04-13 Thread Jerome Brunet
On Mon 12 Apr 2021 at 22:27, Stephen Boyd wrote: > Quoting Jerome Brunet (2021-04-10 04:13:54) >> Clock drivers ops should not the clk API but the clock provider (clk_hw) >> instead. >> >> Signed-off-by: Jerome Brunet >> --- >> sound/soc/codecs/rt5682.c | 6 +++--- >> 1 file changed, 3 inser

Re: [PATCH 3/5] ASoC: rt5682: clock driver must use the clock provider API

2021-04-12 Thread Stephen Boyd
Quoting Jerome Brunet (2021-04-10 04:13:54) > Clock drivers ops should not the clk API but the clock provider (clk_hw) > instead. > > Signed-off-by: Jerome Brunet > --- > sound/soc/codecs/rt5682.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/codecs/rt

[PATCH 3/5] ASoC: rt5682: clock driver must use the clock provider API

2021-04-10 Thread Jerome Brunet
Clock drivers ops should not the clk API but the clock provider (clk_hw) instead. Signed-off-by: Jerome Brunet --- sound/soc/codecs/rt5682.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 0e2a10ed11da..2eee02a

[PATCH v13 1/4] clk: ralink: add clock driver for mt7621 SoC

2021-04-09 Thread Sergio Paracuellos
s/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 9b582b3fca34..5f06879d7fe9 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -100,6 +100,7 @@ obj-$(CONFIG_COMMON_CLK_NXP)+= nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/

[PATCH v13 0/4] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-04-09 Thread Sergio Paracuellos
k_priv' struct to store there pointers to regmap handlers to be able to use regmap operations from normal clock api functions. Add this pointer in 'mt7621_clk' and 'mt7621_clk_gate' before register its related clocks to make things work. - Add Greg's Acked-by in pat

[PATCH v12 1/4] clk: ralink: add clock driver for mt7621 SoC

2021-04-09 Thread Sergio Paracuellos
t;drivers/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 5325847469e9..1b35ad852721 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/

[PATCH v12 0/4] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-04-09 Thread Sergio Paracuellos
om normal clock api functions. Add this pointer in 'mt7621_clk' and 'mt7621_clk_gate' before register its related clocks to make things work. - Add Greg's Acked-by in patches 4 and 5. - Rebase this series on the top of linux-next tag 'next-20210215'.

Re: [PATCH v11 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-04-09 Thread Sergio Paracuellos
l > > +++ b/drivers/clk/ralink/Kconfig > > @@ -0,0 +1,15 @@ > > +# SPDX-License-Identifier: GPL-2.0-only > > +# > > +# MediaTek Mt7621 Clock Driver > > +# > > +menu "Clock driver for Mediatek mt7621 SoC" > > + depends on SOC_MT7621 || COMPIL

Re: [PATCH v11 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-04-09 Thread Stephen Boyd
Quoting Sergio Paracuellos (2021-04-09 11:25:24) > Hi Stephen, > > On Fri, Apr 9, 2021 at 8:17 PM Stephen Boyd wrote: > > > > Quoting Sergio Paracuellos (2021-03-23 01:13:22) > > > On Tue, Mar 9, 2021 at 6:22 AM Sergio Paracuellos > > > wrote: > > > > > > > > Changes in v11: > > > > - Collect R

Re: [PATCH v11 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-04-09 Thread Sergio Paracuellos
Hi Stephen, On Fri, Apr 9, 2021 at 8:17 PM Stephen Boyd wrote: > > Quoting Sergio Paracuellos (2021-03-23 01:13:22) > > On Tue, Mar 9, 2021 at 6:22 AM Sergio Paracuellos > > wrote: > > > > > > Changes in v11: > > > - Collect Rob's Reviewed-by in bindings documentation patch. > > > - Fix MAINTA

Re: [PATCH v11 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-04-09 Thread Stephen Boyd
ntifier: GPL-2.0-only > +# > +# MediaTek Mt7621 Clock Driver > +# > +menu "Clock driver for Mediatek mt7621 SoC" > + depends on SOC_MT7621 || COMPILE_TEST Do we need a menu and a config that says the same thing? Maybe the menu can be dropped? > + > +config CLK_MT7

[PATCH 2/7] ARM: configs: qcom_defconfig: Enable SDX55 A7 PLL and APCS clock driver

2021-04-08 Thread Manivannan Sadhasivam
Enable A7 PLL driver and APCS clock driver on SDX55 platform. Signed-off-by: Manivannan Sadhasivam --- arch/arm/configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconfig index 0b9da27f923a..02f6185f31a6 100644

[PATCH v8 2/2] clk: hisilicon: Add clock driver for hi3559A SoC

2021-03-23 Thread Dongjiu Geng
b/drivers/clk/hisilicon/Kconfig index 6a9e93a..5ecc37a 100644 --- a/drivers/clk/hisilicon/Kconfig +++ b/drivers/clk/hisilicon/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool "Hi3559A Clock D

Re: [PATCH v11 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-03-23 Thread Sergio Paracuellos
#x27;memc'. With >this changes architecture dependent include 'asm/mach-ralink/ralink_regs.h' >is not needed anymore because we access this two syscons using a phandle >through kernel's regmap APIs. Explanation of this two areas is in [2]. > - Add new 'mt7621

[PATCH v11 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-03-08 Thread Sergio Paracuellos
t;drivers/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 5325847469e9..1b35ad852721 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

[PATCH v11 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-03-08 Thread Sergio Paracuellos
ugh kernel's regmap APIs. Explanation of this two areas is in [2]. - Add new 'mt7621_clk_priv' struct to store there pointers to regmap handlers to be able to use regmap operations from normal clock api functions. Add this pointer in 'mt7621_clk' and 'mt7621_clk_

[PATCH v10 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-03-06 Thread Sergio Paracuellos
t;drivers/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 5325847469e9..1b35ad852721 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

[PATCH v10 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-03-06 Thread Sergio Paracuellos
e able to use regmap operations from normal clock api functions. Add this pointer in 'mt7621_clk' and 'mt7621_clk_gate' before register its related clocks to make things work. - Add Greg's Acked-by in patches 4 and 5. - Rebase this series on the top of linux-next ta

[PATCH v9 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-02-18 Thread Sergio Paracuellos
t;drivers/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 5325847469e9..1b35ad852721 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

[PATCH v9 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-02-17 Thread Sergio Paracuellos
es. Most of other drivers just make use of platform operations defined in 'asm/mach-ralink/ralink_regs.h' but this can be avoided declaring this two nodes to be accesible through syscon. Since these are the only two needed control interfaces for this clock driver that seems to be the cor

[PATCH v8 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-02-17 Thread Sergio Paracuellos
es. Most of other drivers just make use of platform operations defined in 'asm/mach-ralink/ralink_regs.h' but this can be avoided declaring this two nodes to be accesible through syscon. Since these are the only two needed control interfaces for this clock driver that seems to be the cor

[PATCH v8 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-02-17 Thread Sergio Paracuellos
t;drivers/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 5325847469e9..1b35ad852721 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

Re: [PATCH v7 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-02-17 Thread kernel test robot
patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sergio-Paracuellos/MIPS-ralink-add-CPU-clock-detection-and-clock-driver-for-MT7621/20210217-194316 base: https://git.kernel.org/pub/scm/linux/

[PATCH v7 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-02-17 Thread Sergio Paracuellos
t;drivers/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 5325847469e9..1b35ad852721 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

[PATCH v7 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-02-17 Thread Sergio Paracuellos
es. Most of other drivers just make use of platform operations defined in 'asm/mach-ralink/ralink_regs.h' but this can be avoided declaring this two nodes to be accesible through syscon. Since these are the only two needed control interfaces for this clock driver that seems to be the cor

[PATCH v6 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-02-16 Thread Sergio Paracuellos
t;drivers/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 5325847469e9..1b35ad852721 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

[PATCH v6 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-02-16 Thread Sergio Paracuellos
es. Most of other drivers just make use of platform operations defined in 'asm/mach-ralink/ralink_regs.h' but this can be avoided declaring this two nodes to be accesible through syscon. Since these are the only two needed control interfaces for this clock driver that seems to be the cor

Re: [PATCHv2 2/2] clk: socfpga: agilex: add clock driver for eASIC N5X platform

2021-02-12 Thread Stephen Boyd
Quoting Dinh Nguyen (2021-02-12 06:30:59) > Add support for Intel's eASIC N5X platform. The clock manager driver for > the N5X is very similar to the Agilex platform, we can re-use most of > the Agilex clock driver. > > This patch makes the necessary changes for the dri

Re: [PATCH] clk: socfpga: agilex: add clock driver for eASIC N5X platform

2021-02-12 Thread Dinh Nguyen
On 2/10/21 9:05 PM, Stephen Boyd wrote: Quoting Dinh Nguyen (2021-01-05 11:29:56) Add support for Intel's eASIC N5X platform. The clock manager driver for the N5X is very similar to the Agilex platform, we can re-use most of the Agilex clock driver. This patch makes the necessary ch

[PATCHv2 2/2] clk: socfpga: agilex: add clock driver for eASIC N5X platform

2021-02-12 Thread Dinh Nguyen
Add support for Intel's eASIC N5X platform. The clock manager driver for the N5X is very similar to the Agilex platform, we can re-use most of the Agilex clock driver. This patch makes the necessary changes for the driver to differentiate between the Agilex and the N5X platforms. Signed-o

Re: [PATCH] clk: socfpga: agilex: add clock driver for eASIC N5X platform

2021-02-10 Thread Stephen Boyd
Quoting Dinh Nguyen (2021-01-05 11:29:56) > Add support for Intel's eASIC N5X platform. The clock manager driver for > the N5X is very similar to the Agilex platform, we can re-use most of > the Agilex clock driver. > > This patch makes the necessary changes for the dri

Re: [PATCH v5 5/5] clk: qcom: gcc: Add clock driver for SM8350

2021-02-08 Thread Stephen Boyd
Quoting Vinod Koul (2021-01-26 23:08:11) > From: Vivek Aknurwar > > This adds Global Clock controller (GCC) driver for SM8350 SoC > > Signed-off-by: Vivek Aknurwar > Signed-off-by: Jeevan Shriram > [vkoul: rebase and tidy up for upstream] > Signed-off-by: Vinod Koul > Reviewed-by: Bjorn Ander

[PATCH v5 5/5] clk: qcom: gcc: Add clock driver for SM8350

2021-01-26 Thread Vinod Koul
From: Vivek Aknurwar This adds Global Clock controller (GCC) driver for SM8350 SoC Signed-off-by: Vivek Aknurwar Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- drivers/clk/qcom/Kconfig |8 + drivers/

[PATCH v2 05/14] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

[PATCH 5.10 051/199] clk: tegra30: Add hda clock default rates to clock driver

2021-01-26 Thread Greg Kroah-Hartman
From: Peter Geis [ Upstream commit f4eccc7fea203cfb35205891eced1ab51836f362 ] Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124

[PATCH 4.19 17/58] clk: tegra30: Add hda clock default rates to clock driver

2021-01-26 Thread Greg Kroah-Hartman
From: Peter Geis [ Upstream commit f4eccc7fea203cfb35205891eced1ab51836f362 ] Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124

[PATCH 5.4 28/86] clk: tegra30: Add hda clock default rates to clock driver

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Geis [ Upstream commit f4eccc7fea203cfb35205891eced1ab51836f362 ] Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124

Re: [PATCH v4 5/5] clk: qcom: gcc: Add clock driver for SM8350

2021-01-25 Thread Bjorn Andersson
On Sun 17 Jan 22:43 CST 2021, Vinod Koul wrote: > From: Vivek Aknurwar > > This adds Global Clock controller (GCC) driver for SM8350 SoC > > Signed-off-by: Vivek Aknurwar > Signed-off-by: Jeevan Shriram > [vkoul: rebase and tidy up for upstream] > Signed-off-by: Vinod Koul Reviewed-by: Bjor

[PATCH 05/14] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

[PATCH AUTOSEL 4.19 07/15] clk: tegra30: Add hda clock default rates to clock driver

2021-01-19 Thread Sasha Levin
From: Peter Geis [ Upstream commit f4eccc7fea203cfb35205891eced1ab51836f362 ] Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124

[PATCH AUTOSEL 5.4 11/26] clk: tegra30: Add hda clock default rates to clock driver

2021-01-19 Thread Sasha Levin
From: Peter Geis [ Upstream commit f4eccc7fea203cfb35205891eced1ab51836f362 ] Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124

[PATCH AUTOSEL 5.10 19/45] clk: tegra30: Add hda clock default rates to clock driver

2021-01-19 Thread Sasha Levin
From: Peter Geis [ Upstream commit f4eccc7fea203cfb35205891eced1ab51836f362 ] Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124

Re: [PATCH] clk: socfpga: agilex: add clock driver for eASIC N5X platform

2021-01-19 Thread Dinh Nguyen
Hi Stephen/Mike, Was wondering if you had a chance to review this patch? Thanks, Dinh On 1/5/21 1:29 PM, Dinh Nguyen wrote: Add support for Intel's eASIC N5X platform. The clock manager driver for the N5X is very similar to the Agilex platform, we can re-use most of the Agilex clock d

[PATCH v4 5/5] clk: qcom: gcc: Add clock driver for SM8350

2021-01-17 Thread Vinod Koul
From: Vivek Aknurwar This adds Global Clock controller (GCC) driver for SM8350 SoC Signed-off-by: Vivek Aknurwar Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul --- drivers/clk/qcom/Kconfig |8 + drivers/clk/qcom/Makefile |1 +

Re: [PATCH v5 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-01-17 Thread Sergio Paracuellos
o he share code[1] where > some frequencies and clock parents for the gates are coded from a > real mediatek private clock plan. > > I do really want this to be upstreamed so according to the comments > in previous attempt[0] from Oleksij Rempel and the frequencies in > code[1] I h

Re: [PATCH v7 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2021-01-12 Thread Stephen Boyd
> diff --git a/drivers/clk/hisilicon/clk-hi3559a.c > b/drivers/clk/hisilicon/clk-hi3559a.c > new file mode 100644 > index ..d7693e488006 > --- /dev/null > +++ b/drivers/clk/hisilicon/clk-hi3559a.c > @@ -0,0 +1,865 @@ > +// SPDX-License-Identifier: GPL-

Re: [PATCH v2 1/2] clk: tegra30: Add hda clock default rates to clock driver

2021-01-12 Thread Thierry Reding
On Fri, Jan 08, 2021 at 01:59:12PM +, Peter Geis wrote: > Current implementation defaults the hda clocks to clk_m. This causes hda > to run too slow to operate correctly. Fix this by defaulting to pll_p and > setting the frequency to the correct rate. > > This matches upstream t124 and downstr

Re: [PATCH v2 1/2] clk: tegra30: Add hda clock default rates to clock driver

2021-01-08 Thread Sameer Pujar
On 1/8/2021 7:29 PM, Peter Geis wrote: External email: Use caution opening links or attachments Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This

[PATCH v2 1/2] clk: tegra30: Add hda clock default rates to clock driver

2021-01-08 Thread Peter Geis
Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124 and downstream t30. Acked-by: Jon Hunter Tested-by: Ion Agorria Signed-off-by:

[PATCH] clk: socfpga: agilex: add clock driver for eASIC N5X platform

2021-01-05 Thread Dinh Nguyen
Add support for Intel's eASIC N5X platform. The clock manager driver for the N5X is very similar to the Agilex platform, we can re-use most of the Agilex clock driver. This patch makes the necessary changes for the driver to differentiate between the Agilex and the N5X platforms. Signed-o

[PATCH 4/4] clk: qcom: gcc: Add clock driver for SM8350

2021-01-05 Thread Vinod Koul
From: Vivek Aknurwar This adds Global Clock controller (GCC) driver for SM8350 SoC Signed-off-by: Vivek Aknurwar Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul --- drivers/clk/qcom/Kconfig |8 + drivers/clk/qcom/Makefile |1 +

Re: [PATCH 1/2] clk: tegra30: Add hda clock default rates to clock driver

2021-01-05 Thread Jon Hunter
On 25/12/2020 01:20, Peter Geis wrote: > Current implementation defaults the hda clocks to clk_m. > This causes hda to run too slow to operate correctly. > Fix this by defaulting to pll_p and setting the frequency to the correct rate. > > This matches upstream t124 and downstream t30. > > Signe

[PATCH 1/2] clk: tegra30: Add hda clock default rates to clock driver

2020-12-24 Thread Peter Geis
Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124 and downstream t30. Signed-off-by: Peter Geis Tested-by: Ion Agorria --- driv

[PATCH v5 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2020-12-20 Thread Sergio Paracuellos
clock parents for the gates are coded from a real mediatek private clock plan. I do really want this to be upstreamed so according to the comments in previous attempt[0] from Oleksij Rempel and the frequencies in code[1] I have tried to do this

[PATCH v5 3/6] clk: ralink: add clock driver for mt7621 SoC

2020-12-20 Thread Sergio Paracuellos
s/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index dbdc590e7de3..29b957d83c4e 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -101,6 +101,7 @@ obj-$(CONFIG_COMMON_CLK_NXP)+= nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/

Re: [PATCH v4 3/6] clk: ralink: add clock driver for mt7621 SoC

2020-12-17 Thread Sergio Paracuellos
9f13fe7c > > > > --- /dev/null > > > > +++ b/drivers/clk/ralink/clk-mt7621.c > > > > @@ -0,0 +1,435 @@ > > > > +// SPDX-License-Identifier: GPL-2.0 > > > > +/* > > > > + * Mediatek MT7621 Clock Driver > > > > + * Au

Re: [PATCH v4 3/6] clk: ralink: add clock driver for mt7621 SoC

2020-12-17 Thread Sergio Paracuellos
ig" > > source "drivers/clk/samsung/Kconfig" > > diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile > > index da8fcf147eb1..6578e167b047 100644 > > --- a/drivers/clk/Makefile > > +++ b/drivers/clk/Makefile > > @@ -100,6 +100,7 @@ obj-$(CONFIG_COMMON_CLK_NXP

Re: [PATCH v4 3/6] clk: ralink: add clock driver for mt7621 SoC

2020-12-17 Thread Stephen Boyd
g" > source "drivers/clk/renesas/Kconfig" > source "drivers/clk/rockchip/Kconfig" > source "drivers/clk/samsung/Kconfig" > diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile > index da8fcf147eb1..6578e167b047 100644 > --- a/drivers/clk/Mak

[PATCH v7 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-12-14 Thread Dongjiu Geng
/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool "Hi3559A Clock Driver" + depends on ARCH_HISI || COMPILE_TEST + default ARCH_HISI + help + Build the clock

Re: [PATCH v2 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-13 Thread Vinod Koul
Hi Taniya, On 13-12-20, 14:00, Taniya Das wrote: > > > On 12/11/2020 12:40 PM, Stephen Boyd wrote: > > Quoting Vinod Koul (2020-12-10 21:43:49) > > > On 10-12-20, 12:43, Stephen Boyd wrote: > > > > > +static struct clk_branch gcc_camera_ahb_clk = { > > > > > + .halt_reg = 0x26004, > > > >

Re: [PATCH v2 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-13 Thread Taniya Das
On 12/11/2020 12:40 PM, Stephen Boyd wrote: Quoting Vinod Koul (2020-12-10 21:43:49) On 10-12-20, 12:43, Stephen Boyd wrote: +static struct clk_branch gcc_camera_ahb_clk = { + .halt_reg = 0x26004, + .halt_check = BRANCH_HALT_DELAY, + .hwcg_reg = 0x26004, + .hwcg_bit =

[PATCH RESEND v6 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-12-11 Thread Dongjiu Geng
/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool "Hi3559A Clock Driver" + depends on ARCH_HISI || COMPILE_TEST + default ARCH_HISI + help + Build the clock

[PATCH v6 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-12-11 Thread Dongjiu Geng
/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool "Hi3559A Clock Driver" + depends on ARCH_HISI || COMPILE_TEST + default ARCH_HISI + help + Build the clock

[PATCH v6 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-12-11 Thread Dongjiu Geng
/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool "Hi3559A Clock Driver" + depends on ARCH_HISI || COMPILE_TEST + default ARCH_HISI + help + Build the clock

Re: [PATCH v2 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-10 Thread Stephen Boyd
Quoting Vinod Koul (2020-12-10 21:43:49) > On 10-12-20, 12:43, Stephen Boyd wrote: > > > +static struct clk_branch gcc_camera_ahb_clk = { > > > + .halt_reg = 0x26004, > > > + .halt_check = BRANCH_HALT_DELAY, > > > + .hwcg_reg = 0x26004, > > > + .hwcg_bit = 1, > > > + .

Re: [PATCH v2 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-10 Thread Vinod Koul
On 10-12-20, 12:43, Stephen Boyd wrote: > Quoting Vinod Koul (2020-12-07 22:47:02) > > +config SM_GCC_8350 > > + tristate "SM8350 Global Clock Controller" > > + select QCOM_GDSC > > + help > > + Support for the global clock controller on SM8350 devices. > > + Say

Re: [PATCH v2 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-10 Thread Stephen Boyd
Quoting Vinod Koul (2020-12-07 22:47:02) > diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig > index 3a965bd326d5..5015dd9332cd 100644 > --- a/drivers/clk/qcom/Kconfig > +++ b/drivers/clk/qcom/Kconfig > @@ -437,6 +437,15 @@ config SM_GCC_8250 > Say Y if you want to use peri

Re: [PATCH] arm64: defconfig: enable clock driver for ZynqMP platforms

2020-12-10 Thread Michal Simek
On 09. 12. 20 3:14, quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > The Zynqmp Ultrascale clock controller generates clocks for peripherals > by default. So enable this clock driver for ZynqMP platforms. > > Signed-off-by: Quanyang Wang > --- > arch/arm

Re: [PATCH v4 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2020-12-09 Thread Sergio Paracuellos
MIPS: ralink: add clock device providing cpu/ahb/apb clock for mt7621. > - Move all relevant clock code to 'drivers/clk/ralink/clk-mt7621.c' and > unify there previous 'mt7621-pll' and 'mt7621-clk' into a unique driver >and binding 'mt7621-clk

[PATCH] arm64: defconfig: enable clock driver for ZynqMP platforms

2020-12-08 Thread quanyang . wang
From: Quanyang Wang The Zynqmp Ultrascale clock controller generates clocks for peripherals by default. So enable this clock driver for ZynqMP platforms. Signed-off-by: Quanyang Wang --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs

[PATCH v2 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-07 Thread Vinod Koul
From: Vivek Aknurwar This adds Global Clock controller (GCC) driver for SM8350 SoC Signed-off-by: Vivek Aknurwar Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul --- drivers/clk/qcom/Kconfig |9 + drivers/clk/qcom/Makefile |1 +

Re: [PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-04 Thread Vinod Koul
Hi Taniya, On 04-12-20, 14:20, Taniya Das wrote: > On 12/4/2020 10:05 AM, Vinod Koul wrote: > > On 03-12-20, 18:06, Bjorn Andersson wrote: > > > On Thu 03 Dec 01:02 CST 2020, Vinod Koul wrote: > > > > diff --git a/drivers/clk/qcom/gcc-sm8350.c > > > > b/drivers/clk/qcom/gcc-sm8350.c > > > [..] >

Re: [PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-04 Thread Taniya Das
Hi Vinod, On 12/4/2020 10:05 AM, Vinod Koul wrote: Hi Bjorn, On 03-12-20, 18:06, Bjorn Andersson wrote: On Thu 03 Dec 01:02 CST 2020, Vinod Koul wrote: diff --git a/drivers/clk/qcom/gcc-sm8350.c b/drivers/clk/qcom/gcc-sm8350.c [..] +static int gcc_sm8350_probe(struct platform_device *pdev)

Re: [PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-03 Thread Vinod Koul
Hi Bjorn, On 03-12-20, 18:06, Bjorn Andersson wrote: > On Thu 03 Dec 01:02 CST 2020, Vinod Koul wrote: > > diff --git a/drivers/clk/qcom/gcc-sm8350.c b/drivers/clk/qcom/gcc-sm8350.c > [..] > > +static int gcc_sm8350_probe(struct platform_device *pdev) > > +{ > > + struct regmap *regmap; > > +

Re: [PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-03 Thread Bjorn Andersson
On Thu 03 Dec 01:02 CST 2020, Vinod Koul wrote: > diff --git a/drivers/clk/qcom/gcc-sm8350.c b/drivers/clk/qcom/gcc-sm8350.c [..] > +static int gcc_sm8350_probe(struct platform_device *pdev) > +{ > + struct regmap *regmap; > + int ret; > + > + regmap = qcom_cc_map(pdev, &gcc_sm8350_desc

[PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-02 Thread Vinod Koul
From: Vivek Aknurwar This adds Global Clock controller (GCC) driver for SM8350 SoC Signed-off-by: Vivek Aknurwar Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul --- drivers/clk/qcom/Kconfig |9 + drivers/clk/qcom/Makefile |1 +

[PATCH v4 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2020-11-22 Thread Sergio Paracuellos
e and now make use of 'CLK_OF_DECLARE' because we need clocks available in 'plat_time_init' before setting up the timer for the GIC. - Use new fixed clocks as parents for different gates and deriving from 'xtal' using frequencies in[1]. - Adapt dts file an

[PATCH v4 3/6] clk: ralink: add clock driver for mt7621 SoC

2020-11-22 Thread Sergio Paracuellos
s/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index da8fcf147eb1..6578e167b047 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -100,6 +100,7 @@ obj-$(CONFIG_COMMON_CLK_NXP)+= nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

[PATCH v5 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-19 Thread Dongjiu Geng
/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool "Hi3559A Clock Driver" + depends on ARCH_HISI || COMPILE_TEST + default ARCH_HISI + help + Build the clock

[PATCH v4 2/4] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-19 Thread Dongjiu Geng
/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool "Hi3559A Clock Driver" + depends on ARCH_HISI || COMPILE_TEST + default ARCH_HISI + help + Build the clock

Re: [PATCH v3 3/5] clk: ralink: add clock driver for mt7621 SoC

2020-11-19 Thread Sergio Paracuellos
Hi, On Thu, Nov 19, 2020 at 10:32 AM Chuanhong Guo wrote: > > Hi! > > On Fri, Nov 13, 2020 at 11:46 PM Sergio Paracuellos > wrote: > > [...] > > diff --git a/drivers/clk/ralink/Makefile b/drivers/clk/ralink/Makefile > > new file mode 100644 > > index ..cf6f9216379d > > --- /dev/null

Re: [PATCH v3 3/5] clk: ralink: add clock driver for mt7621 SoC

2020-11-19 Thread Chuanhong Guo
Hi! On Fri, Nov 13, 2020 at 11:46 PM Sergio Paracuellos wrote: > [...] > diff --git a/drivers/clk/ralink/Makefile b/drivers/clk/ralink/Makefile > new file mode 100644 > index ..cf6f9216379d > --- /dev/null > +++ b/drivers/clk/ralink/Makefile Why ralink? The clock design of mt7621 doe

[PATCH v3 2/2] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-13 Thread Dongjiu Geng
/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool "Hi3559A Clock Driver" + depends on ARCH_HISI || COMPILE_TEST + default ARCH_HISI + help + Build the clock

[PATCH v3 3/5] clk: ralink: add clock driver for mt7621 SoC

2020-11-13 Thread Sergio Paracuellos
s/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index da8fcf147eb1..6578e167b047 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -100,6 +100,7 @@ obj-$(CONFIG_COMMON_CLK_NXP)+= nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

[PATCH v2 3/5] clk: ralink: add clock driver for mt7621 SoC

2020-11-13 Thread Sergio Paracuellos
s/clk/samsung/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index da8fcf147eb1..6578e167b047 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -100,6 +100,7 @@ obj-$(CONFIG_COMMON_CLK_NXP)+= nxp/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj

[PATCH v2 2/2] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-12 Thread Dongjiu Geng
/Kconfig b/drivers/clk/hisilicon/Kconfig index 6a9e93a0bb95..5ecc37aaa118 100644 --- a/drivers/clk/hisilicon/Kconfig +++ b/drivers/clk/hisilicon/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool

[PATCH v2 2/2] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-12 Thread Dongjiu Geng
/Kconfig b/drivers/clk/hisilicon/Kconfig index 6a9e93a0bb95..5ecc37aaa118 100644 --- a/drivers/clk/hisilicon/Kconfig +++ b/drivers/clk/hisilicon/Kconfig @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 help Build the clock driver for hi3519. +config COMMON_CLK_HI3559A + bool

Re: [PATCH] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-11 Thread Dongjiu Geng
100-clock.h >> >> diff --git a/drivers/clk/hisilicon/Kconfig b/drivers/clk/hisilicon/Kconfig >> index 6a9e93a0bb95..5ecc37aaa118 100644 >> --- a/drivers/clk/hisilicon/Kconfig >> +++ b/drivers/clk/hisilicon/Kconfig >> @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 >>

Re: [PATCH] clk: hisilicon: Add clock driver for hi3559A SoC

2020-11-11 Thread Rob Herring
rivers/clk/hisilicon/Kconfig > +++ b/drivers/clk/hisilicon/Kconfig > @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 > help > Build the clock driver for hi3519. > > +config COMMON_CLK_HI3559A > + bool "Hi3559A Clock Driver" > + depends on ARCH_HIS

  1   2   3   4   5   6   7   8   9   10   >