Netdev List
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.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>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>
Cc: Liu Changjie <liucj1228@outlook.com>,
	netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-sunxi@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/6] sunxi: net: add Ethernet support for X96QPro+
Date: Mon,  3 Aug 2026 12:14:46 +0200	[thread overview]
Message-ID: <20260803101452.2993721-1-andre.przywara@arm.com> (raw)

The X96QPro+ is a TV box with an Allwinner H728 SoC (the same die as the
Allwinner A523). The Ethernet connection is using the secondary GMAC,
connected to a MAXIO MAE0621A-Q2C PHY. The setup is a bit special, as it's
not using a crystal oscillator to clock the PHY, but instead a clock
fanout pin from the SoC.
To make Ethernet work on this device, we need this clock, we need to
adjust the PHY-ID, and we need the devicetree bits:

- To make the PHY operational, the PHY driver needs to enable the fanout
clock. The generic PHY DT binding describes such a clock already, so
the binding needs no addition in this respect, but it's in each PHY
driver's responsibility to take care of that clock enablement, which
is done in the first two patches.

- Also the MAXIO PHY used on the board is the -Q2C variant, which uses a
slightly different PHY-ID than the Q3C variant described in the current
version of the driver. Add this new PHY-ID to the driver, but also
allow it in the DT binding, since we need to use that PHY-ID compatible
string version, to skip the MDIO probing process, which wouldn't work
without the clock. This is done in patches 3 and 4.

- Lastly we need to describe the config in the board's devicetree. Patch
5 adds clock fanout pins to the .dtsi, which the final patch 6 enables
the MAC and PHY nodes and connects them together.

This enables the box' Ethernet functionality, made possible by the new
MAXIO PHY driver. The MAC part is already supported for a few releases.

This is based on v7.2-rc1, plus version 2 of the MAXIO PHY driver as
sent by Liu Changjie. Since those two patches have been reviewed already
some weeks back, I assume they are ready to go. Please let me know if
that is not the case and if I can help with anything there.

Cheers,
Andre


Andre Przywara (6):
  net: phy: maxio: prepare for more DT properties
  net: phy: maxio: parse and enable PHY clock from generic DT binding
  dt-bindings: net: Maxio PHY: add PHY-ID for -Q2C variant
  net: phy: maxio: extend PHY ID matching
  arm64: dts: allwinner: a523: add EPHY 25MHz clock fanout pins
  arm64: dts: allwinner: a523: x96qpro+: enable Ethernet support

 .../bindings/net/maxio,mae0621a.yaml          |  4 ++-
 .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 14 ++++++++++
 .../dts/allwinner/sun55i-h728-x96qpro+.dts    | 28 +++++++++++++++++++
 drivers/net/phy/maxio.c                       | 27 +++++++++++-------
 4 files changed, 62 insertions(+), 11 deletions(-)


base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
prerequisite-patch-id: aa3058cd68d68f361088b39cac0b12fb96be8b55
prerequisite-patch-id: 90f19ec9993e373e39efda42984c88d7b51151e5
-- 
2.43.0


             reply	other threads:[~2026-08-03 10:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-03 10:14 Andre Przywara [this message]
2026-08-03 10:14 ` [PATCH 1/6] net: phy: maxio: prepare for more DT properties Andre Przywara
2026-08-04  2:42   ` Andrew Lunn
2026-08-03 10:14 ` [PATCH 2/6] net: phy: maxio: parse and enable PHY clock from generic DT binding Andre Przywara
2026-08-04  2:43   ` Andrew Lunn
2026-08-03 10:14 ` [PATCH 3/6] dt-bindings: net: Maxio PHY: add PHY-ID for -Q2C variant Andre Przywara
2026-08-03 10:14 ` [PATCH 4/6] net: phy: maxio: extend PHY ID matching Andre Przywara
2026-08-03 14:59   ` Per Larsson
2026-08-04  2:49   ` Andrew Lunn
2026-08-03 10:14 ` [PATCH 5/6] arm64: dts: allwinner: a523: add EPHY 25MHz clock fanout pins Andre Przywara
2026-08-03 10:14 ` [PATCH 6/6] arm64: dts: allwinner: a523: x96qpro+: enable Ethernet support Andre Przywara
2026-08-04  2:53   ` Andrew Lunn
2026-08-04  3:11     ` Chen-Yu Tsai
2026-08-04 14:44       ` Andrew Lunn

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=20260803101452.2993721-1-andre.przywara@arm.com \
    --to=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=hkallweit1@gmail.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=linux@armlinux.org.uk \
    --cc=liucj1228@outlook.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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