From: Jerome Brunet <jbrunet@baylibre.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@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Richard Cochran <richardcochran@gmail.com>,
Maxime Ripard <mripard@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Maxime Chevallier <maxime.chevallier@bootlin.com>
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,
linux-stm32@st-md-mailman.stormreply.com,
Andre Przywara <andre.przywara@arm.com>,
Jerome Brunet <jbrunet@baylibre.com>
Subject: [PATCH net-next v2 1/2] dt-bindings: net: sun8i-emac: Add A733 GMAC210 compatible
Date: Thu, 10 Sep 2026 12:25:26 +0200 [thread overview]
Message-ID: <20260910-allwinner-a733-gmac-support-v2-1-4f4a1e520c23@baylibre.com> (raw)
In-Reply-To: <20260910-allwinner-a733-gmac-support-v2-0-4f4a1e520c23@baylibre.com>
The A733 GMAC210 is a DesignWare MAC 5.20 close to the A523 GMAC200, with
the following differences:
* The glue configuration registers are a dedicated MMIO region of the
controller instead of a syscon register, so a second reg entry replaces
the syscon phandle.
* The DMA channels and the LPI event have their own interrupt lines.
* A PTP reference clock and an AHB reset are needed.
* Unlike the A523, the controller does not appear to belong to a power
domain.
* The TX clock delay field is 5 bits wide, allowing up to 3100ps.
Add the new compatible and describe those differences.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
.../bindings/net/allwinner,sun8i-a83t-emac.yaml | 130 ++++++++++++++++++---
1 file changed, 115 insertions(+), 15 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml b/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml
index 323a669fa982..fec42f46378a 100644
--- a/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml
+++ b/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml
@@ -22,6 +22,7 @@ select:
- allwinner,sun8i-v3s-emac
- allwinner,sun50i-a64-emac
- allwinner,sun55i-a523-gmac200
+ - allwinner,sun60i-a733-gmac210
required:
- compatible
@@ -44,25 +45,38 @@ properties:
- items:
- const: allwinner,sun55i-a523-gmac200
- const: snps,dwmac-4.20a
+ - items:
+ - const: allwinner,sun60i-a733-gmac210
+ - const: snps,dwmac-5.20
reg:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: MAC controller registers
+ - description: Glue configuration registers
interrupts:
- maxItems: 1
+ minItems: 1
+ maxItems: 4
interrupt-names:
- const: macirq
+ minItems: 1
+ items:
+ - const: macirq
+ - const: eth_lpi
+ - const: tx-queue-0
+ - const: rx-queue-0
clocks:
minItems: 1
- maxItems: 2
+ maxItems: 3
clock-names:
minItems: 1
items:
- const: stmmaceth
- const: mbus
+ - const: ptp_ref
phy-supply:
description: PHY regulator
@@ -87,7 +101,6 @@ required:
- reset-names
- phy-handle
- phy-mode
- - syscon
allOf:
- $ref: snps,dwmac.yaml#
@@ -219,36 +232,94 @@ allOf:
properties:
compatible:
contains:
- const: allwinner,sun55i-a523-gmac200
+ enum:
+ - allwinner,sun55i-a523-gmac200
+ - allwinner,sun60i-a733-gmac210
then:
properties:
- clocks:
- minItems: 2
- clock-names:
- minItems: 2
tx-internal-delay-ps:
default: 0
minimum: 0
- maximum: 700
multipleOf: 100
description:
- External RGMII PHY TX clock delay chain value in ps.
+ Internal RGMII PHY TX clock delay chain value in ps.
rx-internal-delay-ps:
default: 0
minimum: 0
maximum: 3100
multipleOf: 100
description:
- External RGMII PHY TX clock delay chain value in ps.
- required:
- - power-domains
+ Internal RGMII PHY RX clock delay chain value in ps.
else:
properties:
+ reg:
+ maxItems: 1
+ interrupts:
+ maxItems: 1
+ interrupt-names:
+ maxItems: 1
clocks:
maxItems: 1
clock-names:
maxItems: 1
power-domains: false
+ required:
+ - syscon
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: allwinner,sun55i-a523-gmac200
+ then:
+ properties:
+ reg:
+ maxItems: 1
+ interrupts:
+ maxItems: 1
+ interrupt-names:
+ maxItems: 1
+ clocks:
+ minItems: 2
+ maxItems: 2
+ clock-names:
+ minItems: 2
+ maxItems: 2
+ resets:
+ maxItems: 1
+ reset-names:
+ maxItems: 1
+ tx-internal-delay-ps:
+ maximum: 700
+ required:
+ - power-domains
+ - syscon
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: allwinner,sun60i-a733-gmac210
+ then:
+ properties:
+ reg:
+ minItems: 2
+ interrupts:
+ minItems: 4
+ interrupt-names:
+ minItems: 4
+ clocks:
+ minItems: 3
+ clock-names:
+ minItems: 3
+ resets:
+ minItems: 2
+ reset-names:
+ minItems: 2
+ tx-internal-delay-ps:
+ maximum: 3100
+ syscon: false
+ power-domains: false
unevaluatedProperties: false
@@ -412,4 +483,33 @@ examples:
};
};
};
+
+ - |
+ ethernet@4510000 {
+ compatible = "allwinner,sun60i-a733-gmac210",
+ "snps,dwmac-5.20";
+ reg = <0x04510000 0x8000>,
+ <0x04518000 0x1000>;
+ clocks = <&ccu 58>, <&ccu 59>, <&ccu 60>;
+ clock-names = "stmmaceth", "mbus", "ptp_ref";
+ resets = <&ccu 30>, <&ccu 31>;
+ reset-names = "stmmaceth", "ahb";
+ interrupts = <0 175 4>, <0 179 4>, <0 176 4>, <0 177 4>;
+ interrupt-names = "macirq", "eth_lpi", "tx-queue-0", "rx-queue-0";
+ pinctrl-names = "default";
+ pinctrl-0 = <&rgmii1_pins>;
+ phy-handle = <&ext_rgmii_phy_2>;
+ phy-mode = "rgmii-id";
+ snps,fixed-burst;
+
+ mdio {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ext_rgmii_phy_2: ethernet-phy@1 {
+ reg = <1>;
+ };
+ };
+ };
...
--
2.53.0
next prev parent reply other threads:[~2026-09-10 10:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 10:25 [PATCH net-next v2 0/2] net: stmmac: Add support for Allwinner A733 GMAC210 Jerome Brunet
2026-09-10 10:25 ` Jerome Brunet [this message]
2026-09-10 10:25 ` [PATCH net-next v2 2/2] " Jerome Brunet
2026-09-10 10:59 ` Maxime Chevallier
2026-09-10 13:06 ` Jerome Brunet
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=20260910-allwinner-a733-gmac-support-v2-1-4f4a1e520c23@baylibre.com \
--to=jbrunet@baylibre.com \
--cc=alexandre.torgue@foss.st.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.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-sunxi@lists.linux.dev \
--cc=maxime.chevallier@bootlin.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=mripard@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=samuel@sholland.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