mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut+renesas@mailbox.org>
To: linux-phy@lists.infradead.org
Cc: Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Arnd Bergmann <arnd@arndb.de>,
	Biju Das <biju.das.jz@bp.renesas.com>,
	Conor Dooley <conor+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Hai Pham <hai.pham.ud@renesas.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Magnus Damm <magnus.damm@gmail.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Phong Hoang <phong.hoang.wz@renesas.com>,
	Rob Herring <robh@kernel.org>,
	Tam Nguyen <tam.nguyen.xa@renesas.com>,
	Thanh Quan <thanh.quan.xn@renesas.com>,
	Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>,
	Vinh Nguyen <vinh.nguyen.xz@renesas.com>,
	Vinod Koul <vkoul@kernel.org>,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org
Subject: [PATCH v3 3/3] phy: renesas: rcar-gen5-mpphy: Document how to obtain firmware
Date: Tue,  1 Dec 2026 01:19:33 +0100	[thread overview]
Message-ID: <20261201002008.413380-3-marek.vasut+renesas@mailbox.org> (raw)
In-Reply-To: <20261201002008.413380-1-marek.vasut+renesas@mailbox.org>

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@mailbox.org>
---
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Biju Das <biju.das.jz@bp.renesas.com>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Hai Pham <hai.pham.ud@renesas.com>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Manivannan Sadhasivam <mani@kernel.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Phong Hoang <phong.hoang.wz@renesas.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Tam Nguyen <tam.nguyen.xa@renesas.com>
Cc: Thanh Quan <thanh.quan.xn@renesas.com>
Cc: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Cc: Vinh Nguyen <vinh.nguyen.xz@renesas.com>
Cc: Vinod Koul <vkoul@kernel.org>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-phy@lists.infradead.org
Cc: linux-renesas-soc@vger.kernel.org
---
V2: New patch
V3: Move documentation from Documentation/phy/ to Documentation/driver-api/phy/
---
 Documentation/driver-api/phy/index.rst        |  1 +
 .../phy/renesas-rcar-gen5-mpphy-firmware.rst  | 33 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 Documentation/driver-api/phy/renesas-rcar-gen5-mpphy-firmware.rst

diff --git a/Documentation/driver-api/phy/index.rst b/Documentation/driver-api/phy/index.rst
index 579cfe3b7b82f..c53e7eee3bbc5 100644
--- a/Documentation/driver-api/phy/index.rst
+++ b/Documentation/driver-api/phy/index.rst
@@ -7,4 +7,5 @@ Generic PHY Framework
 .. toctree::
 
    phy
+   renesas-rcar-gen5-mpphy-firmware
    samsung-usb2
diff --git a/Documentation/driver-api/phy/renesas-rcar-gen5-mpphy-firmware.rst b/Documentation/driver-api/phy/renesas-rcar-gen5-mpphy-firmware.rst
new file mode 100644
index 0000000000000..ce2fba03de0da
--- /dev/null
+++ b/Documentation/driver-api/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


      parent reply	other threads:[~2026-12-01  0:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  0:19 [PATCH v3 1/3] dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H Marek Vasut
2026-12-01  0:19 ` [PATCH v3 2/3] phy: renesas: Add " Marek Vasut
2026-12-01  0:19 ` Marek Vasut [this message]

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=20261201002008.413380-3-marek.vasut+renesas@mailbox.org \
    --to=marek.vasut+renesas@mailbox.org \
    --cc=arnd@arndb.de \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=hai.pham.ud@renesas.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mani@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=phong.hoang.wz@renesas.com \
    --cc=robh@kernel.org \
    --cc=tam.nguyen.xa@renesas.com \
    --cc=thanh.quan.xn@renesas.com \
    --cc=tommaso.merciai.xr@bp.renesas.com \
    --cc=vinh.nguyen.xz@renesas.com \
    --cc=vkoul@kernel.org \
    --cc=yoshihiro.shimoda.uh@renesas.com \
    /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

all inboxes | Powered by JetHome®