public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/3] Ethernet support for Raspberry Pi 4
@ 2019-12-18 11:59 Andre Przywara
  2019-12-19  8:27 ` Sascha Dewald
  0 siblings, 1 reply; 3+ messages in thread
From: Andre Przywara @ 2019-12-18 11:59 UTC (permalink / raw)
  To: u-boot

This series adds Ethernet support for the Raspberry Pi 4. The SoC
includes a "Broadcom Genet v5 MAC" IP, connected as a proper platform
device (no USB anymore!). Patch 1 provides a driver for that. There does
not seem to be publicly available documentation, so this is based on the
Linux driver, but stripped down to just provide what U-Boot needs.
Patch 2 fixes up the RPi4 memory map to accommodate the MMIO area the
MAC lives in, while patch 3 enables it in the respective defconfigs.

Compared to the RFC post from Friday this is now fully functional,
although there are some minor issues left (sometimes unstable
initialisation, weird behaviour on repeated tftp gets (though it works),
PHY startup not properly timing out, (unjustified?) cache complaints on
32-bit).

Please have a look and test it, I hope this helps to simplify
development, as you spare the SD card and its slot from heavy swapping.

This tries to address the review comments on the RFC post (mostly my
own ;-), I put a branch on [1] showing what was changed over the original
post.

Cheers,
Andre.

P.S.: Since Amit will be busy this week, I took the freedom of fixing this up
and posting this (with his permission).

[1] https://github.com/apritzel/u-boot/commits/rpi4-eth

Amit Singh Tomar (3):
  net: Add support for Broadcom GENETv5 Ethernet controller
  rpi4: Update memory map to accommodate scb devices
  rpi4: Enable GENET Ethernet controller

 arch/arm/mach-bcm283x/init.c |   6 +-
 configs/rpi_4_32b_defconfig  |   2 +
 configs/rpi_4_defconfig      |   2 +
 configs/rpi_arm64_defconfig  |   1 +
 drivers/net/Kconfig          |   7 +
 drivers/net/Makefile         |   1 +
 drivers/net/bcmgenet.c       | 702 +++++++++++++++++++++++++++++++++++
 7 files changed, 718 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/bcmgenet.c

-- 
2.17.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 0/3] Ethernet support for Raspberry Pi 4
  2019-12-18 11:59 Andre Przywara
@ 2019-12-19  8:27 ` Sascha Dewald
  0 siblings, 0 replies; 3+ messages in thread
From: Sascha Dewald @ 2019-12-19  8:27 UTC (permalink / raw)
  To: u-boot

Thank you :-)

I will test it these days.

Am Mi., 18. Dez. 2019 um 12:59 Uhr schrieb Andre Przywara
<andre.przywara@arm.com>:
>
> This series adds Ethernet support for the Raspberry Pi 4. The SoC
> includes a "Broadcom Genet v5 MAC" IP, connected as a proper platform
> device (no USB anymore!). Patch 1 provides a driver for that. There does
> not seem to be publicly available documentation, so this is based on the
> Linux driver, but stripped down to just provide what U-Boot needs.
> Patch 2 fixes up the RPi4 memory map to accommodate the MMIO area the
> MAC lives in, while patch 3 enables it in the respective defconfigs.
>
> Compared to the RFC post from Friday this is now fully functional,
> although there are some minor issues left (sometimes unstable
> initialisation, weird behaviour on repeated tftp gets (though it works),
> PHY startup not properly timing out, (unjustified?) cache complaints on
> 32-bit).
>
> Please have a look and test it, I hope this helps to simplify
> development, as you spare the SD card and its slot from heavy swapping.
>
> This tries to address the review comments on the RFC post (mostly my
> own ;-), I put a branch on [1] showing what was changed over the original
> post.
>
> Cheers,
> Andre.
>
> P.S.: Since Amit will be busy this week, I took the freedom of fixing this up
> and posting this (with his permission).
>
> [1] https://github.com/apritzel/u-boot/commits/rpi4-eth
>
> Amit Singh Tomar (3):
>   net: Add support for Broadcom GENETv5 Ethernet controller
>   rpi4: Update memory map to accommodate scb devices
>   rpi4: Enable GENET Ethernet controller
>
>  arch/arm/mach-bcm283x/init.c |   6 +-
>  configs/rpi_4_32b_defconfig  |   2 +
>  configs/rpi_4_defconfig      |   2 +
>  configs/rpi_arm64_defconfig  |   1 +
>  drivers/net/Kconfig          |   7 +
>  drivers/net/Makefile         |   1 +
>  drivers/net/bcmgenet.c       | 702 +++++++++++++++++++++++++++++++++++
>  7 files changed, 718 insertions(+), 3 deletions(-)
>  create mode 100644 drivers/net/bcmgenet.c
>
> --
> 2.17.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 0/3] Ethernet support for Raspberry Pi 4
@ 2020-01-16  9:45 LABBE Corentin
  0 siblings, 0 replies; 3+ messages in thread
From: LABBE Corentin @ 2020-01-16  9:45 UTC (permalink / raw)
  To: u-boot

Hello

I have successfully used your patch to obtain an IP via DHCP and download kernel/dtb/ramdisk via tftp.
Tested-by: Corentin Labbe <clabbe@baylibre.com>

But I still fail to boot any kernel (mainline/rpi-5.4/rpi-4.19).
But this is irrelevant with your serie, since the same kernel is not bootable also via "load mmc 0:1 xxxx" but it is via the RPI bootloader.
So it is probably uboot's fault.

Thanks
Regards

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-16  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-16  9:45 [PATCH 0/3] Ethernet support for Raspberry Pi 4 LABBE Corentin
  -- strict thread matches above, loose matches on Subject: below --
2019-12-18 11:59 Andre Przywara
2019-12-19  8:27 ` Sascha Dewald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox