From: Biju Das <biju.das.jz@bp.renesas.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "Thierry Reding" <thierry.reding@gmail.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"linux-pwm@vger.kernel.org" <linux-pwm@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"Fabrizio Castro" <fabrizio.castro.jz@renesas.com>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>
Subject: RE: [PATCH 2/5] dt-bindings: pwm: Add RZ/V2M PWM binding
Date: Thu, 24 Nov 2022 09:45:56 +0000 [thread overview]
Message-ID: <TYCPR01MB59337E9DBB5FF46D7A082553860F9@TYCPR01MB5933.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAMuHMdXtKTgUEZWHuS3=KB9w-uCrbWgeRW27yQNw6u_1sq1dzA@mail.gmail.com>
Hi Geert,
Thanks for the feedback.
> Subject: Re: [PATCH 2/5] dt-bindings: pwm: Add RZ/V2M PWM binding
>
> Hi Biju,
>
> On Fri, Nov 18, 2022 at 2:16 PM Biju Das <biju.das.jz@bp.renesas.com>
> wrote:
> > Add device tree bindings for the RZ/V2{M, MA} PWM Timer (PWM).
> >
> > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
>
> Thanks for your patch!
>
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/pwm/renesas,rzv2m-pwm.yaml
> > @@ -0,0 +1,98 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id:
> > +
> > +title: Renesas RZ/V2{M, MA} PWM Timer (PWM)
> > +
> > +maintainers:
> > + - Biju Das <biju.das.jz@bp.renesas.com>
> > +
> > +description: |
> > + The RZ/V2{M, MA} PWM Timer (PWM) composed of 16 channels. It
> > +supports the
> > + following functions
> > + * The PWM has 24-bit counters which operate at PWM_CLK (48 MHz).
> > + * The frequency division ratio for internal counter operation is
> selectable
> > + as PWM_CLK divided by 1, 16, 256, or 2048.
> > + * The period as well as the duty cycle is adjustable.
> > + * The low-level and high-level order of the PWM signals can be
> inverted.
> > + * The duty cycle of the PWM signal is selectable in the range from
> 0 to 100%.
> > + * The minimum resolution is 20.83 ns.
> > + * Three interrupt sources: Rising and falling edges of the PWM
> signal and
> > + clearing of the counter
> > + * Counter operation and the bus interface are asynchronous and both
> can
> > + operate independently of the magnitude relationship of the
> respective
> > + clock periods.
> > +
> > +properties:
> > + compatible:
> > + items:
> > + - enum:
> > + - renesas,r9a09g011-pwm # RZ/V2M
> > + - renesas,r9a09g055-pwm # RZ/V2MA
> > + - const: renesas,rzv2m-pwm
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + '#pwm-cells':
> > + const: 2
> > +
> > + interrupts:
> > + maxItems: 1
> > +
> > + clocks:
> > + items:
> > + - description: CPU Peripheral Group F APB clock
>
> "APB clock"
Agreed.
>
> PWM0-7] are part of Peripheral Group E, and the block might be reused on
> SoCs not using CPU Peripheral Group clock signals.
>
> > + - description: PWM clock
> > +
> > + clock-names:
> > + items:
> > + - const: apb
> > + - const: pwm
> > +
> > + power-domains:
> > + maxItems: 1
> > +
> > + resets:
> > + maxItems: 1
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - interrupts
> > + - clocks
> > + - clock-names
> > + - power-domains
> > +
> > +if:
> > + properties:
> > + compatible:
> > + contains:
> > + enum:
> > + - renesas,r9a09g055-pwm
> > +then:
> > + required:
> > + - resets
>
> I think you should make the resets property required unconditionally.
> DT describes hardware, not software policy.
OK will send V2 with these changes.
Cheers,
Biju
next prev parent reply other threads:[~2022-11-24 9:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-18 13:16 [PATCH 0/5] Add RZ/V2{M, MA} driver support Biju Das
2022-11-18 13:16 ` [PATCH 2/5] dt-bindings: pwm: Add RZ/V2M PWM binding Biju Das
2022-11-22 11:46 ` Krzysztof Kozlowski
2022-11-22 11:53 ` Biju Das
2022-11-24 8:43 ` Geert Uytterhoeven
2022-11-24 9:45 ` Biju Das [this message]
2022-11-18 13:16 ` [PATCH 4/5] arm64: dts: renesas: r9a09g011: Add pwm nodes Biju Das
2022-11-18 13:16 ` [PATCH 5/5] arm64: dts: renesas: rzv2m evk: Enable pwm 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=TYCPR01MB59337E9DBB5FF46D7A082553860F9@TYCPR01MB5933.jpnprd01.prod.outlook.com \
--to=biju.das.jz@bp.renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrizio.castro.jz@renesas.com \
--cc=geert@linux-m68k.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--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