[PATCH v2 0/4] net: phy: aquantia: Switch to generic firmware loader

Beiyan Yun
2025-10-14T11:56:26Z

Hi,

This patch series refactors the Aquantia PHY firmware loader to use
the generic fsloader framework.

The existing loader is limited to loading firmware from an MMC device,
which restricts its use on many devices (e.g., routers) that may use
other storage like USB or have a UBIFS root filesystem. Migrating to the
generic firmware loader allows firmware to be sourced from any backend
supported by the fwloader and fsloader framework.

The series is structured as follows:
- The first patch is a minor cleanup, switching to the phy_get_ofnode()
helper.
- The second patch aligns binding document with upstream and prepares
for the migration.
- The third patch aligns binding for MDI with upstream.
- The final and main patch replaces the custom loader with generic one.

Kept smb-addr intact as NXP is the only consumer.

This change has been tested on a Buffalo WXR18000BE10P router, loading
firmware from a UBIFS volume for Marvell CUX3410.

Changes in v2:
- doc: bindings: use upstream bindings for aquantia phy
- net: phy: aquantia: replace the "mdi-reversal" node with "marvell,mdi-cfg-order"
- Add support for script based loader

Beiyan Yun (4):
net: phy: aquantia: switch to use phy_get_ofnode()
doc: bindings: use upstream bindings for aquantia phy
net: phy: aquantia: replace the "mdi-reversal" node with
"marvell,mdi-cfg-order"
net: phy: aquantia: use generic firmware loader

arch/arm/dts/fsl-sch-30841.dtsi | 8 +-
arch/arm/dts/fsl-sch-30842.dtsi | 2 +-
doc/device-tree-bindings/net/aquantia-phy.txt | 15 +-
drivers/net/phy/Kconfig | 23 +--
drivers/net/phy/aquantia.c | 139 ++++++++++--------
5 files changed, 98 insertions(+), 89 deletions(-)

--
2.47.3

base-commit: 48f21e66e360552c75d70a50421d0e0ed1f59e90
branch: aquantia-fsloader-v2