-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overlays: Add Pi 5 version of dwc2 #5661
Conversation
This seems like a good idea |
Should work - I'll double check in a mo. Is it cleaner to use an include instead of being 50% duplication of dwc2-overlay.dts? |
Yes, I prefer this solution. |
It works to the same level that I had the old "always apply the range" change did. |
Most bus masters on Pi 5 have access to at least the lower 4GB, but the old DWC OTG controller is still restricted to the first 1GB. Create a Pi 5-specific version of the overlay including a fragment that ensures the swiotlb bounce buffers are allocated in that area. Signed-off-by: Phil Elwell <[email protected]>
Much cleaner - done. |
Having said this worked, it looks like my system hadn't updated properly :-( #5658 put a dma-ranges in /, whereas this puts it in /soc. |
See: raspberrypi/linux#5661 kernel: Swap DT aliases from underscore to hyphen See: raspberrypi/linux#5662 kernel: Add DT aliases to map to DRM card names See: raspberrypi/linux#5629 kernel: Forcing /dev/fbN assignments for DRM cards See: raspberrypi/linux#5660 kernel: dts: bcm2712: Use the new model name See: https://forums.raspberrypi.com/viewtopic.php?p=2146474#p2146474
See: raspberrypi/linux#5661 kernel: Swap DT aliases from underscore to hyphen See: raspberrypi/linux#5662 kernel: Add DT aliases to map to DRM card names See: raspberrypi/linux#5629 kernel: Forcing /dev/fbN assignments for DRM cards See: raspberrypi/linux#5660 kernel: dts: bcm2712: Use the new model name See: https://forums.raspberrypi.com/viewtopic.php?p=2146474#p2146474
Oh well.
I would have expected that to be okay, but the dma-ranges above the zone_dma's dma-ranges must be interfering. I'll fix it. |
Fixup pushed. Success looks like this:
|
Previous patch
New
:-) |
See: raspberrypi/linux#5661 overlays: Typo in overlays README See: raspberrypi/linux#5663
See: raspberrypi/linux#5661 overlays: Typo in overlays README See: raspberrypi/linux#5663
Most bus masters on Pi 5 have access to at least the lower 4GB, but the old DWC OTG controller is still restricted to the first 1GB. Create a Pi 5-specific version of the overlay including a fragment that ensures the swiotlb bounce buffers are allocated in that area.
This PR replaces #5658.