All of lore.kernel.org
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Magnus Damm <magnus.damm@gmail.com>,
	"linux-renesas-soc@vger.kernel.org" 
	<linux-renesas-soc@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: RE: [PATCH v4] arm64: dts: renesas: rz-smarc-common: Use versa3 clk for audio mclk
Date: Thu, 31 Aug 2023 17:05:43 +0000	[thread overview]
Message-ID: <OS0PR01MB592246E77539C513C1A7FCD686E5A@OS0PR01MB5922.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAMuHMdVEBREj_Y-wQ=fRQu9mnYyCF6Ut7ZhvRkM0N6eWFXp0Qw@mail.gmail.com>

Hi Geert,

> Subject: Re: [PATCH v4] arm64: dts: renesas: rz-smarc-common: Use versa3
> clk for audio mclk
> 
> Hi Biju,
> 
> On Fri, Aug 25, 2023 at 11:05 AM Biju Das <biju.das.jz@bp.renesas.com>
> wrote:
> > Currently audio mclk uses a fixed clk of 11.2896MHz (multiple of
> 44.1kHz).
> > Replace this fixed clk with the programmable versa3 clk that can
> > provide the clocking to support both 44.1kHz (with a clock of
> > 11.2896MHz) and 48kHz (with a clock of 12.2880MHz), based on audio
> > sampling rate for playback and record.
> >
> > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> > ---
> > v3->v4:
> >  * Dropped clock-output-names from dtsi files.
> >  * Updated example with dropping clock-output-names.
> 
> Thanks for the update!
> 
> > --- a/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi
> > +++ b/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi
> > @@ -105,6 +105,26 @@ &i2c3 {
> >
> >         status = "okay";
> >
> > +       versa3: versa3@68 {
> 
> clock-generator@ (everywhere)
OK.

> 
> > +               compatible = "renesas,5p35023";
> > +               reg = <0x68>;
> > +               #clock-cells = <1>;
> > +               clocks = <&x1>;
> > +
> > +               renesas,settings = [
> > +                       80 00 11 19 4c 02 23 7f 83 19 08 a9 5f 25 24 bf
> > +                       00 14 7a e1 00 00 00 00 01 55 59 bb 3f 30 90 b6
> > +                       80 b0 45 c4 95
> > +               ];
> > +
> > +               assigned-clocks = <&versa3 0>, <&versa3 1>,
> > +                                 <&versa3 2>, <&versa3 3>,
> > +                                 <&versa3 4>, <&versa3 5>;
> > +               assigned-clock-rates = <24000000>, <11289600>,
> > +                                      <11289600>, <12000000>,
> > +                                      <25000000>, <12288000>;
> > +       };
> 
> Please move this node down, to preserve sort order (by unit-address).
> 
> Same comments arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi
> 
> Unless we're gonna need a new iteration for some other reason (the
> corresponding fixes for the clock index order are not yet in linux-next), I
> can fix the above while applying...

Thank you

Cheers,
Biju

  reply	other threads:[~2023-08-31 17:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-25  9:05 [PATCH v4] arm64: dts: renesas: rz-smarc-common: Use versa3 clk for audio mclk Biju Das
2023-08-31 15:32 ` Geert Uytterhoeven
2023-08-31 17:05   ` Biju Das [this message]
2023-10-05 11:55     ` 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=OS0PR01MB592246E77539C513C1A7FCD686E5A@OS0PR01MB5922.jpnprd01.prod.outlook.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=robh+dt@kernel.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.