From: Lee Jones <lee@kernel.org>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: "Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"William Breathitt Gray" <william.gray@linaro.org>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-pwm@vger.kernel.org" <linux-pwm@vger.kernel.org>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"Chris Paterson" <Chris.Paterson2@renesas.com>,
"Biju Das" <biju.das@bp.renesas.com>,
"Prabhakar Mahadev Lad" <prabhakar.mahadev-lad.rj@bp.renesas.com>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH v4 1/4] dt-bindings: mfd: Document RZ/G2L MTU3a bindings
Date: Tue, 18 Oct 2022 08:10:17 +0100 [thread overview]
Message-ID: <Y05RWbqA0ofEc/Zj@google.com> (raw)
In-Reply-To: <OS0PR01MB592232C831CCA84FC302212F86239@OS0PR01MB5922.jpnprd01.prod.outlook.com>
On Tue, 11 Oct 2022, Biju Das wrote:
>
> Hi Krzysztof Kozlowski,
>
> > Subject: Re: [PATCH v4 1/4] dt-bindings: mfd: Document RZ/G2L MTU3a
> > bindings
> >
> > On 10/10/2022 10:52, Biju Das wrote:
> > > The RZ/G2L multi-function timer pulse unit 3 (MTU3a) is embedded in
> > > the Renesas RZ/G2L family SoC's. It consists of eight 16-bit timer
> > > channels and one 32-bit timer channel. It supports the following
> > > functions
> > > - Counter
> > > - Timer
> > > - PWM
> > >
> > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> > > ---
> > > v3->v4:
> > > * Dropped counter and pwm compatibeles as they don't have any
> > resources.
> > > * Made rz-mtu3 as pwm provider.
> > > * Updated the example and description.
> > > v2->v3:
> > > * Dropped counter bindings and integrated with mfd as it has only
> > one property.
> > > * Removed "#address-cells" and "#size-cells" as it do not have
> > children with
> > > unit addresses.
> > > * Removed quotes from counter and pwm.
> > > * Provided full path for pwm bindings.
> > > * Updated the example.
> > > v1->v2:
> > > * Modelled counter and pwm as a single device that handles
> > > multiple channels.
> > > * Moved counter and pwm bindings to respective subsystems
> > > * Dropped 'bindings' from MFD binding title.
> > > * Updated the example
> > > * Changed the compatible names.
> > > ---
> > > .../bindings/mfd/renesas,rz-mtu3.yaml | 305
> > ++++++++++++++++++
> > > 1 file changed, 305 insertions(+)
> > > create mode 100644
> > > Documentation/devicetree/bindings/mfd/renesas,rz-mtu3.yaml
> >
> > This should not be in MFD. Just because some device has few features,
> > does not mean it should go to MFD... Choose either timer or pwm.
>
> MFD is for multifunction device. This IP supports multiple functions
> like timer, pwm, clock source/events. That is the reason I have added
> here. MFD is core which provides register access for client devices.
>
> For me moving it to pwm or counter is not a big problem.
> Why do you think it cannot be MFD?
Sorry for jumping in late here. I see this has been resolved.
The TL;DR is: if you're not using the MFD Core (and including
mfd/core.h), it's not an MFD. You *could* split this up into its
component parts, place them into their own subsystems and use an MFD
core driver to register them all, but as Thierry says, this is not a
hard requirement either.
--
Lee Jones [李琼斯]
next prev parent reply other threads:[~2022-10-18 7:10 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-10 14:52 [PATCH v4 0/4] Add RZ/G2L MTU3a MFD, Counter and pwm driver Biju Das
2022-10-10 14:52 ` [PATCH v4 1/4] dt-bindings: mfd: Document RZ/G2L MTU3a bindings Biju Das
2022-10-11 14:45 ` Krzysztof Kozlowski
2022-10-11 14:55 ` Biju Das
2022-10-11 18:54 ` Krzysztof Kozlowski
2022-10-11 19:23 ` Biju Das
2022-10-11 20:17 ` Krzysztof Kozlowski
2022-10-11 20:31 ` Biju Das
2022-10-15 14:28 ` William Breathitt Gray
2022-10-15 15:17 ` Biju Das
2022-10-17 14:00 ` Thierry Reding
2022-10-18 7:10 ` Lee Jones [this message]
2022-10-10 14:52 ` [PATCH v4 2/4] mfd: Add RZ/G2L MTU3 driver Biju Das
2022-10-10 14:52 ` [PATCH v4 3/4] mfd: Add RZ/G2L MTU3 counter driver Biju Das
2022-10-17 16:40 ` William Breathitt Gray
2022-10-17 19:58 ` Biju Das
2022-10-17 23:02 ` William Breathitt Gray
2022-10-25 13:50 ` Geert Uytterhoeven
2022-10-25 13:58 ` Biju Das
2022-10-10 14:52 ` [PATCH v4 4/4] mfd: Add RZ/G2L MTU3 PWM driver Biju Das
2022-10-11 18:53 ` Krzysztof Kozlowski
2022-10-11 19:13 ` Biju Das
2022-10-11 20:10 ` Krzysztof Kozlowski
2022-10-11 20:18 ` Biju Das
2022-10-11 20:27 ` Krzysztof Kozlowski
2022-10-11 20:35 ` Biju Das
2022-10-11 20:37 ` Krzysztof Kozlowski
2022-10-11 20:43 ` Biju Das
2022-10-11 20:53 ` Krzysztof Kozlowski
2022-10-15 13:56 ` Biju Das
2022-10-25 14:05 ` Geert Uytterhoeven
2022-10-25 14:13 ` Biju Das
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=Y05RWbqA0ofEc/Zj@google.com \
--to=lee@kernel.org \
--cc=Chris.Paterson2@renesas.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=biju.das@bp.renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=william.gray@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.