[PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk

STALE1906d

Revision v2 of 2 in this series.

8 messages, 4 authors, 2021-06-22 · open the first message on its own page

[PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk

From: Lokesh Vutla <hidden>
Date: 2021-05-28 04:57:58

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

[PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible

From: Lokesh Vutla <hidden>
Date: 2021-05-28 04:57:58

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

Signed-off-by: Lokesh Vutla <redacted>
---
 .../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

[PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk

From: Lokesh Vutla <hidden>
Date: 2021-05-28 04:58:01

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 <redacted>
---
 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

Re: [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk

From: Tero Kristo <kristo@kernel.org>
Date: 2021-06-03 06:08:11

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

Re: [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible

From: Rob Herring <robh@kernel.org>
Date: 2021-06-04 20:56:11

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 <redacted>
---
 .../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

Re: [PATCH v2 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk

From: Lokesh Vutla <hidden>
Date: 2021-06-21 11:56:36

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

Re: [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible

From: Stephen Boyd <sboyd@kernel.org>
Date: 2021-06-22 21:18:39

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 <redacted>
---
Applied to clk-next

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

Re: [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM64 specific epwm-tbclk

From: Stephen Boyd <sboyd@kernel.org>
Date: 2021-06-22 21:18:54

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 <redacted>
---
Applied to clk-next

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help