Skip to content
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

RP1 GPIO header SDIO support #5704

Merged
merged 4 commits into from
Nov 8, 2023
Merged

RP1 GPIO header SDIO support #5704

merged 4 commits into from
Nov 8, 2023

Conversation

P33M
Copy link
Contributor

@P33M P33M commented Nov 8, 2023

This series pulls forward a workaround that was previously hacked about internally, and adds an overlay for SD/SDIO slot usage on the GPIO header.

Note that you can't boot off the GPIO header interface as the firmware doesn't abstract arbitrary SD interfaces - just supports the brcm ones - so still compiling sdhci-of-dwcmshc as a module is good enough.

P33M added 3 commits November 8, 2023 11:52
Certain controllers (dwc-mshc) generate timeout conditions separately to
command-completion conditions, where the end result is interrupts are
separated in time depending on the current SDCLK frequency.

This causes spurious interrupts if SDCLK is slow compared to the CPU's
ability to process and return from interrupt. This occurs during card
probe with an empty slot where all commands that would generate a
response time out.

Add a quirk to squelch command response interrupts when a command
timeout interrupt is received.

Signed-off-by: Jonathan Bell <[email protected]>
The DWC MSHC controller on RP1 needs differentiating from the generic
version.

Signed-off-by: Jonathan Bell <[email protected]>
Differentiate the RP1 variant of the Designware MSHC controller(s).

Signed-off-by: Jonathan Bell <[email protected]>
@P33M P33M force-pushed the rp1_mshc branch 2 times, most recently from 45a110f to 455ce70 Compare November 8, 2023 17:16
Also add a sdio-pi5 overlay which enables mmc0 on GPIOs 22-27, as was
possible with earlier models of Pi.

Signed-off-by: Jonathan Bell <[email protected]>
@pelwell pelwell merged commit 51cdff4 into raspberrypi:rpi-6.1.y Nov 8, 2023
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Nov 21, 2023
kernel: KMS stale dlist alloc changes
See: raspberrypi/linux#5684

kernel: drm/vc4: crtc: Support odd horizontal timings on BCM2712
See: raspberrypi/linux#5679

kernel: spi: dw-dma: Get the last DMA scoop out of the FIFO
See: raspberrypi/linux#5699

kernel: defconfigs: Drop FB_UDL from all Pi defconfigs
See: raspberrypi/linux#5702

kernel: RP1 GPIO header SDIO support
See: raspberrypi/linux#5704

kernel: ASoC: bcm: audioinjector_octo: Add soundcard owner
See: raspberrypi/linux#5705

kernel: drivers: media: imx708: Tweak broken line correction parameter
See: raspberrypi/linux#5701
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Nov 21, 2023
kernel: KMS stale dlist alloc changes
See: raspberrypi/linux#5684

kernel: drm/vc4: crtc: Support odd horizontal timings on BCM2712
See: raspberrypi/linux#5679

kernel: spi: dw-dma: Get the last DMA scoop out of the FIFO
See: raspberrypi/linux#5699

kernel: defconfigs: Drop FB_UDL from all Pi defconfigs
See: raspberrypi/linux#5702

kernel: RP1 GPIO header SDIO support
See: raspberrypi/linux#5704

kernel: ASoC: bcm: audioinjector_octo: Add soundcard owner
See: raspberrypi/linux#5705

kernel: drivers: media: imx708: Tweak broken line correction parameter
See: raspberrypi/linux#5701
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants