[PATCH 13/14] arm64: dts: renesas: rzg2l: Enable Ethernet TXC output

Sumit Garg sumit.garg at linaro.org
Fri Oct 25 07:22:39 CEST 2024


On Thu, 24 Oct 2024 at 20:55, Paul Barker <paul.barker.ct at bp.renesas.com> wrote:
>
> Configure ET0_TXC and ET1_TXC as outputs on the Renesas RZ/[GV]2L SMARC
> SoMs, as per RGMII specification.
>
> Signed-off-by: Paul Barker <paul.barker.ct at bp.renesas.com>
> Reviewed-by: Geert Uytterhoeven <geert+renesas at glider.be>
> Acked-by: Linus Walleij <linus.walleij at linaro.org>
> Link: https://lore.kernel.org/20240625200316.4282-5-paul.barker.ct@bp.renesas.com
> Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
>
> [ upstream commit: 41c934da488d3a5a79148ead3b5c5eecac1b1d5d ]
>
> (cherry picked from commit 11cbf7bc3124f3d5267ea6aef8e4ba6d6b4f589e)
> ---
>  .../src/arm64/renesas/rzg2l-smarc-som.dtsi    | 76 +++++++++++--------
>  1 file changed, 44 insertions(+), 32 deletions(-)
>

Acked-by: Sumit Garg <sumit.garg at linaro.org>

-Sumit

