[PATCH v2 3/3] phy: renesas: rcar-gen5-mpphy: Document how to obtain firmware

From: Marek Vasut

Date: Sun Nov 29 2026 - 12:38:05 EST


Renesas R-Car X5H (r8a78000) contains a Multi-Protocol PHY, which requires
firmware to be downloaded into it. Add documentation on how to obtain the
firmware in correct format.

Signed-off-by: Marek Vasut <marek.vasut+renesas@xxxxxxxxxxx>
---
Cc: Arnd Bergmann <arnd@xxxxxxxx>
Cc: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
Cc: Conor Dooley <conor+dt@xxxxxxxxxx>
Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Cc: Hai Pham <hai.pham.ud@xxxxxxxxxxx>
Cc: Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>
Cc: Magnus Damm <magnus.damm@xxxxxxxxx>
Cc: Manivannan Sadhasivam <mani@xxxxxxxxxx>
Cc: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
Cc: Phong Hoang <phong.hoang.wz@xxxxxxxxxxx>
Cc: Rob Herring <robh@xxxxxxxxxx>
Cc: Tam Nguyen <tam.nguyen.xa@xxxxxxxxxxx>
Cc: Thanh Quan <thanh.quan.xn@xxxxxxxxxxx>
Cc: Tommaso Merciai <tommaso.merciai.xr@xxxxxxxxxxxxxx>
Cc: Vinh Nguyen <vinh.nguyen.xz@xxxxxxxxxxx>
Cc: Vinod Koul <vkoul@xxxxxxxxxx>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-phy@xxxxxxxxxxxxxxxxxxx
Cc: linux-renesas-soc@xxxxxxxxxxxxxxx
---
V2: New patch
---
Documentation/phy/index.rst | 10 ++++++
.../phy/renesas-rcar-gen5-mpphy-firmware.rst | 33 +++++++++++++++++++
2 files changed, 43 insertions(+)
create mode 100644 Documentation/phy/index.rst
create mode 100644 Documentation/phy/renesas-rcar-gen5-mpphy-firmware.rst

diff --git a/Documentation/phy/index.rst b/Documentation/phy/index.rst
new file mode 100644
index 0000000000000..f61cf6f1c459e
--- /dev/null
+++ b/Documentation/phy/index.rst
@@ -0,0 +1,10 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+===
+PHY
+===
+
+.. toctree::
+ :maxdepth: 1
+
+ renesas-rcar-gen5-mpphy-firmware
diff --git a/Documentation/phy/renesas-rcar-gen5-mpphy-firmware.rst b/Documentation/phy/renesas-rcar-gen5-mpphy-firmware.rst
new file mode 100644
index 0000000000000..ce2fba03de0da
--- /dev/null
+++ b/Documentation/phy/renesas-rcar-gen5-mpphy-firmware.rst
@@ -0,0 +1,33 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+====================================================
+Firmware of Multi-Protocol PHY for Renesas R-Car X5H
+====================================================
+
+Renesas R-Car X5H (r8a78000) has a Multi-Protocol PHY, requiring a specific
+firmware download during startup.
+
+However, Renesas currently cannot distribute the firmware free of charge.
+
+The firmware file "MPPHY_fw_offsetaddr_data_ver4p01a_patch0a.xlsx" (note that
+the file name might be different between different datasheet revisions) can be
+found in the datasheet encoded as spreadsheet, and as such, the file's content
+must be converted back to binary form. This can be achieved using the following
+example script:
+
+.. code-block:: sh
+
+ $ libreoffice --headless --convert-to csv MPPHY_fw_offsetaddr_data_ver4p01a_patch0a.xlsx
+ $ tail -n +3 MPPHY_fw_offsetaddr_data_ver4p01a_patch0a.csv | cut -d "," -f 3 | \
+ sed 's@0x\(..\)\(..\)@0x\2\1@' | xxd -r -p > rcar_gen5_mp_phy.bin
+
+Once the text content has been converted into a binary firmware file, verify
+its checksum as follows:
+
+.. code-block:: sh
+
+ $ sha256sum rcar_gen5_mp_phy.bin
+ d9352ba55f095b7f5adaa3f2bce93f5c58eee310b0faf39c290cb5885e1aa7b8 rcar_gen5_mp_phy.bin
+
+The resulting binary file called "rcar_gen5_mp_phy.bin" should be placed in
+the "/lib/firmware" directory before the driver runs.
--
2.53.0