linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk
@ 2021-05-28  4:57 Lokesh Vutla
  2021-05-28  4:57 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible Lokesh Vutla
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Lokesh Vutla @ 2021-05-28  4:57 UTC (permalink / raw)
  To: mturquette, sboyd, Rob Herring
  Cc: Device Tree Mailing List, ssantosh, Vignesh R, linux-clk,
	Linux ARM Mailing List, Tero Kristo, Nishanth Menon,
	Lokesh Vutla

This series adds support for AM64 specific ehrpwm Time-base submodule
clock.

Changes since v1:
- Fixed register offsets and bits for clocks.
- Update the compatible to ti,am64-epwm-tbclk, as high resolution is not
  supported in AM64.

Lokesh Vutla (2):
  dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible
  clk: keystone: syscon-clk: Add support for AM64 specific ehrpwm-tbclk

 .../bindings/clock/ti,am654-ehrpwm-tbclk.yaml   |  4 +++-
 drivers/clk/keystone/syscon-clk.c               | 17 +++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

-- 
2.31.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible
  2021-05-28  4:57 [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Lokesh Vutla
@ 2021-05-28  4:57 ` Lokesh Vutla
  2021-06-04 20:56   ` Rob Herring
  2021-06-22 21:18   ` Stephen Boyd
  2021-05-28  4:57 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk Lokesh Vutla
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 8+ messages in thread
From: Lokesh Vutla @ 2021-05-28  4:57 UTC (permalink / raw)
  To: mturquette, sboyd, Rob Herring
  Cc: Device Tree Mailing List, ssantosh, Vignesh R, linux-clk,
	Linux ARM Mailing List, Tero Kristo, Nishanth Menon,
	Lokesh Vutla

Introduce AM64 specific compatible for epwm time-base sub-module clock.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 .../devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml b/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
index 6b419a9878f3..9b537bc876b5 100644
--- a/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
+++ b/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
@@ -12,7 +12,9 @@ maintainers:
 properties:
   compatible:
     items:
-      - const: ti,am654-ehrpwm-tbclk
+      - enum:
+          - ti,am654-ehrpwm-tbclk
+          - ti,am64-epwm-tbclk
       - const: syscon
 
   "#clock-cells":
-- 
2.31.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk
  2021-05-28  4:57 [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Lokesh Vutla
  2021-05-28  4:57 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible Lokesh Vutla
@ 2021-05-28  4:57 ` Lokesh Vutla
  2021-06-22 21:18   ` Stephen Boyd
  2021-06-03  6:08 ` [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Tero Kristo
  2021-06-21 11:56 ` Lokesh Vutla
  3 siblings, 1 reply; 8+ messages in thread
From: Lokesh Vutla @ 2021-05-28  4:57 UTC (permalink / raw)
  To: mturquette, sboyd, Rob Herring
  Cc: Device Tree Mailing List, ssantosh, Vignesh R, linux-clk,
	Linux ARM Mailing List, Tero Kristo, Nishanth Menon,
	Lokesh Vutla

AM64 has 9 instances of EPWM modules. And each instance has a clk to
Timer-Base sub-module that can be controlled by Control module. Update
the driver with all the 9 instance of clocks associated to
ti,am64-epwm-tbclk.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 drivers/clk/keystone/syscon-clk.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/drivers/clk/keystone/syscon-clk.c b/drivers/clk/keystone/syscon-clk.c
index 5b3d36462174..aae1a4076281 100644
--- a/drivers/clk/keystone/syscon-clk.c
+++ b/drivers/clk/keystone/syscon-clk.c
@@ -149,11 +149,28 @@ static const struct ti_syscon_gate_clk_data am654_clk_data[] = {
 	{ /* Sentinel */ },
 };
 
+static const struct ti_syscon_gate_clk_data am64_clk_data[] = {
+	TI_SYSCON_CLK_GATE("epwm_tbclk0", 0x0, 0),
+	TI_SYSCON_CLK_GATE("epwm_tbclk1", 0x0, 1),
+	TI_SYSCON_CLK_GATE("epwm_tbclk2", 0x0, 2),
+	TI_SYSCON_CLK_GATE("epwm_tbclk3", 0x0, 3),
+	TI_SYSCON_CLK_GATE("epwm_tbclk4", 0x0, 4),
+	TI_SYSCON_CLK_GATE("epwm_tbclk5", 0x0, 5),
+	TI_SYSCON_CLK_GATE("epwm_tbclk6", 0x0, 6),
+	TI_SYSCON_CLK_GATE("epwm_tbclk7", 0x0, 7),
+	TI_SYSCON_CLK_GATE("epwm_tbclk8", 0x0, 8),
+	{ /* Sentinel */ },
+};
+
 static const struct of_device_id ti_syscon_gate_clk_ids[] = {
 	{
 		.compatible = "ti,am654-ehrpwm-tbclk",
 		.data = &am654_clk_data,
 	},
+	{
+		.compatible = "ti,am64-epwm-tbclk",
+		.data = &am64_clk_data,
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, ti_syscon_gate_clk_ids);
-- 
2.31.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk
  2021-05-28  4:57 [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Lokesh Vutla
  2021-05-28  4:57 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible Lokesh Vutla
  2021-05-28  4:57 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk Lokesh Vutla
@ 2021-06-03  6:08 ` Tero Kristo
  2021-06-21 11:56 ` Lokesh Vutla
  3 siblings, 0 replies; 8+ messages in thread
From: Tero Kristo @ 2021-06-03  6:08 UTC (permalink / raw)
  To: Lokesh Vutla, mturquette, sboyd, Rob Herring
  Cc: Device Tree Mailing List, ssantosh, Vignesh R, linux-clk,
	Linux ARM Mailing List, Nishanth Menon

On 28/05/2021 07:57, Lokesh Vutla wrote:
> This series adds support for AM64 specific ehrpwm Time-base submodule
> clock.
> 
> Changes since v1:
> - Fixed register offsets and bits for clocks.
> - Update the compatible to ti,am64-epwm-tbclk, as high resolution is not
>    supported in AM64.
> 
> Lokesh Vutla (2):
>    dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible
>    clk: keystone: syscon-clk: Add support for AM64 specific ehrpwm-tbclk
> 
>   .../bindings/clock/ti,am654-ehrpwm-tbclk.yaml   |  4 +++-
>   drivers/clk/keystone/syscon-clk.c               | 17 +++++++++++++++++
>   2 files changed, 20 insertions(+), 1 deletion(-)
> 

For the whole series:

Reviewed-by: Tero Kristo <kristo@kernel.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible
  2021-05-28  4:57 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible Lokesh Vutla
@ 2021-06-04 20:56   ` Rob Herring
  2021-06-22 21:18   ` Stephen Boyd
  1 sibling, 0 replies; 8+ messages in thread
From: Rob Herring @ 2021-06-04 20:56 UTC (permalink / raw)
  To: Lokesh Vutla
  Cc: Vignesh R, mturquette, Rob Herring, Nishanth Menon,
	Linux ARM Mailing List, Tero Kristo, sboyd, ssantosh, linux-clk,
	Device Tree Mailing List

On Fri, 28 May 2021 10:27:42 +0530, Lokesh Vutla wrote:
> Introduce AM64 specific compatible for epwm time-base sub-module clock.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---
>  .../devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml      | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk
  2021-05-28  4:57 [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Lokesh Vutla
                   ` (2 preceding siblings ...)
  2021-06-03  6:08 ` [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Tero Kristo
@ 2021-06-21 11:56 ` Lokesh Vutla
  3 siblings, 0 replies; 8+ messages in thread
From: Lokesh Vutla @ 2021-06-21 11:56 UTC (permalink / raw)
  To: mturquette, sboyd, Rob Herring
  Cc: Device Tree Mailing List, ssantosh, Vignesh R, linux-clk,
	Linux ARM Mailing List, Tero Kristo, Nishanth Menon

Hi,

On 28/05/21 10:27 am, Lokesh Vutla wrote:
> This series adds support for AM64 specific ehrpwm Time-base submodule
> clock.

Gentle ping on this series. If there are no objections, can we merge this series.

Thanks and regards,
Lokesh

> 
> Changes since v1:
> - Fixed register offsets and bits for clocks.
> - Update the compatible to ti,am64-epwm-tbclk, as high resolution is not
>   supported in AM64.
> 
> Lokesh Vutla (2):
>   dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible
>   clk: keystone: syscon-clk: Add support for AM64 specific ehrpwm-tbclk
> 
>  .../bindings/clock/ti,am654-ehrpwm-tbclk.yaml   |  4 +++-
>  drivers/clk/keystone/syscon-clk.c               | 17 +++++++++++++++++
>  2 files changed, 20 insertions(+), 1 deletion(-)
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible
  2021-05-28  4:57 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible Lokesh Vutla
  2021-06-04 20:56   ` Rob Herring
@ 2021-06-22 21:18   ` Stephen Boyd
  1 sibling, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2021-06-22 21:18 UTC (permalink / raw)
  To: Lokesh Vutla, Rob Herring, mturquette
  Cc: Device Tree Mailing List, ssantosh, Vignesh R, linux-clk,
	Linux ARM Mailing List, Tero Kristo, Nishanth Menon,
	Lokesh Vutla

Quoting Lokesh Vutla (2021-05-27 21:57:42)
> Introduce AM64 specific compatible for epwm time-base sub-module clock.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---

Applied to clk-next

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk
  2021-05-28  4:57 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk Lokesh Vutla
@ 2021-06-22 21:18   ` Stephen Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2021-06-22 21:18 UTC (permalink / raw)
  To: Lokesh Vutla, Rob Herring, mturquette
  Cc: Device Tree Mailing List, ssantosh, Vignesh R, linux-clk,
	Linux ARM Mailing List, Tero Kristo, Nishanth Menon,
	Lokesh Vutla

Quoting Lokesh Vutla (2021-05-27 21:57:43)
> AM64 has 9 instances of EPWM modules. And each instance has a clk to
> Timer-Base sub-module that can be controlled by Control module. Update
> the driver with all the 9 instance of clocks associated to
> ti,am64-epwm-tbclk.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---

Applied to clk-next

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-06-22 21:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28  4:57 [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Lokesh Vutla
2021-05-28  4:57 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible Lokesh Vutla
2021-06-04 20:56   ` Rob Herring
2021-06-22 21:18   ` Stephen Boyd
2021-05-28  4:57 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk Lokesh Vutla
2021-06-22 21:18   ` Stephen Boyd
2021-06-03  6:08 ` [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Tero Kristo
2021-06-21 11:56 ` Lokesh Vutla

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).