From: Sean Anderson <sean.anderson@linux.dev>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Daniel Lezcano" <daniel.lezcano@linaro.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: timer: xlnx,xps-timer: Make PWM in example usable
Date: Tue, 27 May 2025 13:25:21 -0400 [thread overview]
Message-ID: <39d9de6e-7d22-4a55-b27d-559a86dd5f7c@linux.dev> (raw)
In-Reply-To: <20250527171504.346696-2-u.kleine-koenig@baylibre.com>
On 5/27/25 13:15, Uwe Kleine-König wrote:
> With #pwm-cells = <0> no usable reference to that PWM can be created.
> Even though a xlnx,xps-timer device only provides a single PWM line, Linux
> would fail to determine the right (pwmchip, pwmnumber) combination.
Well, it's OK if you are programming the PWM from userspace.
> Fix the example to use the recommended value 3 for #pwm-cells.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---
> Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml b/Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml
> index b1597db04263..d36cbf0efbd6 100644
> --- a/Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml
> +++ b/Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml
> @@ -82,7 +82,7 @@ examples:
> };
>
> timer@800f0000 {
> - #pwm-cells = <0>;
> + #pwm-cells = <3>;
> clock-names = "s_axi_aclk";
> clocks = <&zynqmp_clk 71>;
> compatible = "xlnx,xps-timer-1.00.a";
>
> base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
Reviewed-by: Sean Anderson <sean.anderson@linux.dev>
next prev parent reply other threads:[~2025-05-27 17:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 17:15 Uwe Kleine-König
2025-05-27 17:25 ` Sean Anderson [this message]
2025-05-28 7:43 ` Krzysztof Kozlowski
2025-06-03 17:41 ` New default binding for PWM devices? [Was: Re: [PATCH] dt-bindings: timer: xlnx,xps-timer: Make PWM in example usable] Uwe Kleine-König
2025-06-06 14:13 ` Rob Herring
2025-06-06 14:57 ` Uwe Kleine-König
2026-03-30 12:12 ` Geert Uytterhoeven
2026-03-31 7:03 ` Uwe Kleine-König
2026-03-31 7:15 ` Geert Uytterhoeven
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=39d9de6e-7d22-4a55-b27d-559a86dd5f7c@linux.dev \
--to=sean.anderson@linux.dev \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=robh@kernel.org \
--cc=tglx@linutronix.de \
--cc=u.kleine-koenig@baylibre.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: 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
Powered by JetHome