Skip to content

drivers: sdhc: Add synopsys dwc sdhc driver#439

Open
Deepak-AlifSemi wants to merge 1 commit intoalifsemi:mainfrom
Deepak-AlifSemi:zrtss_780_alif_sdhc_driver
Open

drivers: sdhc: Add synopsys dwc sdhc driver#439
Deepak-AlifSemi wants to merge 1 commit intoalifsemi:mainfrom
Deepak-AlifSemi:zrtss_780_alif_sdhc_driver

Conversation

@Deepak-AlifSemi
Copy link
Copy Markdown
Contributor

@Deepak-AlifSemi Deepak-AlifSemi commented Mar 25, 2026

Added initial version of synopsys dwc sdhc driver.
Supports 3.3v and 1.8v operation.
Supports SD/SDIO modes at 1, 4 bit bus, 400khz, 25mhz, 50mhz speed.

@Deepak-AlifSemi Deepak-AlifSemi force-pushed the zrtss_780_alif_sdhc_driver branch 2 times, most recently from b07e2bb to 887f62c Compare March 25, 2026 11:28
@Deepak-AlifSemi Deepak-AlifSemi self-assigned this Mar 25, 2026
@Deepak-AlifSemi Deepak-AlifSemi force-pushed the zrtss_780_alif_sdhc_driver branch 10 times, most recently from a924014 to 1277abc Compare March 26, 2026 16:31
@RupeshKumar-AlifSemi RupeshKumar-AlifSemi requested review from Copilot and removed request for Copilot March 27, 2026 08:11
Copy link
Copy Markdown

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

Adds an initial Zephyr SDHC driver for Alif SoCs and wires it up via devicetree and Kconfig so boards can use the new "alif,sdhc" compatible.

Changes:

  • Introduce alif,sdhc devicetree binding and switch Alif DTS nodes to use it.
  • Add a new sdhc_alif driver implementation with DMA (ADMA2/SDMA) support and IRQ handling.
  • Register the driver in SDHC Kconfig/CMake so it builds when enabled.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
dts/bindings/sdhc/alif,sdhc.yaml New DT binding for the Alif SDHC controller (interrupts, pinctrl, optional GPIOs).
dts/arm/alif/ensemble/common/e1c.dtsi Switch SDHC node compatible to "alif,sdhc".
dts/arm/alif/ensemble/common/e1.dtsi Switch compatible and update interrupts/interrupt-names and max bus frequency.
dts/arm/alif/balletto/common/b1.dtsi Switch SDHC node compatible to "alif,sdhc".
drivers/sdhc/sdhc_alif.h New register definitions and helper macros for the Alif SDMMC controller.
drivers/sdhc/sdhc_alif.c New Alif SDHC driver implementation (init, IO, DMA, IRQ, tuning).
drivers/sdhc/Kconfig.alif New Kconfig options for enabling Alif SDHC + DMA mode selection.
drivers/sdhc/Kconfig Source the new Alif Kconfig.
drivers/sdhc/CMakeLists.txt Compile the new driver when CONFIG_SDHC_ALIF is enabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Deepak-AlifSemi Deepak-AlifSemi force-pushed the zrtss_780_alif_sdhc_driver branch 2 times, most recently from 954b2b8 to 3dc7abb Compare April 7, 2026 10:42
@Deepak-AlifSemi Deepak-AlifSemi changed the title drivers: sdhc: Add alif sdhc driver drivers: sdhc: Add synopsys dwc sdhc driver Apr 7, 2026
@Deepak-AlifSemi Deepak-AlifSemi force-pushed the zrtss_780_alif_sdhc_driver branch 2 times, most recently from 6e9bca0 to b40b9a6 Compare April 7, 2026 11:24
Added initial version of synopsys dwc sdhc driver.
Supports 3.3v and 1.8v operation.
Supports SD/SDIO modes at 1, 4 bit bus, 400khz, 25mhz, 50mhz speed.

Signed-off-by: Deepak Kumar <deepak@alifsemi.com>
@Deepak-AlifSemi Deepak-AlifSemi force-pushed the zrtss_780_alif_sdhc_driver branch from b40b9a6 to 66403d1 Compare April 8, 2026 13:49
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