From: Lokesh Vutla <lokeshvutla@ti.com> To: <mturquette@baylibre.com>, <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org> Cc: Device Tree Mailing List <devicetree@vger.kernel.org>, <ssantosh@kernel.org>, Vignesh R <vigneshr@ti.com>, <linux-clk@vger.kernel.org>, Linux ARM Mailing List <linux-arm-kernel@lists.infradead.org>, Nishanth Menon <nm@ti.com>, Lokesh Vutla <lokeshvutla@ti.com> Subject: [PATCH 2/2] clk: keystone: syscon-clk: Add support for AM64 specific ehrpwm-tbclk Date: Wed, 26 May 2021 22:23:56 +0530 [thread overview] Message-ID: <20210526165356.22690-3-lokeshvutla@ti.com> (raw) In-Reply-To: <20210526165356.22690-1-lokeshvutla@ti.com> 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-ehrpwm-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..c55a8ec249d1 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("ehrpwm_tbclk0", 0x0, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk1", 0x4, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk2", 0x8, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk3", 0xc, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk4", 0x10, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk5", 0x14, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk6", 0x18, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk7", 0x1c, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk8", 0x20, 0), + { /* Sentinel */ }, +}; + static const struct of_device_id ti_syscon_gate_clk_ids[] = { { .compatible = "ti,am654-ehrpwm-tbclk", .data = &am654_clk_data, }, + { + .compatible = "ti,am64-ehrpwm-tbclk", + .data = &am64_clk_data, + }, { } }; MODULE_DEVICE_TABLE(of, ti_syscon_gate_clk_ids); -- 2.31.1
WARNING: multiple messages have this Message-ID (diff)
From: Lokesh Vutla <lokeshvutla@ti.com> To: <mturquette@baylibre.com>, <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org> Cc: Device Tree Mailing List <devicetree@vger.kernel.org>, <ssantosh@kernel.org>, Vignesh R <vigneshr@ti.com>, <linux-clk@vger.kernel.org>, Linux ARM Mailing List <linux-arm-kernel@lists.infradead.org>, Nishanth Menon <nm@ti.com>, Lokesh Vutla <lokeshvutla@ti.com> Subject: [PATCH 2/2] clk: keystone: syscon-clk: Add support for AM64 specific ehrpwm-tbclk Date: Wed, 26 May 2021 22:23:56 +0530 [thread overview] Message-ID: <20210526165356.22690-3-lokeshvutla@ti.com> (raw) In-Reply-To: <20210526165356.22690-1-lokeshvutla@ti.com> 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-ehrpwm-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..c55a8ec249d1 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("ehrpwm_tbclk0", 0x0, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk1", 0x4, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk2", 0x8, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk3", 0xc, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk4", 0x10, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk5", 0x14, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk6", 0x18, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk7", 0x1c, 0), + TI_SYSCON_CLK_GATE("ehrpwm_tbclk8", 0x20, 0), + { /* Sentinel */ }, +}; + static const struct of_device_id ti_syscon_gate_clk_ids[] = { { .compatible = "ti,am654-ehrpwm-tbclk", .data = &am654_clk_data, }, + { + .compatible = "ti,am64-ehrpwm-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
next prev parent reply other threads:[~2021-05-26 16:54 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-26 16:53 [PATCH 0/2] clk: keystone: Add support for AM64 specific ehrpwm-tbclk Lokesh Vutla 2021-05-26 16:53 ` Lokesh Vutla 2021-05-26 16:53 ` [PATCH 1/2] dt-bindings: clock: ehrpwm: Add support for AM64 specific compatible Lokesh Vutla 2021-05-26 16:53 ` Lokesh Vutla 2021-05-26 16:53 ` Lokesh Vutla [this message] 2021-05-26 16:53 ` [PATCH 2/2] clk: keystone: syscon-clk: Add support for AM64 specific ehrpwm-tbclk Lokesh Vutla
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210526165356.22690-3-lokeshvutla@ti.com \ --to=lokeshvutla@ti.com \ --cc=devicetree@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-clk@vger.kernel.org \ --cc=mturquette@baylibre.com \ --cc=nm@ti.com \ --cc=robh+dt@kernel.org \ --cc=sboyd@kernel.org \ --cc=ssantosh@kernel.org \ --cc=vigneshr@ti.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.