* [PATCH v2 0/2] clk: keystone: Add support for AM62 specific ewpm-tbclk
@ 2022-04-15 19:03 Georgi Vlaev
2022-04-15 19:03 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add AM62 specific compatible Georgi Vlaev
2022-04-15 19:03 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk Georgi Vlaev
0 siblings, 2 replies; 6+ messages in thread
From: Georgi Vlaev @ 2022-04-15 19:03 UTC (permalink / raw)
To: ssantosh, mturquette, sboyd, robh+dt
Cc: linux-kernel, linux-clk, devicetree, nm, vigneshr, Georgi Vlaev
This patch series adds support for TI's AM62 specific time-based
submodule clock (tbclk). On AM62 SoCs we have to provide 3 tbclk
instances, as the SoC features 3 EPWM modules.
Changes:
v1 -> v2: Reorder the patches with dt-bindings patch first.
Georgi Vlaev (2):
dt-bindings: clock: ehrpwm: Add AM62 specific compatible
clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk
.../bindings/clock/ti,am654-ehrpwm-tbclk.yaml | 1 +
drivers/clk/keystone/syscon-clk.c | 11 +++++++++++
2 files changed, 12 insertions(+)
base-commit: ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e
--
2.30.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add AM62 specific compatible
2022-04-15 19:03 [PATCH v2 0/2] clk: keystone: Add support for AM62 specific ewpm-tbclk Georgi Vlaev
@ 2022-04-15 19:03 ` Georgi Vlaev
2022-04-23 2:07 ` Stephen Boyd
2022-04-15 19:03 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk Georgi Vlaev
1 sibling, 1 reply; 6+ messages in thread
From: Georgi Vlaev @ 2022-04-15 19:03 UTC (permalink / raw)
To: ssantosh, mturquette, sboyd, robh+dt
Cc: linux-kernel, linux-clk, devicetree, nm, vigneshr, Georgi Vlaev
Introduce AM62 specific compatible for EPWM time-base
sub-module clock. The time-base clock setup is identical
to AM64. The only difference is AM62 provides 3 time-base
clocks instead of the 9 found in AM64.
Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
Tested-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Nishanth Menon <nm@ti.com>
---
.../devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml b/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
index 9b537bc876b5..66765116aff5 100644
--- a/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
+++ b/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
@@ -15,6 +15,7 @@ properties:
- enum:
- ti,am654-ehrpwm-tbclk
- ti,am64-epwm-tbclk
+ - ti,am62-epwm-tbclk
- const: syscon
"#clock-cells":
--
2.30.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk
2022-04-15 19:03 [PATCH v2 0/2] clk: keystone: Add support for AM62 specific ewpm-tbclk Georgi Vlaev
2022-04-15 19:03 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add AM62 specific compatible Georgi Vlaev
@ 2022-04-15 19:03 ` Georgi Vlaev
2022-04-15 19:20 ` Nishanth Menon
2022-04-23 2:07 ` Stephen Boyd
1 sibling, 2 replies; 6+ messages in thread
From: Georgi Vlaev @ 2022-04-15 19:03 UTC (permalink / raw)
To: ssantosh, mturquette, sboyd, robh+dt
Cc: linux-kernel, linux-clk, devicetree, nm, vigneshr, Georgi Vlaev
AM62 has 3 instances of EPWM modules. Each EPWM module has
an EPWM TBCLKEN module input used to individually enable or
disable its EPWM time-base clock. The EPWM time-base clock
enable input comes from the CTRLMMR_EPWM_TB_CLKEN register
bits 0 to 2 in CTRL_MMR0 module (6.1.1.4.1.48 [1]). This
is virtually the same setup as in AM64 but with 3 instead
of 9 clock providers on AM62.
Update the driver with the 3 instances of clocks associated
to a new compatible: "ti,am62-epwm-tbclk".
[1] https://www.ti.com/lit/pdf/spruiv7
Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
Tested-by: Vignesh Raghavendra <vigneshr@ti.com>
---
drivers/clk/keystone/syscon-clk.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/clk/keystone/syscon-clk.c b/drivers/clk/keystone/syscon-clk.c
index aae1a4076281..19198325b909 100644
--- a/drivers/clk/keystone/syscon-clk.c
+++ b/drivers/clk/keystone/syscon-clk.c
@@ -162,6 +162,13 @@ static const struct ti_syscon_gate_clk_data am64_clk_data[] = {
{ /* Sentinel */ },
};
+static const struct ti_syscon_gate_clk_data am62_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),
+ { /* Sentinel */ },
+};
+
static const struct of_device_id ti_syscon_gate_clk_ids[] = {
{
.compatible = "ti,am654-ehrpwm-tbclk",
@@ -171,6 +178,10 @@ static const struct of_device_id ti_syscon_gate_clk_ids[] = {
.compatible = "ti,am64-epwm-tbclk",
.data = &am64_clk_data,
},
+ {
+ .compatible = "ti,am62-epwm-tbclk",
+ .data = &am62_clk_data,
+ },
{ }
};
MODULE_DEVICE_TABLE(of, ti_syscon_gate_clk_ids);
--
2.30.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk
2022-04-15 19:03 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk Georgi Vlaev
@ 2022-04-15 19:20 ` Nishanth Menon
2022-04-23 2:07 ` Stephen Boyd
1 sibling, 0 replies; 6+ messages in thread
From: Nishanth Menon @ 2022-04-15 19:20 UTC (permalink / raw)
To: Georgi Vlaev
Cc: ssantosh, mturquette, sboyd, robh+dt, linux-kernel, linux-clk,
devicetree, vigneshr
On 22:03-20220415, Georgi Vlaev wrote:
> AM62 has 3 instances of EPWM modules. Each EPWM module has
> an EPWM TBCLKEN module input used to individually enable or
> disable its EPWM time-base clock. The EPWM time-base clock
> enable input comes from the CTRLMMR_EPWM_TB_CLKEN register
> bits 0 to 2 in CTRL_MMR0 module (6.1.1.4.1.48 [1]). This
> is virtually the same setup as in AM64 but with 3 instead
> of 9 clock providers on AM62.
>
> Update the driver with the 3 instances of clocks associated
> to a new compatible: "ti,am62-epwm-tbclk".
>
> [1] https://www.ti.com/lit/pdf/spruiv7
>
> Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
> Tested-by: Vignesh Raghavendra <vigneshr@ti.com>
> ---
> drivers/clk/keystone/syscon-clk.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/clk/keystone/syscon-clk.c b/drivers/clk/keystone/syscon-clk.c
> index aae1a4076281..19198325b909 100644
> --- a/drivers/clk/keystone/syscon-clk.c
> +++ b/drivers/clk/keystone/syscon-clk.c
> @@ -162,6 +162,13 @@ static const struct ti_syscon_gate_clk_data am64_clk_data[] = {
> { /* Sentinel */ },
> };
>
> +static const struct ti_syscon_gate_clk_data am62_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),
Reviewed-by: Nishanth Menon <nm@ti.com>
Thanks for reordering.
> + { /* Sentinel */ },
> +};
> +
> static const struct of_device_id ti_syscon_gate_clk_ids[] = {
> {
> .compatible = "ti,am654-ehrpwm-tbclk",
> @@ -171,6 +178,10 @@ static const struct of_device_id ti_syscon_gate_clk_ids[] = {
> .compatible = "ti,am64-epwm-tbclk",
> .data = &am64_clk_data,
> },
> + {
> + .compatible = "ti,am62-epwm-tbclk",
> + .data = &am62_clk_data,
> + },
> { }
> };
> MODULE_DEVICE_TABLE(of, ti_syscon_gate_clk_ids);
> --
> 2.30.2
>
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add AM62 specific compatible
2022-04-15 19:03 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add AM62 specific compatible Georgi Vlaev
@ 2022-04-23 2:07 ` Stephen Boyd
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2022-04-23 2:07 UTC (permalink / raw)
To: Georgi Vlaev, mturquette, robh+dt, ssantosh
Cc: linux-kernel, linux-clk, devicetree, nm, vigneshr, Georgi Vlaev
Quoting Georgi Vlaev (2022-04-15 12:03:42)
> Introduce AM62 specific compatible for EPWM time-base
> sub-module clock. The time-base clock setup is identical
> to AM64. The only difference is AM62 provides 3 time-base
> clocks instead of the 9 found in AM64.
>
> Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
> Tested-by: Vignesh Raghavendra <vigneshr@ti.com>
> Reviewed-by: Nishanth Menon <nm@ti.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk
2022-04-15 19:03 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk Georgi Vlaev
2022-04-15 19:20 ` Nishanth Menon
@ 2022-04-23 2:07 ` Stephen Boyd
1 sibling, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2022-04-23 2:07 UTC (permalink / raw)
To: Georgi Vlaev, mturquette, robh+dt, ssantosh
Cc: linux-kernel, linux-clk, devicetree, nm, vigneshr, Georgi Vlaev
Quoting Georgi Vlaev (2022-04-15 12:03:43)
> AM62 has 3 instances of EPWM modules. Each EPWM module has
> an EPWM TBCLKEN module input used to individually enable or
> disable its EPWM time-base clock. The EPWM time-base clock
> enable input comes from the CTRLMMR_EPWM_TB_CLKEN register
> bits 0 to 2 in CTRL_MMR0 module (6.1.1.4.1.48 [1]). This
> is virtually the same setup as in AM64 but with 3 instead
> of 9 clock providers on AM62.
>
> Update the driver with the 3 instances of clocks associated
> to a new compatible: "ti,am62-epwm-tbclk".
>
> [1] https://www.ti.com/lit/pdf/spruiv7
>
> Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
> Tested-by: Vignesh Raghavendra <vigneshr@ti.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-04-23 2:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-15 19:03 [PATCH v2 0/2] clk: keystone: Add support for AM62 specific ewpm-tbclk Georgi Vlaev
2022-04-15 19:03 ` [PATCH v2 1/2] dt-bindings: clock: ehrpwm: Add AM62 specific compatible Georgi Vlaev
2022-04-23 2:07 ` Stephen Boyd
2022-04-15 19:03 ` [PATCH v2 2/2] clk: keystone: syscon-clk: Add support for AM62 epwm-tbclk Georgi Vlaev
2022-04-15 19:20 ` Nishanth Menon
2022-04-23 2:07 ` Stephen Boyd
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).