[PATCH v6 0/4] usb: xhci: Load Raspberry Pi 4 VL805's firmware
Matthias Brugger
mbrugger at suse.com
Wed Jul 8 17:09:26 CEST 2020
On 29/06/2020 18:37, Nicolas Saenz Julienne wrote:
> Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be
> loaded explicitly. Earlier versions didn't need that as they where using
> an EEPROM for that purpose. This series takes care of setting up the
> relevant infrastructure and run the firmware loading routine at the
> right moment.
>
> Note that this builds on top of Sylwester Nawrocki's "USB host support
> for Raspberry Pi 4 board" series.
>
> This also depends on a DT/bindings patch available on the linux-mailing lists:
> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2205783.html
>
> Here is the relevant bit for reference/discussion:
>
> &pcie0 {
> pci at 1,0 {
> #address-cells = <3>;
> #size-cells = <2>;
> ranges;
>
> reg = <0 0 0 0 0>;
>
> usb at 1,0 {
> reg = <0x10000 0 0 0 0>;
> resets = <&reset RASPBERRYPI_FIRMWARE_RESET_ID_USB>;
> };
> };
> };
>
> ---
>
> Changes since v5:
> - Properly handle !CONFIG_IS_ENABLED(DM_RESET) in xchi code
>
> Changes since v4:
> - Correct DT PCI topology, I separated the root bridge and controller
> DT nodes
> - Get rid of PCI core patch as not needed with correct DT PCI topology
> - Move reset support to xchi core
>
> Changes since v3:
> - Use reset controller
>
> Changes since v2:
> - Correct comment on patch #1
> - Address Matthias' comments
>
> Changes since v1:
> - Rename function
> - Use callback in xhci-pci.c
>
> Nicolas Saenz Julienne (4):
> arm: rpi: Add function to trigger VL805's firmware load
> reset: Add Raspberry Pi 4 firmware reset controller
> configs: Enable support for reset controllers on RPi4
> usb: xhci: Add reset controller support
Applied now to rpi-next
Thanks!
>
> arch/arm/mach-bcm283x/include/mach/mbox.h | 13 ++++
> arch/arm/mach-bcm283x/include/mach/msg.h | 7 +++
> arch/arm/mach-bcm283x/msg.c | 46 ++++++++++++++
> configs/rpi_4_32b_defconfig | 1 +
> configs/rpi_4_defconfig | 1 +
> configs/rpi_arm64_defconfig | 1 +
> drivers/reset/Kconfig | 10 ++++
> drivers/reset/Makefile | 1 +
> drivers/reset/reset-raspberrypi.c | 60 +++++++++++++++++++
> drivers/usb/host/xhci-mem.c | 2 +
> drivers/usb/host/xhci.c | 33 ++++++++++
> .../reset/raspberrypi,firmware-reset.h | 13 ++++
> include/usb/xhci.h | 2 +
> 13 files changed, 190 insertions(+)
> create mode 100644 drivers/reset/reset-raspberrypi.c
> create mode 100644 include/dt-bindings/reset/raspberrypi,firmware-reset.h
>
More information about the U-Boot
mailing list