Skip to contentSkip to conversation

mmc: add SDHCI driver for NPCM SoCs

PATCH New Tomer Maimon 1 participant 3 messages Aug 2, 2022

Subsystems (4)
lore
Share & tools
lore

Tomer Maimon

author maintainer
#0 lore raw

cover mmc: add SDHCI driver for NPCM SoCs

This patch set adds SDHCI NPCM Baseboard Management Controller(BMC) support.

The NPCM SDHCI driver were tested on NPCM750 and NPCM845 evaluation boards.

Tomer Maimon (2):
dt-bindings: mmc: npcm: NPCM binding documentation
mmc: host: Add support for NPCM SDHCI controller

 .../devicetree/bindings/mmc/sdhci-npcm.txt    | 22 +++++
 drivers/mmc/host/Kconfig                      |  8 ++
 drivers/mmc/host/Makefile                     |  1 +
 drivers/mmc/host/sdhci-npcm.c                 | 81 +++++++++++++++++++
 4 files changed, 112 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-npcm.txt
 create mode 100644 drivers/mmc/host/sdhci-npcm.c
Signature · 1 line
2.33.0
author maintainer
#1 lore raw

PATCH 1/2 dt-bindings: mmc: npcm: NPCM binding documentation

This patch adds the device tree binding documentation for the NPCM BMC SoC SDHCI driver.

---
 .../devicetree/bindings/mmc/sdhci-npcm.txt    | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-npcm.txt
Documentation/devicetree/bindings/mmc/sdhci-npcm.txt new file +22 -0
new file mode 100644
index 000000000000..c7c2ba6b537a
@@ -0,0 +1,22 @@
+* NPCM SDHCI Controller
+
+This file documents differences between the core properties in mmc.txt
+and the properties used by the sdhci-npcm driver.
+
+Required properties:
+- compatible  : "nuvoton,npcm750-sdhci" for the NPCM7XX BMC.
+				"nuvoton,npcm845-sdhci" for the NPCM8XX BMC.
+
+Example:
+
+		sdhci0: sdhci@f0842000 {
+			compatible = "nuvoton,npcm750-sdhci";
+			status = "disabled";
+			reg = <0xf0842000 0x200>;
+			interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
+			clocks =  <&clk NPCM7XX_CLK_MMC>;
+			clock-names = "clk_mmc";
+			pinctrl-names = "default";
+			pinctrl-0 = <&mmc8_pins
+				     &mmc_pins>;
+		};
Signature · 1 line
2.33.0
author maintainer
#2 lore raw

PATCH 2/2 mmc: host: Add support for NPCM SDHCI controller

In reply to Tomer Maimon

This patch adds NPCM SDHCI controller driver support to NPCM BMC SoC.

---
 drivers/mmc/host/Kconfig      |  8 ++++
 drivers/mmc/host/Makefile     |  1 +
 drivers/mmc/host/sdhci-npcm.c | 81 +++++++++++++++++++++++++++++++++++
 3 files changed, 90 insertions(+)
 create mode 100644 drivers/mmc/host/sdhci-npcm.c
drivers/mmc/host/Kconfig +8 -0
index ccc148cdb5ee..db66bb60ea40 100644
@@ -704,6 +704,14 @@ config MMC_TMIO
 	  This provides support for the SD/MMC cell found in TC6393XB,
 	  T7L66XB and also HTC ASIC3
 
+config MMC_SDHCI_NPCM
+	tristate "Secure Digital Host Controller Interface support for NPCM"
+	depends on ARCH_NPCM
+	depends on MMC_SDHCI_PLTFM
+	help
+	  This provides support for the SD/eMMC controller found in
+	  NPCM BMC family SoCs.
+
 config MMC_SDHI
 	tristate "Renesas SDHI SD/SDIO controller support"
 	depends on SUPERH || ARCH_RENESAS || COMPILE_TEST
drivers/mmc/host/Makefile +1 -0
index 14004cc09aaa..d2341cfbd754 100644
@@ -38,6 +38,7 @@ obj-$(CONFIG_MMC_SPI)		+= of_mmc_spi.o
 obj-$(CONFIG_MMC_S3C)   	+= s3cmci.o
 obj-$(CONFIG_MMC_SDRICOH_CS)	+= sdricoh_cs.o
 obj-$(CONFIG_MMC_TMIO)		+= tmio_mmc.o
+obj-$(CONFIG_MMC_SDHCI_NPCM)	+= sdhci-npcm.o
 obj-$(CONFIG_MMC_TMIO_CORE)	+= tmio_mmc_core.o
 obj-$(CONFIG_MMC_SDHI)		+= renesas_sdhi_core.o
 obj-$(CONFIG_MMC_SDHI_SYS_DMAC)		+= renesas_sdhi_sys_dmac.o
drivers/mmc/host/sdhci-npcm.c new file +81 -0

81 lines not on this page · raw message

Signature · 1 line
2.33.0