-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
SDHCI vs EMMC on Pi 5 #5937
Merged
Merged
SDHCI vs EMMC on Pi 5 #5937
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Switch to using card-detection via GPIO, and add missing emmc_cmd pin. Also, "emmc_*" isn't the name of the respective function, but the name of the pin. These pins are single-function, but need pulls set accordingly. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
The SDIO_CFG register SD_PIN_SEL conflates two settings - whether eMMC HS or SD UHS timings are applied to the interface, and whether or not the card-detect line is functional. SD_PIN_SEL can only be changed when the SD clock isn't running, so add a bcm2712-specific clock setup. Toggling SD_PIN_SEL at runtime means the integrated card-detect feature can't be used, so this controller needs a cd-gpios property. Also fix conditionals for usage of the delay-line PHY - no-1-8-v will imply no bits set in hsemmc_mask or uhs_mask, so remove it. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
The pad control registers are concatenated onto the GPIO pad control registers, as with previous steppings. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
Is this worth merging as is, or would you rather wait until booting works? |
This is an improvement (and gets CM5 HS400 working) - the raspikey is a separate issue. |
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Feb 13, 2024
See: raspberrypi/linux#5930 kernel: drm/vc4: Disable overrun interrupts See: raspberrypi/linux#5935 kernel: drivers: thermal: step_wise: add support for hysteresis See: raspberrypi/linux#5936 kernel: media: rp1: cfe: Actually use the number of lanes configured See: raspberrypi/linux#5941 kernel: PCI: brcmstb: Enable CRS software visibility after linkup See: raspberrypi/linux#5889 kernel: SDHCI vs EMMC on Pi 5 See: raspberrypi/linux#5937
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Feb 13, 2024
See: raspberrypi/linux#5930 kernel: drm/vc4: Disable overrun interrupts See: raspberrypi/linux#5935 kernel: drivers: thermal: step_wise: add support for hysteresis See: raspberrypi/linux#5936 kernel: media: rp1: cfe: Actually use the number of lanes configured See: raspberrypi/linux#5941 kernel: PCI: brcmstb: Enable CRS software visibility after linkup See: raspberrypi/linux#5889 kernel: SDHCI vs EMMC on Pi 5 See: raspberrypi/linux#5937
Mmm... if I'm reading correctly, this could greatly speed up flashing compute module eMMC? Probably my number one pain point with CM4/eMMC modules. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes writes on the Raspikey for me and corrects a few more benign bugs.
I still can't boot from it, though - something goes wrong when attempting to switch MMC partitions - unrelated to IO errors.