From: Conor Dooley <conor@kernel.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: "Raphaël Gallais-Pou" <rgallaispou@gmail.com>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Patrice Chotard" <patrice.chotard@foss.st.com>,
linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: pwm: st: convert sti-pwm to DT schema
Date: Thu, 3 Aug 2023 17:09:31 +0100 [thread overview]
Message-ID: <20230803-sandbox-prideful-4f23b78ddc67@spud> (raw)
In-Reply-To: <20230803085645.svrrcritdifbjwdz@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 1948 bytes --]
On Thu, Aug 03, 2023 at 10:56:45AM +0200, Uwe Kleine-König wrote:
> On Thu, Aug 03, 2023 at 09:18:14AM +0200, Raphaël Gallais-Pou wrote:
> > Hi
> >
> > Le 02/08/2023 à 10:02, Uwe Kleine-König a écrit :
> > > Hello,
> > >
> > > On Wed, Aug 02, 2023 at 12:05:59AM +0200, Raphael Gallais-Pou wrote:
> > > > + st,capture-num-chan:
> > > > + $ref: "/schemas/types.yaml#/definitions/uint32"
> > > > + description: Number of available Capture channels.
> > >
> > > I have the theory that nobody actually uses the capture feature and I'd
> > > like to get rid of it. People who do use it, should better switch to the
> > > counter driver.
> >
> > TBH I only found two drivers using it, including this one.
> >
> > $ grep -rinI "\.capture" drivers/pwm/ | wc -l
> > 2
>
> Right, there is pwm-stm32 and pwm-sti that support capture.
>
> There are a few machines that have a st,sti-pwm device:
>
> $ grep -rl st,sti-pwm arch/arm/boot/dts/*.dtb
> arch/arm/boot/dts/stih407-b2120.dtb
> arch/arm/boot/dts/stih410-b2120.dtb
> arch/arm/boot/dts/stih410-b2260.dtb
> arch/arm/boot/dts/stih418-b2199.dtb
> arch/arm/boot/dts/stih418-b2264.dtb
>
> but to actually use capture the device tree must have a property
> st,capture-num-chan. "st,capture-num-chan" isn't set by any of the
> devices.
>
> I think for stm32 it's not that trivial to show that it's unused.
> While the capture code isn't a big maintenance burden, I still would
> prefer to get rid of it if nobody uses it. Still more given that there
> are better alternatives available.
>
> > If there is no opposition about removing this feature I suggest to do it in
> > a second time, in a serie.
>
> Does that mean you will do that? I guess not, but at least this means
> you're not using capture support.
It seems like it should either be done as part of the conversion or as a
second patch in the series doing the conversion /shrug
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-08-03 16:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 22:05 [PATCH] dt-bindings: pwm: st: convert sti-pwm to DT schema Raphael Gallais-Pou
2023-08-02 8:02 ` Uwe Kleine-König
2023-08-03 7:18 ` Raphaël Gallais-Pou
2023-08-03 8:56 ` Uwe Kleine-König
2023-08-03 16:09 ` Conor Dooley [this message]
2023-08-03 17:19 ` Raphaël Gallais-Pou
2023-08-11 19:29 ` Rob Herring
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=20230803-sandbox-prideful-4f23b78ddc67@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=patrice.chotard@foss.st.com \
--cc=rgallaispou@gmail.com \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.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;
as well as URLs for NNTP newsgroup(s).