-
Notifications
You must be signed in to change notification settings - Fork 7.6k
drivers: sdhc: Add support for Apollo510 SDIO host #92229
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
drivers: sdhc: Add support for Apollo510 SDIO host #92229
Conversation
9ddb318
to
8dcc1f3
Compare
d0ef6c8
to
99ce267
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR integrates Ambiq Apollo510 SDIO host support by extending the SD/MMC drivers and adding board, device tree, and sample configurations for the Apollo510 evaluation board.
- Save OCR from CMD5 and mask/set OCR argument correctly in SDIO init.
- Add configurable 1/4-bit SDIO modes, MMC DDR50 timing, and dynamic timing selection.
- Update device trees, board YAML, and samples for Apollo510 EVB.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
subsys/sd/sdio.c | Save OCR value; mask OCR_ARG; conditional bus-width call |
subsys/sd/mmc.c | Introduce MMC DDR50 logic; unified timing mode; bus-width init |
subsys/sd/Kconfig | New config options for SDIO 1-bit and MMC bus widths |
samples/subsys/fs/fs_sample/sample.yaml | Add build-only SDMMC test for Apollo510 EVB |
samples/subsys/fs/fs_sample/boards/apollo510_evb.overlay | Enable sdio0 in sample overlay |
samples/subsys/fs/fs_sample/boards/apollo510_evb.conf | Apollo510 EVB build config options |
dts/arm/ambiq/ambiq_apollo510.dtsi | Add disabled sdio0/sdio1 nodes |
boards/ambiq/apollo510_evb/apollo510_evb.yaml | Add sdio to supported subsystems |
boards/ambiq/apollo510_evb/apollo510_evb.dts | Configure sdio0 pinctrl and mmc-disk status |
boards/ambiq/apollo510_evb/apollo510_evb-pinctrl.dtsi | Define sdio0/1 pin groups |
Comments suppressed due to low confidence (1)
samples/subsys/fs/fs_sample/sample.yaml:85
- [nitpick] This sample is marked
build_only:true
and lacks runtime tests. Consider adding arun:
section or actual filesystem operations to validate SDMMC functionality on Apollo510 EVB.
sample.filesystem.fat_fs.apollo510_evb_sdmmc:
This commit adds support for ambiq SDIO host driver Signed-off-by: Fan Wang <fan.wang@ambiq.com>
99ce267
to
54c6264
Compare
|
Moved to #92455 |
This commit adds support for ambiq SDIO host driver