From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.152 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796084423; b=pVGmcypbxrAyWqkZkaYJrRMP/TLzwRowP/41vUFNCz9Z3IPBLkTWRzYIbl3A/CF6Or2t L7G9lj2xySFAv6R5+cW4pJfsypO6eK5wtBoXZljq5oEaiKHWTgbXGle1W3BHRwT3gvqiI 5peRmgUWoPxjUlvrMfjSIu4yj46Qwb7IBqjjYizSzrEGySzm1U6oCDgXccSfK6zDtf47R OxB8CkJys7O0bhCS4hcUimYSAcBmc8usS7DbnJHU4iO+5CJ7X2XgiWAlj1Fg91vur7bDP GNTi3jrwLNtuWLgdhQOZ7YrDDJCYlYA42TMNK5YVcxzxQdrEwfQuLUnltuzpNAJuKEw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796084423; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-MBO-RS-ID:X-MBO-RS-META; bh=UG0Z3CLn7yecnYYunMg++6cKnbPystI9gnTuE5MSzeI=; b=ORBgTWI21kvSvp19cJHOFLcRUvpl30bfpHK+BMvlHKu0qJB836ilIpVqMz48ptuK9PGL FMctI9ugMu4tSfSr1qenXA5GfwtMfd9AlPB6Ml7R9gmXdU+HV249gK5ilK1n4mwcNAmzF MANxcz87wDKyip33U6QNR40exY/LakDOk9u7fng9QZx6fKzfWG1mPSzOWD1FdcSblIDmC yT5Y+uFImfj4+F340S5lXelIgL+NUoLBLt6kpciZ34oC0giYshuzQftTvowiV6fKsOYUH S68J1QU9OdVclzCHoKjVexnMJrO6opxidB6x75Hogu/gLss+VSsushBR3OwA29V02oQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=s54MyleJ; arc=none smtp.remote-ip=80.241.56.152 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6820E606A320; Tue, 1 Dec 2026 00:20:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6820E606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=s54MyleJ Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4jdhNy6rl8zKvmp; Tue, 01 Dec 2026 01:20:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1796084419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UG0Z3CLn7yecnYYunMg++6cKnbPystI9gnTuE5MSzeI=; b=s54MyleJEBWn0eQ+V+RA3hnZG9TNP9ckkEEzoU0bmSZFn+UlrLb2LyyWYwwVklXMKWV5Q/ hOmVELeRVmpaAGMJ7RjbquHJTlpnMa5kVEk59xQSH4N7/tViiiVG+axZ3o5CxekEDJVZ7u SKvlwxdOpee4AR+ozpknz5ySlqkP1jENBOsGV1c7Dso5OYTmQVd79g6fbf1OHypw6y3GYr yQIeg2EHvc2lOSuV+sennROAECMiIafoBHeNauU2loPDRV1Bxhhcjk1oEgCKfg8+6h9iLl QgT//XVjIsGzPzU8GbZJOrEi3Q3ndPUszsUFiHs5YNSFZgUmzoCezjrl2oauGQ== From: Marek Vasut To: linux-phy@lists.infradead.org Cc: Marek Vasut , Arnd Bergmann , Biju Das , Conor Dooley , Geert Uytterhoeven , Hai Pham , Krzysztof Kozlowski , Magnus Damm , Manivannan Sadhasivam , Neil Armstrong , Phong Hoang , Rob Herring , Tam Nguyen , Thanh Quan , Tommaso Merciai , Vinh Nguyen , Vinod Koul , Yoshihiro Shimoda , 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 Message-ID: <20261201002008.413380-3-marek.vasut+renesas@mailbox.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261201002008.413380-1-marek.vasut+renesas@mailbox.org> References: <20261201002008.413380-1-marek.vasut+renesas@mailbox.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: aa5cdfd9a037a5d47c8 X-MBO-RS-META: khhnrpgpsh518mzzyhs4r5hjyy97p1pf 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 --- Cc: Arnd Bergmann Cc: Biju Das Cc: Conor Dooley Cc: Geert Uytterhoeven Cc: Hai Pham Cc: Krzysztof Kozlowski Cc: Magnus Damm Cc: Manivannan Sadhasivam Cc: Neil Armstrong Cc: Phong Hoang Cc: Rob Herring Cc: Tam Nguyen Cc: Thanh Quan Cc: Tommaso Merciai Cc: Vinh Nguyen Cc: Vinod Koul Cc: Yoshihiro Shimoda 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