Skip to content

Commit 75fa9ea

Browse files
lyakhcjb
authored andcommitted
mmc: add a driver for the Renesas usdhi6rol0 SD/SDIO host controller
This patch adds a driver for the Renesas usdhi6rol0 SD/SDIO host controller in both PIO and DMA modes. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Chris Ball <chris@printf.net>
1 parent 06732b8 commit 75fa9ea

4 files changed

Lines changed: 1887 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
* Renesas usdhi6rol0 SD/SDIO host controller
2+
3+
Required properties:
4+
5+
- compatible: must be
6+
"renesas,usdhi6rol0"
7+
- interrupts: 3 interrupts, named "card detect", "data" and "SDIO" must be
8+
specified
9+
- clocks: a clock binding for the IMCLK input
10+
11+
Optional properties:
12+
13+
- vmmc-supply: a phandle of a regulator, supplying Vcc to the card
14+
- vqmmc-supply: a phandle of a regulator, supplying VccQ to the card
15+
16+
Additionally any standard mmc bindings from mmc.txt can be used.
17+
18+
Example:
19+
20+
sd0: sd@ab000000 {
21+
compatible = "renesas,usdhi6rol0";
22+
reg = <0xab000000 0x200>;
23+
interrupts = <0 23 0x4
24+
0 24 0x4
25+
0 25 0x4>;
26+
interrupt-names = "card detect", "data", "SDIO";
27+
bus-width = <4>;
28+
max-frequency = <50000000>;
29+
cap-power-off-card;
30+
clocks = <&imclk>;
31+
vmmc-supply = <&vcc_sd0>;
32+
vqmmc-supply = <&vccq_sd0>;
33+
};

‎drivers/mmc/host/Kconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,12 @@ config MMC_WMT
697697
To compile this driver as a module, choose M here: the
698698
module will be called wmt-sdmmc.
699699

700+
config MMC_USDHI6ROL0
701+
tristate "Renesas USDHI6ROL0 SD/SDIO Host Controller support"
702+
help
703+
This selects support for the Renesas USDHI6ROL0 SD/SDIO
704+
Host Controller
705+
700706
config MMC_REALTEK_PCI
701707
tristate "Realtek PCI-E SD/MMC Card Interface Driver"
702708
depends on MFD_RTSX_PCI

‎drivers/mmc/host/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ obj-$(CONFIG_MMC_USHC) += ushc.o
5252
obj-$(CONFIG_MMC_WMT) += wmt-sdmmc.o
5353
obj-$(CONFIG_MMC_MOXART) += moxart-mmc.o
5454
obj-$(CONFIG_MMC_SUNXI) += sunxi-mmc.o
55+
obj-$(CONFIG_MMC_USDHI6ROL0) += usdhi6rol0.o
5556

5657
obj-$(CONFIG_MMC_REALTEK_PCI) += rtsx_pci_sdmmc.o
5758
obj-$(CONFIG_MMC_REALTEK_USB) += rtsx_usb_sdmmc.o

0 commit comments

Comments
 (0)