From: Claudiu Beznea <claudiu.beznea@tuxon.dev>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
biju.das.jz@bp.renesas.com,
prabhakar.mahadev-lad.rj@bp.renesas.com, lgirdwood@gmail.com,
broonie@kernel.org, magnus.damm@gmail.com,
linus.walleij@linaro.org, perex@perex.cz, tiwai@suse.com,
p.zabel@pengutronix.de, linux-renesas-soc@vger.kernel.org,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org,
linux-gpio@vger.kernel.org,
Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Subject: Re: [PATCH v3 02/25] clk: versaclock3: Prepare for the addition of 5L35023 device
Date: Mon, 9 Dec 2024 14:22:06 +0200 [thread overview]
Message-ID: <91c80c8e-729d-46ac-bb05-2cdcdb95ba1e@tuxon.dev> (raw)
In-Reply-To: <CAMuHMdV8M49m3h3NshzK+KRbT1G7U8hc09T9xUH0Gz1GefUcMg@mail.gmail.com>
Hi, Geert,
On 09.12.2024 14:16, Geert Uytterhoeven wrote:
> Hi CLaudiu,
>
> On Mon, Dec 9, 2024 at 12:14 PM Claudiu Beznea <claudiu.beznea@tuxon.dev> wrote:
>> On 09.12.2024 12:57, Geert Uytterhoeven wrote:
>>> On Wed, Nov 13, 2024 at 2:35 PM Claudiu <claudiu.beznea@tuxon.dev> wrote:
>>>> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>>>>
>>>> The 5P35023 and 5L35035 Versa 3 clock generator variants are different but
>>>> the versaclock3 driver could be used with small adjustments. The features
>>>> that are implemented in driver and differs b/w variants are the PLL2 Fvco
>>>> and clock sel bit for SE2 clock. Adjust the driver to prepare for the
>>>> addition of 5L35023 device.
>>>>
>>>> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
>>>> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>>>
>>> Thanks for your patch!
>>>
>>>> --- a/drivers/clk/clk-versaclock3.c
>>>> +++ b/drivers/clk/clk-versaclock3.c
>>>> @@ -166,12 +167,17 @@ struct vc3_div_data {
>>>> struct vc3_hw_data {
>>>> struct clk_hw hw;
>>>> struct regmap *regmap;
>>>> - const void *data;
>>>> + void *data;
>>>>
>>>> u32 div_int;
>>>> u32 div_frc;
>>>> };
>>>
>>>> @@ -698,8 +706,6 @@ static struct vc3_hw_data clk_pll[] = {
>>>> .num = VC3_PLL2,
>>>> .int_div_msb_offs = VC3_PLL2_FB_INT_DIV_MSB,
>>>> .int_div_lsb_offs = VC3_PLL2_FB_INT_DIV_LSB,
>>>> - .vco_min = VC3_PLL2_VCO_MIN,
>>>> - .vco_max = VC3_PLL2_VCO_MAX
>>>> },
>>>> .hw.init = &(struct clk_init_data) {
>>>> .name = "pll2",
>>>
>>>> @@ -1029,9 +1037,16 @@ static int vc3_probe(struct i2c_client *client)
>>>> clk_pfd[i].hw.init->name);
>>>> }
>>>>
>>>> + data = i2c_get_match_data(client);
>>>> +
>>>> /* Register pll's */
>>>> for (i = 0; i < ARRAY_SIZE(clk_pll); i++) {
>>>> clk_pll[i].regmap = regmap;
>>>> + if (i == VC3_PLL2) {
>>>> + struct vc3_pll_data *pll_data = clk_pll[i].data;
>>>> +
>>>> + pll_data->vco = data->pll2_vco;
>>>
>>> You cannot modify the global clk_pll[] data, as it is shared when
>>> there are multiple instances.
>>
>> By "multiple instances" do you mean, multiple versa3 devices using this
>> driver? Do you know if we have such a board integrated, ATM?
>
> Exactly.
> Currently there are no such (upstream) users for 5p35023,
> but e.g. the Beacon RZ/G2M kit has two 5p49v6965 instances.
Are you OK with keeping it as is for the RZ/G3S SSIF support and returning
back later with a solution for the scenario you pointed out? Although, ATM,
I don't have a board to test it.
Thank you,
Claudiu
>
> Gr{oetje,eeting}s,
>
> Geert
>
next prev parent reply other threads:[~2024-12-09 12:22 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 13:35 [PATCH v3 00/25] Add audio support for the Renesas RZ/G3S SoC Claudiu
2024-11-13 13:35 ` [PATCH v3 01/25] clk: renesas: r9a08g045-cpg: Add clocks, resets and power domains support for SSI Claudiu
2024-11-27 14:46 ` Geert Uytterhoeven
2024-11-27 17:21 ` Claudiu Beznea
2024-11-13 13:35 ` [PATCH v3 02/25] clk: versaclock3: Prepare for the addition of 5L35023 device Claudiu
2024-12-09 10:57 ` Geert Uytterhoeven
2024-12-09 11:14 ` Claudiu Beznea
2024-12-09 12:16 ` Geert Uytterhoeven
2024-12-09 12:22 ` Claudiu Beznea [this message]
2024-12-09 12:23 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 03/25] dt-bindings: clock: versaclock3: Document 5L35023 Versa3 clock generator Claudiu
2024-12-09 12:48 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 04/25] clk: versaclock3: Add support for the 5L35023 variant Claudiu
2024-12-09 12:54 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 05/25] pinctrl: renesas: rzg2l: Add audio clock pins Claudiu
2024-11-18 22:54 ` Linus Walleij
2024-11-27 14:32 ` Geert Uytterhoeven
2024-11-27 17:22 ` Claudiu Beznea
2024-11-13 13:35 ` [PATCH v3 06/25] ASoC: renesas: rz-ssi: Terminate all the DMA transactions Claudiu
2024-12-09 13:15 ` Geert Uytterhoeven
2024-12-09 13:28 ` Claudiu Beznea
2024-11-13 13:35 ` [PATCH v3 07/25] ASoC: renesas: rz-ssi: Use only the proper amount of dividers Claudiu
2024-12-09 13:22 ` Geert Uytterhoeven
2024-12-09 13:31 ` Claudiu Beznea
2024-12-09 14:28 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 08/25] ASoC: renesas: rz-ssi: Fix typo on SSI_RATES macro comment Claudiu
2024-12-09 13:23 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 09/25] ASoC: renesas: rz-ssi: Remove pdev member of struct rz_ssi_priv Claudiu
2024-12-09 13:24 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 10/25] ASoC: renesas: rz-ssi: Remove the rz_ssi_get_dai() function Claudiu
2024-12-09 13:28 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 11/25] ASoC: renesas: rz-ssi: Remove the first argument of rz_ssi_stream_is_play() Claudiu
2024-12-09 13:29 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 12/25] ASoC: renesas: rz-ssi: Use readl_poll_timeout_atomic() Claudiu
2024-12-09 13:33 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 13/25] ASoC: renesas: rz-ssi: Use temporary variable for struct device Claudiu
2024-12-09 13:35 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 14/25] ASoC: renesas: rz-ssi: Use goto label names that specify their actions Claudiu
2024-12-09 13:51 ` Geert Uytterhoeven
2024-12-10 9:56 ` Claudiu Beznea
2024-12-10 10:01 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 15/25] ASoC: renesas: rz-ssi: Rely on the ASoC subsystem to runtime resume/suspend the SSI Claudiu
2024-12-09 13:55 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 16/25] ASoC: renesas: rz-ssi: Enable runtime PM autosuspend support Claudiu
2024-12-09 13:58 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 17/25] ASoC: renesas: rz-ssi: Add runtime PM support Claudiu
2024-12-09 14:07 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 18/25] ASoC: renesas: rz-ssi: Issue software reset in hw_params API Claudiu
2024-12-09 14:09 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 19/25] ASoC: renesas: rz-ssi: Add suspend to RAM support Claudiu
2024-11-13 13:35 ` [PATCH v3 20/25] ASoC: dt-bindings: renesas,rz-ssi: Document the Renesas RZ/G3S SoC Claudiu
2024-12-09 14:24 ` Geert Uytterhoeven
2024-12-09 14:36 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 21/25] arm64: dts: renesas: r9a08g045: Add SSI nodes Claudiu
2024-11-13 13:57 ` Biju Das
2024-12-09 15:12 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 22/25] arm64: dts: renesas: rzg3s-smarc-som: Add versa3 clock generator node Claudiu
2024-11-13 13:57 ` Biju Das
2024-12-09 15:42 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 23/25] arm64: dts: renesas: Add da7212 audio codec node Claudiu
2024-12-09 15:49 ` Geert Uytterhoeven
2024-12-10 9:59 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 24/25] arm64: dts: renesas: rzg3s-smarc: Enable SSI3 Claudiu
2024-12-09 15:27 ` Geert Uytterhoeven
2024-11-13 13:35 ` [PATCH v3 25/25] arm64: dts: renesas: rzg3s-smarc: Add sound card Claudiu
2024-12-09 15:55 ` Geert Uytterhoeven
2024-12-09 11:00 ` [PATCH v3 00/25] Add audio support for the Renesas RZ/G3S SoC Geert Uytterhoeven
2024-12-11 17:46 ` (subset) " Mark Brown
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=91c80c8e-729d-46ac-bb05-2cdcdb95ba1e@tuxon.dev \
--to=claudiu.beznea@tuxon.dev \
--cc=biju.das.jz@bp.renesas.com \
--cc=broonie@kernel.org \
--cc=claudiu.beznea.uj@bp.renesas.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=perex@perex.cz \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=tiwai@suse.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