devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: clock: exynos850: Add TMU clock
@ 2024-07-23 16:33 Sam Protsenko
  2024-07-23 16:33 ` [PATCH 2/2] clk: samsung: " Sam Protsenko
  2024-07-31 14:20 ` [PATCH 1/2] dt-bindings: clock: " Krzysztof Kozlowski
  0 siblings, 2 replies; 5+ messages in thread
From: Sam Protsenko @ 2024-07-23 16:33 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Sylwester Nawrocki, Chanwoo Choi, Mateusz Majewski, Alim Akhtar,
	Michael Turquette, Stephen Boyd, Rob Herring, Conor Dooley,
	linux-samsung-soc, linux-clk, linux-arm-kernel, linux-kernel,
	devicetree

Add a constant for TMU PCLK clock. It acts simultaneously as an
interface clock (to access TMU registers) and an operating clock which
makes TMU IP-core functional.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
 include/dt-bindings/clock/exynos850.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/dt-bindings/clock/exynos850.h b/include/dt-bindings/clock/exynos850.h
index 7666241520f8..80dacda57229 100644
--- a/include/dt-bindings/clock/exynos850.h
+++ b/include/dt-bindings/clock/exynos850.h
@@ -358,6 +358,7 @@
 #define CLK_GOUT_UART_PCLK		32
 #define CLK_GOUT_WDT0_PCLK		33
 #define CLK_GOUT_WDT1_PCLK		34
+#define CLK_GOUT_BUSIF_TMU_PCLK		35
 
 /* CMU_CORE */
 #define CLK_MOUT_CORE_BUS_USER		1
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] clk: samsung: exynos850: Add TMU clock
  2024-07-23 16:33 [PATCH 1/2] dt-bindings: clock: exynos850: Add TMU clock Sam Protsenko
@ 2024-07-23 16:33 ` Sam Protsenko
  2024-07-31 14:20 ` [PATCH 1/2] dt-bindings: clock: " Krzysztof Kozlowski
  1 sibling, 0 replies; 5+ messages in thread
From: Sam Protsenko @ 2024-07-23 16:33 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Sylwester Nawrocki, Chanwoo Choi, Mateusz Majewski, Alim Akhtar,
	Michael Turquette, Stephen Boyd, Rob Herring, Conor Dooley,
	linux-samsung-soc, linux-clk, linux-arm-kernel, linux-kernel,
	devicetree

Add TMU PCLK clock in CMU_PERI unit. It acts simultaneously as an
interface clock (to access TMU registers) and an operating clock which
makes TMU IP-core functional.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
 drivers/clk/samsung/clk-exynos850.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/samsung/clk-exynos850.c b/drivers/clk/samsung/clk-exynos850.c
index 6215471c4ac6..e00e213b1201 100644
--- a/drivers/clk/samsung/clk-exynos850.c
+++ b/drivers/clk/samsung/clk-exynos850.c
@@ -28,7 +28,7 @@
 #define CLKS_NR_HSI			(CLK_GOUT_HSI_CMU_HSI_PCLK + 1)
 #define CLKS_NR_IS			(CLK_GOUT_IS_SYSREG_PCLK + 1)
 #define CLKS_NR_MFCMSCL			(CLK_GOUT_MFCMSCL_SYSREG_PCLK + 1)
-#define CLKS_NR_PERI			(CLK_GOUT_WDT1_PCLK + 1)
+#define CLKS_NR_PERI			(CLK_GOUT_BUSIF_TMU_PCLK + 1)
 #define CLKS_NR_CORE			(CLK_GOUT_SPDMA_CORE_ACLK + 1)
 #define CLKS_NR_DPU			(CLK_GOUT_DPU_SYSREG_PCLK + 1)
 
