All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Claudiu <claudiu.beznea@tuxon.dev>
Cc: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com,
	 kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org,
	 krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	magnus.damm@gmail.com,  mturquette@baylibre.com,
	sboyd@kernel.org, linus.walleij@linaro.org,
	 prabhakar.mahadev-lad.rj@bp.renesas.com,
	biju.das.jz@bp.renesas.com,  linux-renesas-soc@vger.kernel.org,
	netdev@vger.kernel.org,  devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,  linux-clk@vger.kernel.org,
	linux-gpio@vger.kernel.org,
	 Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Subject: Re: [PATCH v2 05/11] pinctrl: renesas: rzg2l: Add support to select power source for Ethernet pins
Date: Wed, 13 Dec 2023 14:46:38 +0100	[thread overview]
Message-ID: <CAMuHMdUmFa8LZXqzFFy-WOspJA_ODs=zRtPAjQo+e5jxCd=6FQ@mail.gmail.com> (raw)
In-Reply-To: <20231207070700.4156557-6-claudiu.beznea.uj@bp.renesas.com>

On Thu, Dec 7, 2023 at 8:08 AM Claudiu <claudiu.beznea@tuxon.dev> wrote:
> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>
> The GPIO controller available on RZ/G3S (but also on RZ/G2L) allows setting
> the power source for Ethernet pins. Based on the interface b/w the Ethernet
> controller and the Ethernet PHY and board design specific power source need
> to be selected. The GPIO controller allows 1.8V, 2.5V and 3.3V power source
> selection for Ethernet pins. This could be selected though ETHX_POC
> registers (X={0, 1}).
>
> Commit adjust the driver to support this and does proper instantiation for
> RZ/G3S and RZ/G2L SoC. On RZ/G2L only get operation has been tested at the
> moment.
>
> While at it, as the power registers on RZ/G2L support access sizes of 8
> bits and RZ/G3S support access sizes of 8/16/32 bits, changed
> writel()/readl() on these registers with writeb()/readb(). This should
> allow using the same code for both SoCs w/o any issues.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> ---
>
> Changes in v2:
> - removed PVDD_MASK
> - use 8 bit helpers to get/set value of power register
> - replaced if/else with switch/case everywhere

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-pinctrl-for-v6.8.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

  reply	other threads:[~2023-12-13 13:46 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-07  7:06 [PATCH v2 00/11] renesas: rzg3s: Add support for Ethernet Claudiu
2023-12-07  7:06 ` [PATCH v2 01/11] clk: renesas: rzg2l-cpg: Check reset monitor registers Claudiu
2023-12-13 13:26   ` Geert Uytterhoeven
2023-12-07  7:06 ` [PATCH v2 02/11] clk: renesas: r9a08g045-cpg: Add clock and reset support for ETH0 and ETH1 Claudiu
2023-12-13 13:28   ` Geert Uytterhoeven
2023-12-07  7:06 ` [PATCH v2 03/11] pinctrl: renesas: rzg2l: Move arg and index in the main function block Claudiu
2023-12-13 13:31   ` Geert Uytterhoeven
2023-12-07  7:06 ` [PATCH v2 04/11] pinctrl: renesas: rzg2l: Add pin configuration support for pinmux groups Claudiu
2023-12-13 13:43   ` Geert Uytterhoeven
2023-12-07  7:06 ` [PATCH v2 05/11] pinctrl: renesas: rzg2l: Add support to select power source for Ethernet pins Claudiu
2023-12-13 13:46   ` Geert Uytterhoeven [this message]
2023-12-07  7:06 ` [PATCH v2 06/11] pinctrl: renesas: rzg2l: Add output enable support Claudiu
2023-12-13 13:56   ` Geert Uytterhoeven
2023-12-07  7:06 ` [PATCH v2 07/11] pinctrl: renesas: rzg2l: Add input enable to the Ethernet pins Claudiu
2023-12-13 13:57   ` Geert Uytterhoeven
2023-12-07  7:06 ` [PATCH v2 08/11] dt-bindings: net: renesas,etheravb: Document RZ/G3S support Claudiu
2024-01-02 18:50   ` Rob Herring
2023-12-07  7:06 ` [PATCH v2 09/11] arm64: renesas: r9a08g045: Add the Ethernet nodes Claudiu
2023-12-13 14:00   ` Geert Uytterhoeven
2023-12-07  7:06 ` [PATCH v2 10/11] arm64: renesas: rzg3s-smarc-som: Use switches' names to select on-board functionalities Claudiu
2023-12-13 14:06   ` Geert Uytterhoeven
2023-12-07  7:07 ` [PATCH v2 11/11] arm64: dts: renesas: rzg3s-smarc-som: Enable the Ethernet interfaces Claudiu
2023-12-13 14:09   ` Geert Uytterhoeven
2024-01-02 22:40 ` [PATCH v2 00/11] renesas: rzg3s: Add support for Ethernet patchwork-bot+netdevbpf

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='CAMuHMdUmFa8LZXqzFFy-WOspJA_ODs=zRtPAjQo+e5jxCd=6FQ@mail.gmail.com' \
    --to=geert@linux-m68k.org \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=claudiu.beznea.uj@bp.renesas.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=kuba@kernel.org \
    --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=magnus.damm@gmail.com \
    --cc=mturquette@baylibre.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=robh+dt@kernel.org \
    --cc=s.shtylyov@omp.ru \
    --cc=sboyd@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.