Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upUpstream Raspberry Pi 4 B support #43
Comments
This comment has been minimized.
This comment has been minimized.
|
High prio TODOs:
Low prio TODOs:
|
This comment has been minimized.
This comment has been minimized.
|
For pinctrl i prefer to use this patch. Since the pinctrl-bcm2835 is generic now, we should use the generic bias properties (bias-disable, bias-pull-up). |
This comment has been minimized.
This comment has been minimized.
|
So finally here is the first draft for minimal RPi 4 support: Beware: this is only compile tested! Note: currently this doesn't seem to boot Edit: multi_v7_defconfig seems to be broken |
This comment has been minimized.
This comment has been minimized.
Hi @lategoodbye, where you aware of this: raspberrypi/linux#3032 (comment). It could be one of the reasons. |
This comment has been minimized.
This comment has been minimized.
|
This should be only relevant for aarch64. But thanks for the note. |
This comment has been minimized.
This comment has been minimized.
|
The changes should boot now. |
This comment has been minimized.
This comment has been minimized.
|
Here is a more cleaner version, which is ready for RFC: |
This comment has been minimized.
This comment has been minimized.
|
The RFC series is out now: |
This comment has been minimized.
This comment has been minimized.
|
The version 1 is ready for rebase on top of 5.3-rc1: Changes:
|
This comment has been minimized.
This comment has been minimized.
|
The version 2 is ready: Changes:
|
This comment has been minimized.
This comment has been minimized.
|
The version 3: Changes:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I prepared an initial series for the BCM2711 thermal driver (currently untested) https://github.com/lategoodbye/rpi-zero/tree/bcm2711-thermal |
This comment has been minimized.
This comment has been minimized.
|
@mbgg I saw that you upstreamed the NVRAM wifi configuration for the RPi 3B+ . Do you plan to do the same for the RPi 4B, because its different configuration? |
This comment has been minimized.
This comment has been minimized.
|
The V3 series is out now: |
This comment has been minimized.
This comment has been minimized.
|
The version 4: Changes:
TODO:
|
This comment has been minimized.
This comment has been minimized.
Yes I can take care of this. |
This comment has been minimized.
This comment has been minimized.
|
The V4 series is out: |
This comment has been minimized.
This comment has been minimized.
|
Based on the recent input from Florian i pushed a tested version of the thermal driver: |
This comment has been minimized.
This comment has been minimized.
|
New version for GENET support: and thermal support are out: |
This comment has been minimized.
This comment has been minimized.
|
First version of PCIe support: |
This comment has been minimized.
This comment has been minimized.
|
Currently booting a RPi 4 (linux-next, multi_v7_defconfig) on ARM32 with more RAM than 1 GB will result in a kernel crash:
As a temporary workaround, place the following entry to config.txt
|
This comment has been minimized.
This comment has been minimized.
|
I had a lot of trouble getting serial working on the upstream kernel (from a recent linux-next build). The mini UART is recognized by the kernel as |
This comment has been minimized.
This comment has been minimized.
That's the same on the RPi3 when using the upstream kernel DT, if you use the firmware provided DT it's ttyS0 |
This comment has been minimized.
This comment has been minimized.
AFAIK there are some hacks in the downstream tree, which also play with the naming. |
This comment has been minimized.
This comment has been minimized.
|
There's issues with the arm32 support in linus's tree, it doesn't boot and seems to cause issues with other devices for multiplatform support. The aarch64 support with the upstream kernel boots fine, when used with the firmware DT I get the following errors: [ 15.398547] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.407319] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 0 config (-22 80) [ 15.512080] sdhci: Secure Digital Host Controller Interface driver [ 15.518377] sdhci: Copyright(c) Pierre Ossman [ 15.530967] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.539713] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 1 config (-22 81) [ 15.566180] sdhci-pltfm: SDHCI platform and OF driver helper [ 15.670092] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.678740] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 2 config (-22 82) [ 15.690442] mmc0: SDHCI controller on fe300000.mmcnr [fe300000.mmcnr] using PIO [ 15.700443] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.709531] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 4 config (-22 84) [ 15.709541] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.719630] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.726495] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 3 config (-22 83) [ 15.735077] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 4 config (-22 84) [ 15.751880] gpio-regulator: probe of sd_io_1v8_reg failed with error -22 [ 15.774640] mmc0: queuing unknown CIS tuple 0x80 (2 bytes) [ 15.784278] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.785559] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 15.793112] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 4 config (-22 84) [ 15.800529] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x00000000 [ 15.800939] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 15.804548] mmc0: queuing unknown CIS tuple 0x80 (7 bytes) [ 15.806562] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 15.820185] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.841245] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 5 config (-22 85) [ 15.860184] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.868907] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 6 config (-22 86) [ 15.884842] raspberrypi-firmware soc:firmware: Request 0x00030043 returned status 0x00000000 [ 15.893806] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 7 config (-22 87) [ 15.917883] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x00000000 [ 15.942544] mmc0: new high speed SDIO card at address 0001 [ 16.328529] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x00000000 [ 16.397516] vc4_hdmi fe902000.hdmi: ignoring dependency for device, assuming no driver [ 16.406567] vc4_vec fe806000.vec: ignoring dependency for device, assuming no driver [ 16.421851] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x00000000 [ 16.444425] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x00000000 [ 19.690193] systemd-udevd (365) used greatest stack depth: 12064 bytes left [ 19.704707] systemd-udevd (372) used greatest stack depth: 11696 bytes left [ 19.711881] systemd-udevd (379) used greatest stack depth: 11328 bytes left [ 19.722200] systemd-udevd (371) used greatest stack depth: 10912 bytes left When I get a moment I'll try a dtdiff to see if I can see the difference. |
This comment has been minimized.
This comment has been minimized.
|
Please don't use this to report new issues. This is mostly to keep track of upstreaming efforts. Use the appropriate mailing lists instead. Combining upstream kernel and downstream DT is not intended to work. We need proper solutions upstream. Btw there is a patch to fix the multiplatform issue |
This comment has been minimized.
This comment has been minimized.
|
V2 of thermal support is out now: |
This comment has been minimized.
This comment has been minimized.
|
@lategoodbye Could you comment on what "58 GPIO support" implies. I can't seem to find anything related. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Here is the output of gpioinfo (1.4.0) with 58 GPIO and labels:
Any objections? |
The Raspberry Pi 4 B has a new brand SoC BCM2711 (1.5GHz Quad A72, VideoCore 6)
Upstream status: