From: Sam Shih <sam.shih@mediatek.com>
To: Thierry Reding <thierry.reding@gmail.com>,
Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
linux-pwm@vger.kernel.org, Ryder Lee <ryder.lee@mediatek.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mediatek@lists.infradead.org,
John Crispin <john@phrozen.org>,
Matthias Brugger <matthias.bgg@gmail.com>
Subject: Re: [PATCH v9 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms"
Date: Mon, 23 Sep 2019 11:20:57 +0800 [thread overview]
Message-ID: <1569208857.4102.9.camel@mtksdccf07> (raw)
In-Reply-To: <20190921002149.GB86019@mithrandir>
On Sat, 2019-09-21 at 02:21 +0200, Thierry Reding wrote:
> On Fri, Sep 20, 2019 at 06:49:07AM +0800, Sam Shih wrote:
> > From: Ryder Lee <ryder.lee@mediatek.com>
> >
> > This adds a property "num-pwms" in example so that we could
> > specify the number of PWM channels via device tree.
> >
> > Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
> > Signed-off-by: Sam Shih <sam.shih@mediatek.com>
> > Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> > Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > ---
> > Changes since v6:
> > Follow reviewers's comments:
> > - The subject should indicate this is for Mediatek
> >
> > Changes since v5:
> > - Add an Acked-by tag
> > - This file is original v4 patch 5/10
> > (https://patchwork.kernel.org/patch/11102577/)
> >
> > ---
> > Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 7 ++++---
> > 1 file changed, 4 insertions(+), 3 deletions(-)
>
> You failed to address Rob's questions repeatedly and I agree with him
> that you can just as easily derive the number of PWMs from the specific
> compatible string. I won't be applying this and none of the patches that
> depend on it.
>
Hi,
Thanks for getting back to me.
New pwm driver (patch 04/11 : "pwm: mediatek: allocate the clks array
dynamically") can support different variants with different number of
PWMs by the new property <num-pwms>
For example:
1. Use "num-pwms" = <2> and assign clocks pwm1, pwm2 for mt7622
2. Use "num-pwms" = <6> and assign clocks pwm1, pwm2, pwm3, pwm4, pwm5,
pwm6 for mt7622.
If we just as easily derive the number of PWMs from the specific
compatible string in this document:
- "pwm1-6": the six per PWM clocks for mt7622
This looks like all "pwm1", "pwm2", "pwm3", "pwm4", "pwm5", "pwm6" is
required property in DT, It doesn't make sense.
So we removed those descriptions and added
- "pwm1-N": the PWM clocks for each channel
But the max number of clocks from the compatible string are still
important information that should be provide in this document.
What do you think of this?
- "pwm1-N": per PWM clocks for mt2712, the max number of PWM channels
is 8
- "pwm1-N": per PWM clocks for mt7622, the max number of PWM channels
is 6
- "pwm1-N": per PWM clocks for mt7623, the max number of PWM channels
is 5
where N starting from 1 to the maximum number of PWM channels
- num-pwms: the number of PWM channels.
Thanks
Best Regards
Sam
next prev parent reply other threads:[~2019-09-23 3:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-19 22:49 [PATCH v9 0/11] Add mt7629 and fix mt7628 pwm Sam Shih
2019-09-19 22:49 ` [PATCH v9 01/11] pwm: mediatek: add a property "num-pwms" Sam Shih
2019-09-19 22:49 ` [PATCH v9 02/11] pwm: mediatek: droping the check for of_device_get_match_data Sam Shih
2019-09-19 22:49 ` [PATCH v9 03/11] pwm: mediatek: remove a property "has-clks" Sam Shih
2019-09-25 6:30 ` Uwe Kleine-König
2019-09-25 7:51 ` Thierry Reding
2019-09-19 22:49 ` [PATCH v9 04/11] pwm: mediatek: allocate the clks array dynamically Sam Shih
2019-09-19 22:49 ` [PATCH v9 05/11] pwm: mediatek: use pwm_mediatek as common prefix Sam Shih
2019-09-19 22:49 ` [PATCH v9 06/11] pwm: mediatek: update license and switch to SPDX tag Sam Shih
2019-09-19 22:49 ` [PATCH v9 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms" Sam Shih
2019-09-21 0:21 ` Thierry Reding
2019-09-23 3:20 ` Sam Shih [this message]
2019-09-23 13:36 ` Thierry Reding
2019-09-23 15:11 ` Sam Shih
2019-09-23 15:20 ` Thierry Reding
[not found] ` <1568933351-8584-1-git-send-email-sam.shih-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2019-09-19 22:49 ` [PATCH v9 08/11] arm64: dts: mt7622: add a property "num-pwms" for PWM Sam Shih
2019-09-19 22:49 ` [PATCH v9 09/11] arm: dts: mt7623: " Sam Shih
2019-09-19 22:49 ` [PATCH v9 10/11] dt-bindings: pwm: update bindings for MT7629 SoC Sam Shih
2019-09-19 22:49 ` [PATCH v9 11/11] arm: dts: mediatek: add mt7629 pwm support Sam Shih
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=1569208857.4102.9.camel@mtksdccf07 \
--to=sam.shih@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=john@phrozen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=ryder.lee@mediatek.com \
--cc=thierry.reding@gmail.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;
as well as URLs for NNTP newsgroup(s).