From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 3/4] pwm: atmel: look up the clock without a name
Date: Fri, 6 Nov 2026 12:13:49 +0100 [thread overview]
Message-ID: <20261106111352.3535034-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20261106111352.3535034-1-a.fatoum@pengutronix.de>
From: Ahmad Fatoum <a.fatoum@barebox.org>
The SAMA5D2, SAMA5D3 and SAMA5D4 device trees don't name the PWM clock,
so probe fails with -ENOENT on these SoCs. Linux requests the clock
without a name, so let's do the same. at91sam9263.dtsi has only the one
clock, so it keeps working.
Fixes: 3b4a22e803bb ("pwm: add pwm-atmel from Linux kernel 4.14")
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
drivers/pwm/pwm-atmel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c
index a847d4d434e3..35299cbc563a 100644
--- a/drivers/pwm/pwm-atmel.c
+++ b/drivers/pwm/pwm-atmel.c
@@ -432,7 +432,7 @@ static int atmel_pwm_probe(struct device *dev)
atmel_pwm = xzalloc(sizeof(*atmel_pwm));
atmel_pwm->data = data;
atmel_pwm->dev = dev;
- atmel_pwm->clk = clk_get(dev, "pwm_clk");
+ atmel_pwm->clk = clk_get(dev, NULL);
if (IS_ERR(atmel_pwm->clk))
return PTR_ERR(atmel_pwm->clk);
--
2.47.3
next prev parent reply other threads:[~2026-11-06 11:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 11:13 [PATCH 1/4] ARM: at91: sama5d3: pass BootROM r4 on to barebox proper Ahmad Fatoum
2026-11-06 11:13 ` [PATCH 2/4] ARM: at91: sama5d3_xplained: drop invalid hostname Ahmad Fatoum
2026-11-06 11:13 ` Ahmad Fatoum [this message]
2026-11-06 11:13 ` [PATCH 4/4] ARM: at91: sama5d3: Migrate to MFD-based SMC driver Ahmad Fatoum
2026-11-09 9:52 ` [PATCH 1/4] ARM: at91: sama5d3: pass BootROM r4 on to barebox proper Sascha Hauer
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=20261106111352.3535034-3-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox