* [PATCH v4] PCI: rcar-gen4: Add a document about the firmware
@ 2025-05-07 10:09 Yoshihiro Shimoda
2025-05-15 13:12 ` Manivannan Sadhasivam
2025-05-20 16:50 ` Krzysztof Wilczyński
0 siblings, 2 replies; 4+ messages in thread
From: Yoshihiro Shimoda @ 2025-05-07 10:09 UTC (permalink / raw)
To: bhelgaas, corbet
Cc: manivannan.sadhasivam, marek.vasut+renesas, linux-pci, linux-doc,
linux-renesas-soc, Yoshihiro Shimoda
Renesas R-Car V4H (r8a779g0) has PCIe controller, and it requires
specific firmware downloading. So, add a document about the firmware
how to get.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
Changes from v3:
https://lore.kernel.org/linux-pci/20241024120525.291885-1-yoshihiro.shimoda.uh@renesas.com/
- Rebase on v6.15-rc1.
- Revise some descriptions (reviewed from Manivannan Sadhasivam).
- Add the doc file entry into the MAINTAINER.
Changes from v2:
https://lore.kernel.org/linux-pci/20240703102937.1403905-1-yoshihiro.shimoda.uh@renesas.com/
- Rebase on v6.12-rc1.
- Move the document file on Documentation/PCI/.
- Add SPDX-License-Identifier.
Documentation/PCI/rcar-pcie-firmware.rst | 24 ++++++++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 25 insertions(+)
create mode 100644 Documentation/PCI/rcar-pcie-firmware.rst
diff --git a/Documentation/PCI/rcar-pcie-firmware.rst b/Documentation/PCI/rcar-pcie-firmware.rst
new file mode 100644
index 0000000000000..0e285c4a7cd72
--- /dev/null
+++ b/Documentation/PCI/rcar-pcie-firmware.rst
@@ -0,0 +1,24 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=================================================
+Firmware of PCIe controller for Renesas R-Car V4H
+=================================================
+
+Renesas R-Car V4H (r8a779g0) has PCIe controller, and it requires specific
+firmware downloading. The firmware file "104_PCIe_fw_addr_data_ver1.05.txt"
+is available in the datasheet as a text file. But, Renesas is not able to
+distribute the firmware freely. So, it is required to convert the text file
+to a binary, and the binary should be placed in /lib/firmware before
+the driver runs by using the following script:
+
+.. code-block:: sh
+
+ $ awk '/^\s*0x[0-9A-Fa-f]{4}\s+0x[0-9A-Fa-f]{4}/ \
+ { print substr($2,5,2) substr($2,3,2) }' \
+ 104_PCIe_fw_addr_data_ver1.05.txt | xxd -p -r > \
+ rcar_gen4_pcie.bin
+
+ $ sha1sum rcar_gen4_pcie.bin
+
+ # Example output of the sha1sum:
+ 1d0bd4b189b4eb009f5d564b1f93a79112994945 rcar_gen4_pcie.bin
diff --git a/MAINTAINERS b/MAINTAINERS
index 1ccb83716bf28..9ad5c565595d5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -18531,6 +18531,7 @@ M: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
L: linux-pci@vger.kernel.org
L: linux-renesas-soc@vger.kernel.org
S: Maintained
+F: Documentation/PCI/rcar-pcie-firmware.rst
F: Documentation/devicetree/bindings/pci/*rcar*
F: drivers/pci/controller/*rcar*
F: drivers/pci/controller/dwc/*rcar*
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4] PCI: rcar-gen4: Add a document about the firmware
2025-05-07 10:09 [PATCH v4] PCI: rcar-gen4: Add a document about the firmware Yoshihiro Shimoda
@ 2025-05-15 13:12 ` Manivannan Sadhasivam
2025-05-20 16:47 ` Krzysztof Wilczyński
2025-05-20 16:50 ` Krzysztof Wilczyński
1 sibling, 1 reply; 4+ messages in thread
From: Manivannan Sadhasivam @ 2025-05-15 13:12 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: bhelgaas, corbet, marek.vasut+renesas, linux-pci, linux-doc,
linux-renesas-soc
On Wed, May 07, 2025 at 07:09:47PM +0900, Yoshihiro Shimoda wrote:
> Renesas R-Car V4H (r8a779g0) has PCIe controller, and it requires
> specific firmware downloading. So, add a document about the firmware
> how to get.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Looks good to me. But there is a small nit below.
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> ---
> Changes from v3:
> https://lore.kernel.org/linux-pci/20241024120525.291885-1-yoshihiro.shimoda.uh@renesas.com/
> - Rebase on v6.15-rc1.
> - Revise some descriptions (reviewed from Manivannan Sadhasivam).
> - Add the doc file entry into the MAINTAINER.
>
> Changes from v2:
> https://lore.kernel.org/linux-pci/20240703102937.1403905-1-yoshihiro.shimoda.uh@renesas.com/
> - Rebase on v6.12-rc1.
> - Move the document file on Documentation/PCI/.
> - Add SPDX-License-Identifier.
>
> Documentation/PCI/rcar-pcie-firmware.rst | 24 ++++++++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 25 insertions(+)
> create mode 100644 Documentation/PCI/rcar-pcie-firmware.rst
>
> diff --git a/Documentation/PCI/rcar-pcie-firmware.rst b/Documentation/PCI/rcar-pcie-firmware.rst
> new file mode 100644
> index 0000000000000..0e285c4a7cd72
> --- /dev/null
> +++ b/Documentation/PCI/rcar-pcie-firmware.rst
> @@ -0,0 +1,24 @@
> +.. SPDX-License-Identifier: GPL-2.0
> +
> +=================================================
> +Firmware of PCIe controller for Renesas R-Car V4H
> +=================================================
> +
> +Renesas R-Car V4H (r8a779g0) has PCIe controller, and it requires specific
> +firmware downloading. The firmware file "104_PCIe_fw_addr_data_ver1.05.txt"
> +is available in the datasheet as a text file. But, Renesas is not able to
> +distribute the firmware freely. So, it is required to convert the text file
> +to a binary, and the binary should be placed in /lib/firmware before
> +the driver runs by using the following script:
nit: the above wording sounds like the script places the firmware under
/lib/firmware, but it is not.
- Mani
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] PCI: rcar-gen4: Add a document about the firmware
2025-05-15 13:12 ` Manivannan Sadhasivam
@ 2025-05-20 16:47 ` Krzysztof Wilczyński
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Wilczyński @ 2025-05-20 16:47 UTC (permalink / raw)
To: Manivannan Sadhasivam
Cc: Yoshihiro Shimoda, bhelgaas, corbet, marek.vasut+renesas,
linux-pci, linux-doc, linux-renesas-soc
Hello,
> > +Renesas R-Car V4H (r8a779g0) has PCIe controller, and it requires specific
> > +firmware downloading. The firmware file "104_PCIe_fw_addr_data_ver1.05.txt"
> > +is available in the datasheet as a text file. But, Renesas is not able to
> > +distribute the firmware freely. So, it is required to convert the text file
> > +to a binary, and the binary should be placed in /lib/firmware before
> > +the driver runs by using the following script:
>
> nit: the above wording sounds like the script places the firmware under
> /lib/firmware, but it is not.
I took the liberty and refactored the entire document which is being added,
changing the wording and formatting it a little bit. Have a look at:
https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=controller/rcar-gen4&id=2bdf6ffe9f66d74a6baed3012d78f580c66c0583
Let me know if anything needs to be changed.
Thank you!
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] PCI: rcar-gen4: Add a document about the firmware
2025-05-07 10:09 [PATCH v4] PCI: rcar-gen4: Add a document about the firmware Yoshihiro Shimoda
2025-05-15 13:12 ` Manivannan Sadhasivam
@ 2025-05-20 16:50 ` Krzysztof Wilczyński
1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Wilczyński @ 2025-05-20 16:50 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: bhelgaas, corbet, manivannan.sadhasivam, marek.vasut+renesas,
linux-pci, linux-doc, linux-renesas-soc
Hello,
> Renesas R-Car V4H (r8a779g0) has PCIe controller, and it requires
> specific firmware downloading. So, add a document about the firmware
> how to get.
Applied to controller/rcar-gen4, thank you!
[1/1] PCI: rcar-gen4: Add a document about the firmware
https://git.kernel.org/pci/pci/c/2bdf6ffe9f66
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-05-20 16:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07 10:09 [PATCH v4] PCI: rcar-gen4: Add a document about the firmware Yoshihiro Shimoda
2025-05-15 13:12 ` Manivannan Sadhasivam
2025-05-20 16:47 ` Krzysztof Wilczyński
2025-05-20 16:50 ` Krzysztof Wilczyński
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).