@@ -1921,6 +1921,7 @@ static const struct samsung_cmu_info mfcmscl_cmu_info __initconst = {
 #define CLK_CON_GAT_GATE_CLK_PERI_HSI2C_0	0x200c
 #define CLK_CON_GAT_GATE_CLK_PERI_HSI2C_1	0x2010
 #define CLK_CON_GAT_GATE_CLK_PERI_HSI2C_2	0x2014
+#define CLK_CON_GAT_GOUT_PERI_BUSIF_TMU_PCLK	0x2018
 #define CLK_CON_GAT_GOUT_PERI_GPIO_PERI_PCLK	0x2020
 #define CLK_CON_GAT_GOUT_PERI_HSI2C_0_IPCLK	0x2024
 #define CLK_CON_GAT_GOUT_PERI_HSI2C_0_PCLK	0x2028
@@ -1957,6 +1958,7 @@ static const unsigned long peri_clk_regs[] __initconst = {
 	CLK_CON_GAT_GATE_CLK_PERI_HSI2C_0,
 	CLK_CON_GAT_GATE_CLK_PERI_HSI2C_1,
 	CLK_CON_GAT_GATE_CLK_PERI_HSI2C_2,
+	CLK_CON_GAT_GOUT_PERI_BUSIF_TMU_PCLK,
 	CLK_CON_GAT_GOUT_PERI_GPIO_PERI_PCLK,
 	CLK_CON_GAT_GOUT_PERI_HSI2C_0_IPCLK,
 	CLK_CON_GAT_GOUT_PERI_HSI2C_0_PCLK,
@@ -2068,6 +2070,9 @@ static const struct samsung_gate_clock peri_gate_clks[] __initconst = {
 	GATE(CLK_GOUT_GPIO_PERI_PCLK, "gout_gpio_peri_pclk",
 	     "mout_peri_bus_user",
 	     CLK_CON_GAT_GOUT_PERI_GPIO_PERI_PCLK, 21, CLK_IGNORE_UNUSED, 0),
+	GATE(CLK_GOUT_BUSIF_TMU_PCLK, "gout_busif_tmu_pclk",
+	     "mout_peri_bus_user",
+	     CLK_CON_GAT_GOUT_PERI_BUSIF_TMU_PCLK, 21, 0, 0),
 };
 
 static const struct samsung_cmu_info peri_cmu_info __initconst = {
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: exynos850: Add TMU clock
  2024-07-23 16:33 [PATCH 1/2] dt-bindings: clock: exynos850: Add TMU clock Sam Protsenko
  2024-07-23 16:33 ` [PATCH 2/2] clk: samsung: " Sam Protsenko
@ 2024-07-31 14:20 ` Krzysztof Kozlowski
  2024-07-31 14:22   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-31 14:20 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Sam Protsenko
  Cc: Sylwester Nawrocki, Chanwoo Choi, Mateusz Majewski, Alim Akhtar,
	Michael Turquette, Stephen Boyd, Rob Herring, Conor Dooley,
	linux-samsung-soc, linux-clk, linux-arm-kernel, linux-kernel,
	devicetree


On Tue, 23 Jul 2024 11:33:10 -0500, Sam Protsenko wrote:
> Add a constant for TMU PCLK clock. It acts simultaneously as an
> interface clock (to access TMU registers) and an operating clock which
> makes TMU IP-core functional.
> 
> 

Applied, thanks!

[1/2] dt-bindings: clock: exynos850: Add TMU clock
      https://git.kernel.org/krzk/linux/c/01ce1bf22adc0d09d906319787091ce784cb9914
[2/2] clk: samsung: exynos850: Add TMU clock
      https://git.kernel.org/krzk/linux/c/79b918aa997acd5066c7962502b1daaae76b6911

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: exynos850: Add TMU clock
  2024-07-31 14:20 ` [PATCH 1/2] dt-bindings: clock: " Krzysztof Kozlowski
@ 2024-07-31 14:22   ` Krzysztof Kozlowski
  2024-07-31 18:25     ` Sam Protsenko
  0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-31 14:22 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Sam Protsenko
  Cc: Sylwester Nawrocki, Chanwoo Choi, Mateusz Majewski, Alim Akhtar,
	Michael Turquette, Stephen Boyd, Rob Herring, Conor Dooley,
	linux-samsung-soc, linux-clk, linux-arm-kernel, linux-kernel,
	devicetree

On 31/07/2024 16:20, Krzysztof Kozlowski wrote:
> 
> On Tue, 23 Jul 2024 11:33:10 -0500, Sam Protsenko wrote:
>> Add a constant for TMU PCLK clock. It acts simultaneously as an
>> interface clock (to access TMU registers) and an operating clock which
>> makes TMU IP-core functional.
>>
>>
> 
> Applied, thanks!
> 
> [1/2] dt-bindings: clock: exynos850: Add TMU clock
>       https://git.kernel.org/krzk/linux/c/01ce1bf22adc0d09d906319787091ce784cb9914
> [2/2] clk: samsung: exynos850: Add TMU clock
>       https://git.kernel.org/krzk/linux/c/79b918aa997acd5066c7962502b1daaae76b6911

Hashes got mixed, but the commits are properly applied:
https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git/log/?h=next/clk

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: exynos850: Add TMU clock
  2024-07-31 14:22   ` Krzysztof Kozlowski
@ 2024-07-31 18:25     ` Sam Protsenko
  0 siblings, 0 replies; 5+ messages in thread
From: Sam Protsenko @ 2024-07-31 18:25 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Krzysztof Kozlowski, Sylwester Nawrocki, Chanwoo Choi,
	Mateusz Majewski, Alim Akhtar, Michael Turquette, Stephen Boyd,
	Rob Herring, Conor Dooley, linux-samsung-soc, linux-clk,
	linux-arm-kernel, linux-kernel, devicetree

On Wed, Jul 31, 2024 at 9:22 AM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On 31/07/2024 16:20, Krzysztof Kozlowski wrote:
> >
> > On Tue, 23 Jul 2024 11:33:10 -0500, Sam Protsenko wrote:
> >> Add a constant for TMU PCLK clock. It acts simultaneously as an
> >> interface clock (to access TMU registers) and an operating clock which
> >> makes TMU IP-core functional.
> >>
> >>
> >
> > Applied, thanks!
> >
> > [1/2] dt-bindings: clock: exynos850: Add TMU clock
> >       https://git.kernel.org/krzk/linux/c/01ce1bf22adc0d09d906319787091ce784cb9914
> > [2/2] clk: samsung: exynos850: Add TMU clock
> >       https://git.kernel.org/krzk/linux/c/79b918aa997acd5066c7962502b1daaae76b6911
>
> Hashes got mixed, but the commits are properly applied:
> https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git/log/?h=next/clk
>

Thanks for handling this!

> Best regards,
> Krzysztof
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-31 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-23 16:33 [PATCH 1/2] dt-bindings: clock: exynos850: Add TMU clock Sam Protsenko
2024-07-23 16:33 ` [PATCH 2/2] clk: samsung: " Sam Protsenko
2024-07-31 14:20 ` [PATCH 1/2] dt-bindings: clock: " Krzysztof Kozlowski
2024-07-31 14:22   ` Krzysztof Kozlowski
2024-07-31 18:25     ` Sam Protsenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).