From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej@kernel.org>,
Samuel Holland <samuel@sholland.org>,
Chen-Yu Tsai <wens@kernel.org>
Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
Andre Przywara <andre.przywara@arm.com>
Subject: Re: [PATCH net-next v2 05/10] arm64: dts: allwinner: a523: Add GMAC200 ethernet controller
Date: Wed, 13 Aug 2025 17:26:15 +0200 [thread overview]
Message-ID: <5030505.31r3eYUQgx@jernej-laptop> (raw)
In-Reply-To: <20250813145540.2577789-6-wens@kernel.org>
Dne sreda, 13. avgust 2025 ob 16:55:35 Srednjeevropski poletni čas je Chen-Yu Tsai napisal(a):
> From: Chen-Yu Tsai <wens@csie.org>
>
> The A523 SoC family has a second ethernet controller, called the
> GMAC200. It is not exposed on all the SoCs in the family.
>
> Add a device node for it. All the hardware specific settings are from
> the vendor BSP.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
>
> Changes since v1:
> - Fixed typo in tx-queues-config
> ---
> .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 55 +++++++++++++++++++
> 1 file changed, 55 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> index 6b6f2296bdff..449bcafbddcd 100644
> --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> @@ -180,6 +180,16 @@ rgmii0_pins: rgmii0-pins {
> bias-disable;
> };
>
> + rgmii1_pins: rgmii1-pins {
> + pins = "PJ0", "PJ1", "PJ2", "PJ3", "PJ4",
> + "PJ5", "PJ6", "PJ7", "PJ8", "PJ9",
> + "PJ11", "PJ12", "PJ13", "PJ14", "PJ15";
> + allwinner,pinmux = <5>;
> + function = "gmac1";
> + drive-strength = <40>;
> + bias-disable;
> + };
> +
> uart0_pb_pins: uart0-pb-pins {
> pins = "PB9", "PB10";
> allwinner,pinmux = <2>;
> @@ -601,6 +611,51 @@ mdio0: mdio {
> };
> };
>
> + gmac1: ethernet@4510000 {
> + compatible = "allwinner,sun55i-a523-gmac200",
> + "snps,dwmac-4.20a";
> + reg = <0x04510000 0x10000>;
> + clocks = <&ccu CLK_BUS_EMAC1>, <&ccu CLK_MBUS_EMAC1>;
> + clock-names = "stmmaceth", "mbus";
> + resets = <&ccu RST_BUS_EMAC1>;
> + reset-names = "stmmaceth";
> + interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "macirq";
> + pinctrl-names = "default";
> + pinctrl-0 = <&rgmii1_pins>;
> + power-domains = <&pck600 PD_VO1>;
> + syscon = <&syscon>;
> + snps,fixed-burst;
> + snps,axi-config = <&gmac1_stmmac_axi_setup>;
> + snps,mtl-rx-config = <&gmac1_mtl_rx_setup>;
> + snps,mtl-tx-config = <&gmac1_mtl_tx_setup>;
> + status = "disabled";
> +
> + mdio1: mdio {
> + compatible = "snps,dwmac-mdio";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + };
> +
> + gmac1_mtl_rx_setup: rx-queues-config {
> + snps,rx-queues-to-use = <1>;
> +
> + queue0 {};
> + };
> +
> + gmac1_stmmac_axi_setup: stmmac-axi-config {
> + snps,wr_osr_lmt = <0xf>;
> + snps,rd_osr_lmt = <0xf>;
> + snps,blen = <256 128 64 32 16 8 4>;
> + };
> +
> + gmac1_mtl_tx_setup: tx-queues-config {
> + snps,tx-queues-to-use = <1>;
> +
> + queue0 {};
> + };
> + };
> +
> ppu: power-controller@7001400 {
> compatible = "allwinner,sun55i-a523-ppu";
> reg = <0x07001400 0x400>;
>
next prev parent reply other threads:[~2025-08-13 15:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-13 14:55 [PATCH net-next v2 00/10] net: stmmac: Add support for Allwinner A523 GMAC200 Chen-Yu Tsai
2025-08-13 14:55 ` [PATCH net-next v2 01/10] dt-bindings: net: sun8i-emac: Add A523 GMAC200 compatible Chen-Yu Tsai
2025-08-13 16:40 ` Rob Herring (Arm)
2025-08-13 14:55 ` [PATCH net-next v2 02/10] net: stmmac: Add support for Allwinner A523 GMAC200 Chen-Yu Tsai
2025-08-13 15:11 ` Russell King (Oracle)
2025-08-13 14:55 ` [PATCH net-next v2 03/10] soc: sunxi: sram: add entry for a523 Chen-Yu Tsai
2025-08-13 15:23 ` Jernej Škrabec
2025-08-13 14:55 ` [PATCH net-next v2 04/10] soc: sunxi: sram: register regmap as syscon Chen-Yu Tsai
2025-08-13 15:25 ` Jernej Škrabec
2025-08-13 14:55 ` [PATCH net-next v2 05/10] arm64: dts: allwinner: a523: Add GMAC200 ethernet controller Chen-Yu Tsai
2025-08-13 15:26 ` Jernej Škrabec [this message]
2025-08-13 14:55 ` [PATCH net-next v2 06/10] arm64: dts: allwinner: a527: cubie-a5e: Add ethernet PHY reset setting Chen-Yu Tsai
2025-08-13 15:12 ` Russell King (Oracle)
2025-08-13 15:51 ` Chen-Yu Tsai
2025-08-13 16:39 ` Russell King (Oracle)
2025-08-24 7:17 ` Chen-Yu Tsai
2025-08-13 14:55 ` [PATCH net-next v2 07/10] arm64: dts: allwinner: a527: cubie-a5e: Enable second Ethernet port Chen-Yu Tsai
2025-08-13 15:27 ` Jernej Škrabec
2025-08-13 14:55 ` [PATCH net-next v2 08/10] arm64: dts: allwinner: t527: avaota-a1: Add ethernet PHY reset setting Chen-Yu Tsai
2025-08-13 15:27 ` Jernej Škrabec
2025-08-13 14:55 ` [PATCH net-next v2 09/10] arm64: dts: allwinner: t527: avaota-a1: enable second Ethernet port Chen-Yu Tsai
2025-08-13 15:27 ` Jernej Škrabec
2025-08-13 14:55 ` [PATCH net-next v2 10/10] arm64: dts: allwinner: t527: orangepi-4a: Enable " Chen-Yu Tsai
2025-08-13 15:28 ` Jernej Škrabec
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=5030505.31r3eYUQgx@jernej-laptop \
--to=jernej.skrabec@gmail.com \
--cc=andre.przywara@arm.com \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=jernej@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=wens@csie.org \
--cc=wens@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox