Skip to content

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

Closed

Conversation

AlessandroLuo
Copy link
Contributor

This commit adds support for ambiq SDIO host driver

@AlessandroLuo AlessandroLuo force-pushed the apollo510-sdio-merge branch from 9ddb318 to 8dcc1f3 Compare June 26, 2025 09:36
@AlessandroLuo AlessandroLuo requested a review from Copilot June 26, 2025 09:37
Copilot

This comment was marked as outdated.

@AlessandroLuo AlessandroLuo force-pushed the apollo510-sdio-merge branch 2 times, most recently from d0ef6c8 to 99ce267 Compare June 26, 2025 10:22
@AlessandroLuo AlessandroLuo requested a review from Copilot June 26, 2025 10:26
Copy link

@Copilot Copilot AI left a 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 a run: 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>
@AlessandroLuo AlessandroLuo force-pushed the apollo510-sdio-merge branch from 99ce267 to 54c6264 Compare June 27, 2025 06:49
Copy link

@swift-tk
Copy link
Contributor

swift-tk commented Jul 2, 2025

Moved to #92455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants