From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Sean Anderson <sean.anderson@seco.com>,
linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org,
devicetree@vger.kernel.org,
Chris Packham <Chris.Packham@alliedtelesis.co.nz>,
Marek Vasut <marek.vasut+renesas@mailbox.org>
Subject: Re: New default binding for PWM devices? [Was: Re: [PATCH] dt-bindings: timer: xlnx,xps-timer: Make PWM in example usable]
Date: Tue, 31 Mar 2026 09:03:43 +0200 [thread overview]
Message-ID: <actvzQTb-a7O7sbP@monoceros> (raw)
In-Reply-To: <CAMuHMdXDZD6QAbKgny1utfYhagUEZ5pcgiDCTTfJKNVVZLOUYg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1791 bytes --]
Hello Geert,
On Mon, Mar 30, 2026 at 02:12:47PM +0200, Geert Uytterhoeven wrote:
> On Sat, 7 Jun 2025 at 09:23, Uwe Kleine-König
> <u.kleine-koenig@baylibre.com> wrote:
> > On Fri, Jun 06, 2025 at 09:13:24AM -0500, Rob Herring wrote:
> > > reg:
> > > > maxItems: 1
> > > >
> > > > - '#pwm-cells': true
> > > > + '#pwm-cells':
> > > > + const: 3
> > > >
> > > > xlnx,count-width:
> > > > $ref: /schemas/types.yaml#/definitions/uint32
> > > > @@ -82,7 +83,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";
> > > >
> > > > There is however one concern that I want to get resolved first to
> > > > prevent churn:
> > > >
> > > > In principle I think it's bad that a phandle to a PWM must contain a
> > > > period and flags specifying the polarity. For some use cases the period
> > > > might not matter or is implicitly given or more than one period length
> > > > is relevant.
> > >
> > > Why can't the period be 0 and no flags set if they aren't needed?
> >
> > I don't say they cannot, and probably that's the most sane option if
> > there is no fixed default period and flags and we're sticking to 3
> > cells.
>
> So zero should have been used for drivers/pwm/pwm-argon-fan-hat.c?
Do you mean #pwm-cells = <0>? Or period = flags = 0?
If the phandle wouldn't contain period and flags and so it would only be
used to identify the PWM to use and say nothing about how it is used,
then using #pwm-cells = <0> for PWM chips that only have a single PWM
would work fine.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-03-31 7:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 17:15 [PATCH] dt-bindings: timer: xlnx,xps-timer: Make PWM in example usable Uwe Kleine-König
2025-05-27 17:25 ` Sean Anderson
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 [this message]
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=actvzQTb-a7O7sbP@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=Chris.Packham@alliedtelesis.co.nz \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=robh@kernel.org \
--cc=sean.anderson@seco.com \
--cc=tglx@linutronix.de \
/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