> diff --git a/dts/upstream/src/arm64/renesas/rzg2l-smarc-som.dtsi b/dts/upstream/src/arm64/renesas/rzg2l-smarc-som.dtsi
> index 4409c47239b9..2b5e037ea9fa 100644
> --- a/dts/upstream/src/arm64/renesas/rzg2l-smarc-som.dtsi
> +++ b/dts/upstream/src/arm64/renesas/rzg2l-smarc-som.dtsi
> @@ -180,41 +180,53 @@
>         };
>
>         eth0_pins: eth0 {
> -               pinmux = <RZG2L_PORT_PINMUX(28, 1, 1)>, /* ET0_LINKSTA */
> -                        <RZG2L_PORT_PINMUX(27, 1, 1)>, /* ET0_MDC */
> -                        <RZG2L_PORT_PINMUX(28, 0, 1)>, /* ET0_MDIO */
> -                        <RZG2L_PORT_PINMUX(20, 0, 1)>, /* ET0_TXC */
> -                        <RZG2L_PORT_PINMUX(20, 1, 1)>, /* ET0_TX_CTL */
> -                        <RZG2L_PORT_PINMUX(20, 2, 1)>, /* ET0_TXD0 */
> -                        <RZG2L_PORT_PINMUX(21, 0, 1)>, /* ET0_TXD1 */
> -                        <RZG2L_PORT_PINMUX(21, 1, 1)>, /* ET0_TXD2 */
> -                        <RZG2L_PORT_PINMUX(22, 0, 1)>, /* ET0_TXD3 */
> -                        <RZG2L_PORT_PINMUX(24, 0, 1)>, /* ET0_RXC */
> -                        <RZG2L_PORT_PINMUX(24, 1, 1)>, /* ET0_RX_CTL */
> -                        <RZG2L_PORT_PINMUX(25, 0, 1)>, /* ET0_RXD0 */
> -                        <RZG2L_PORT_PINMUX(25, 1, 1)>, /* ET0_RXD1 */
> -                        <RZG2L_PORT_PINMUX(26, 0, 1)>, /* ET0_RXD2 */
> -                        <RZG2L_PORT_PINMUX(26, 1, 1)>, /* ET0_RXD3 */
> -                        <RZG2L_PORT_PINMUX(1, 0, 1)>;  /* IRQ2 */
> +               txc {
> +                       pinmux = <RZG2L_PORT_PINMUX(20, 0, 1)>; /* ET0_TXC */
> +                       output-enable;
> +               };
> +
> +               mux {
> +                       pinmux = <RZG2L_PORT_PINMUX(28, 1, 1)>, /* ET0_LINKSTA */
> +                                <RZG2L_PORT_PINMUX(27, 1, 1)>, /* ET0_MDC */
> +                                <RZG2L_PORT_PINMUX(28, 0, 1)>, /* ET0_MDIO */
> +                                <RZG2L_PORT_PINMUX(20, 1, 1)>, /* ET0_TX_CTL */
> +                                <RZG2L_PORT_PINMUX(20, 2, 1)>, /* ET0_TXD0 */
> +                                <RZG2L_PORT_PINMUX(21, 0, 1)>, /* ET0_TXD1 */
> +                                <RZG2L_PORT_PINMUX(21, 1, 1)>, /* ET0_TXD2 */
> +                                <RZG2L_PORT_PINMUX(22, 0, 1)>, /* ET0_TXD3 */
> +                                <RZG2L_PORT_PINMUX(24, 0, 1)>, /* ET0_RXC */
> +                                <RZG2L_PORT_PINMUX(24, 1, 1)>, /* ET0_RX_CTL */
> +                                <RZG2L_PORT_PINMUX(25, 0, 1)>, /* ET0_RXD0 */
> +                                <RZG2L_PORT_PINMUX(25, 1, 1)>, /* ET0_RXD1 */
> +                                <RZG2L_PORT_PINMUX(26, 0, 1)>, /* ET0_RXD2 */
> +                                <RZG2L_PORT_PINMUX(26, 1, 1)>, /* ET0_RXD3 */
> +                                <RZG2L_PORT_PINMUX(1, 0, 1)>;  /* IRQ2 */
> +               };
>         };
>
>         eth1_pins: eth1 {
> -               pinmux = <RZG2L_PORT_PINMUX(37, 2, 1)>, /* ET1_LINKSTA */
> -                        <RZG2L_PORT_PINMUX(37, 0, 1)>, /* ET1_MDC */
> -                        <RZG2L_PORT_PINMUX(37, 1, 1)>, /* ET1_MDIO */
> -                        <RZG2L_PORT_PINMUX(29, 0, 1)>, /* ET1_TXC */
> -                        <RZG2L_PORT_PINMUX(29, 1, 1)>, /* ET1_TX_CTL */
> -                        <RZG2L_PORT_PINMUX(30, 0, 1)>, /* ET1_TXD0 */
> -                        <RZG2L_PORT_PINMUX(30, 1, 1)>, /* ET1_TXD1 */
> -                        <RZG2L_PORT_PINMUX(31, 0, 1)>, /* ET1_TXD2 */
> -                        <RZG2L_PORT_PINMUX(31, 1, 1)>, /* ET1_TXD3 */
> -                        <RZG2L_PORT_PINMUX(33, 1, 1)>, /* ET1_RXC */
> -                        <RZG2L_PORT_PINMUX(34, 0, 1)>, /* ET1_RX_CTL */
> -                        <RZG2L_PORT_PINMUX(34, 1, 1)>, /* ET1_RXD0 */
> -                        <RZG2L_PORT_PINMUX(35, 0, 1)>, /* ET1_RXD1 */
> -                        <RZG2L_PORT_PINMUX(35, 1, 1)>, /* ET1_RXD2 */
> -                        <RZG2L_PORT_PINMUX(36, 0, 1)>, /* ET1_RXD3 */
> -                        <RZG2L_PORT_PINMUX(1, 1, 1)>;  /* IRQ3 */
> +               txc {
> +                       pinmux = <RZG2L_PORT_PINMUX(29, 0, 1)>; /* ET1_TXC */
> +                       output-enable;
> +               };
> +
> +               mux {
> +                       pinmux = <RZG2L_PORT_PINMUX(37, 2, 1)>, /* ET1_LINKSTA */
> +                                <RZG2L_PORT_PINMUX(37, 0, 1)>, /* ET1_MDC */
> +                                <RZG2L_PORT_PINMUX(37, 1, 1)>, /* ET1_MDIO */
> +                                <RZG2L_PORT_PINMUX(29, 1, 1)>, /* ET1_TX_CTL */
> +                                <RZG2L_PORT_PINMUX(30, 0, 1)>, /* ET1_TXD0 */
> +                                <RZG2L_PORT_PINMUX(30, 1, 1)>, /* ET1_TXD1 */
> +                                <RZG2L_PORT_PINMUX(31, 0, 1)>, /* ET1_TXD2 */
> +                                <RZG2L_PORT_PINMUX(31, 1, 1)>, /* ET1_TXD3 */
> +                                <RZG2L_PORT_PINMUX(33, 1, 1)>, /* ET1_RXC */
> +                                <RZG2L_PORT_PINMUX(34, 0, 1)>, /* ET1_RX_CTL */
> +                                <RZG2L_PORT_PINMUX(34, 1, 1)>, /* ET1_RXD0 */
> +                                <RZG2L_PORT_PINMUX(35, 0, 1)>, /* ET1_RXD1 */
> +                                <RZG2L_PORT_PINMUX(35, 1, 1)>, /* ET1_RXD2 */
> +                                <RZG2L_PORT_PINMUX(36, 0, 1)>, /* ET1_RXD3 */
> +                                <RZG2L_PORT_PINMUX(1, 1, 1)>;  /* IRQ3 */
> +               };
>         };
>
>         gpio-sd0-pwr-en-hog {
> --
> 2.43.0
>


More information about the U-Boot mailing list