Skip to contentSkip to conversation

clk: imx6q: Add definition for missing PWM clocks

PATCH Applied [email protected] 2 participants 2 messages Sep 17, 2025 – Sep 22, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: imx6q: Add definition for missing PWM clocks

From: Ricardo Simoes <[email protected]>

Following the work done in commit 7f39ad5a, this commit adds definitions for PWM2, PWM3, and PWM4 clocks. Allowing one to use these PWM modules together with DM_CLK.

Note that the solution was verified only against PWM3.

---
 drivers/clk/imx/clk-imx6q.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/clk/imx/clk-imx6q.c +6 -0
index 13239f2f64d..b69355cefc7 100644
@@ -156,6 +156,12 @@ static int imx6q_clk_probe(struct udevice *dev)
 	       imx_clk_gate2(dev, "i2c3", "ipg_per", base + 0x70, 10));
 	clk_dm(IMX6QDL_CLK_PWM1,
 	       imx_clk_gate2(dev, "pwm1", "ipg_per", base + 0x78, 16));
+	clk_dm(IMX6QDL_CLK_PWM2,
+	       imx_clk_gate2(dev, "pwm2", "ipg_per", base + 0x78, 18));
+	clk_dm(IMX6QDL_CLK_PWM3,
+	       imx_clk_gate2(dev, "pwm3", "ipg_per", base + 0x78, 20));
+	clk_dm(IMX6QDL_CLK_PWM4,
+	       imx_clk_gate2(dev, "pwm4", "ipg_per", base + 0x78, 22));
 
 	clk_dm(IMX6QDL_CLK_ENET, imx_clk_gate2(dev, "enet", "ipg", base + 0x6c, 10));
 	clk_dm(IMX6QDL_CLK_ENET_REF,
Signature · 1 line
2.34.1
reviewer Applied
#1 lore raw
Quoted 11 lines · On Wed, Sep 17, 2025 at 1:00 PM <[email protected]> wrote:

From: Ricardo Simoes <[email protected]>

Following the work done in commit 7f39ad5a, this commit adds definitions for PWM2, PWM3, and PWM4 clocks. Allowing one to use these PWM modules together with DM_CLK.

Note that the solution was verified only against PWM3.

Applied to -next, thanks.