Skip to contentSkip to conversation

doc: bindings: fix aquantia-phy.txt typo

PATCH Superseded Beiyan Yun 1 participant 5 messages Sep 22, 2025 – Sep 23, 2025 1 message not in the archive

Subsystems (2)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Beiyan Yun

author
#1 lore raw

PATCH 1/4 net: phy: aquantia: switch to use phy_get_ofnode()

Use PHY API phy_get_ofnode() helper to get PHY DT node.

---

 drivers/net/phy/aquantia.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/aquantia.c +1 -1
index f63a13824ca..903fcd667f6 100644
@@ -338,7 +338,7 @@ static int aquantia_set_proto(struct phy_device *phydev,
 
 static int aquantia_dts_config(struct phy_device *phydev)
 {
-	ofnode node = phydev->node;
+	ofnode node = phy_get_ofnode(phydev);
 	u32 prop;
 	u16 reg;
 
Signature · 1 line
2.47.3
author
#2 lore raw

Re: [PATCH 1/4] net: phy: aquantia: switch to use phy_get_ofnode()

Please refer to resent series at https://lists.denx.de/pipermail/u-boot/2025-September/598941.html

Quoted 26 lines · Beiyan Yun

Use PHY API phy_get_ofnode() helper to get PHY DT node.

---

drivers/net/phy/aquantia.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/aquantia.c +1 -1
index f63a13824ca..903fcd667f6 100644
@@ -338,7 +338,7 @@ static int aquantia_set_proto(struct phy_device *phydev,
 
 static int aquantia_dts_config(struct phy_device *phydev)
 {
-	ofnode node = phydev->node;
+	ofnode node = phy_get_ofnode(phydev);
 	u32 prop;
 	u16 reg;
 
Signature · 1 line
2.47.3
author
#3 lore raw

PATCH 2/4 doc: bindings: fix aquantia-phy.txt typo

In reply to a message not in the archive

Fix typo: "weays" -> "ways"

---

 doc/device-tree-bindings/net/aquantia-phy.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/device-tree-bindings/net/aquantia-phy.txt +1 -1
index 89ce61e05bb..7dd3d45df12 100644
@@ -4,7 +4,7 @@ This text describes properties that are applicable to Aquantia PHY nodes in
 addition to the bindings in phy.txt.
 
 Aquantia PHYs allow some flexibility in the way they are wired in a system,
-they allow MDI pins to be reversed, LEDs linked up in different weays, have an
+they allow MDI pins to be reversed, LEDs linked up in different ways, have an
 I2C slave interface that can be used for debug.  Normally the configuration
 corresponding to these is driven by the PHY firmware with the downside that
 a custom firmware is needed for each integration of a PHY.
Signature · 1 line
2.47.3
author
#4 lore raw

PATCH 3/4 net: phy: aquantia: use generic firmware loader

In reply to a message not in the archive

Aquantia PHYs are being used w/o SPI flash in some routers recently. Current firmware loader only attempts to load from FS on top of MMC, limiting the use on many devices.

Removed the old firmware loader, migrate to generic firmware loader to allow a wider range of firmware source (e.g., USB, UBIFS).

Tested on Buffalo WXR18000BE10P with UBIFS.

---

 drivers/net/phy/Kconfig    |  19 +++---
 drivers/net/phy/aquantia.c | 122 +++++++++++++++++++------------------
 2 files changed, 71 insertions(+), 70 deletions(-)
drivers/net/phy/Kconfig +9 -10
index 21bf983056a..16a853793c5 100644
@@ -90,23 +90,22 @@ menuconfig PHY_AQUANTIA
 config PHY_AQUANTIA_UPLOAD_FW
 	bool "Aquantia firmware loading support"
 	depends on PHY_AQUANTIA
+	select FS_LOADER
 	help
 		Aquantia PHYs use firmware which can be either loaded automatically
 		from storage directly attached to the phy or loaded by the boot loader
-		via MDIO commands.  The firmware is loaded from a file, specified by
-		the PHY_AQUANTIA_FW_PART and PHY_AQUANTIA_FW_NAME options.
+		via MDIO commands.
 
-config PHY_AQUANTIA_FW_PART
-	string "Aquantia firmware partition"
-	depends on PHY_AQUANTIA_UPLOAD_FW
-	help
-		Partition containing the firmware file.
+		This option enables loading the firmware using the generic
+		file system firmware loader framework.
 
-config PHY_AQUANTIA_FW_NAME
-	string "Aquantia firmware filename"
+config PHY_AQUANTIA_FW_MAX_SIZE
+	hex "Max firmware size"
 	depends on PHY_AQUANTIA_UPLOAD_FW
+	default 0x80000
 	help
-		Firmware filename.
+	  The maximum size of the Aquantia PHY firmware. This is used to
+	  allocate a buffer to load the firmware into.
 
 config PHY_ATHEROS
 	bool "Atheros Ethernet PHYs support"
drivers/net/phy/aquantia.c +62 -60

170 lines not on this page · raw message

Signature · 1 line
2.47.3
author
#5 lore raw

PATCH 4/4 doc: bindings: add Aquantia PHY node's "firmware-name" binding

In reply to a message not in the archive

With the switch to generic firmware loader, "firmware-name" binding was introduced to define the firmware filename.
Provide the document and usage examples.

---

 doc/device-tree-bindings/net/aquantia-phy.txt | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
doc/device-tree-bindings/net/aquantia-phy.txt +30 -0
index 7dd3d45df12..1227c04d04f 100644
@@ -11,15 +11,45 @@ a custom firmware is needed for each integration of a PHY.
 Several optional bindings are defined that allow these configuration points to
 be driven by the PHY driver and reduce dependency on specific FW versions.
 
+Aquantia PHY's firmware is often provided by PHY-resident SPI flash; if absent
+or outdated, U-Boot can upload firmware over MDIO during PHY initialization.
+The driver uploads only when the PHY reports missing firmware or a fault.
+
 Optional properties:
 mdi-reversal: 0 or 1 indicating that reversal must be disabled/enabled.
               Firmware default is used if the property is missing.
 smb-addr:     I2C/SMBus address to use, firmware default is used if the property
               is missing.
+firmware-name: String containing the filename of the PHY firmware to load
+               (only when CONFIG_PHY_AQUANTIA_UPLOAD_FW is enabled).
 
 Example node:
 phy@00 {
 	reg = <0x00>;
 	mdi-reversal = <1>;
 	smb-addr = <0x25>;
+	firmware-name = "aqr-firmware.cld";
+};
+
+Example using the generic firmware loader:
+/	{
+	chosen {
+		/* Select default firmware loader instance */
+		firmware-loader = &fs_loader0;
+	};
+
+	fs_loader0: fs-loader@0 {
+		bootph-all;
+		compatible = "u-boot,fs-loader";
+		/* Load from MMC0, partition 1 */
+		phandlepart = <&mmc_0 1>;
+	};
+
+	mdio {
+		phy@0 {
+			reg = <0>;
+			/* Load this file via the selected fs-loader */
+			firmware-name = "aqr-firmware.cld";
+		};
+	};
 };
Signature · 1 line
2.47.3