Skip to content

Commit d7f0570

Browse files
Chunyan Zhangstorulf
authored andcommitted
dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller
This patch adds the device-tree binding documentation for Spreadtrum SDHCI driver. Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 7ed71a9 commit d7f0570

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
* Spreadtrum SDHCI controller (sdhci-sprd)
2+
3+
The Secure Digital (SD) Host controller on Spreadtrum SoCs provides an interface
4+
for MMC, SD and SDIO types of cards.
5+
6+
This file documents differences between the core properties in mmc.txt
7+
and the properties used by the sdhci-sprd driver.
8+
9+
Required properties:
10+
- compatible: Should contain "sprd,sdhci-r11".
11+
- reg: physical base address of the controller and length.
12+
- interrupts: Interrupts used by the SDHCI controller.
13+
- clocks: Should contain phandle for the clock feeding the SDHCI controller
14+
- clock-names: Should contain the following:
15+
"sdio" - SDIO source clock (required)
16+
"enable" - gate clock which used for enabling/disabling the device (required)
17+
18+
Optional properties:
19+
- assigned-clocks: the same with "sdio" clock
20+
- assigned-clock-parents: the default parent of "sdio" clock
21+
22+
Examples:
23+
24+
sdio0: sdio@20600000 {
25+
compatible = "sprd,sdhci-r11";
26+
reg = <0 0x20600000 0 0x1000>;
27+
interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
28+
29+
clock-names = "sdio", "enable";
30+
clocks = <&ap_clk CLK_EMMC_2X>,
31+
<&apahb_gate CLK_EMMC_EB>;
32+
assigned-clocks = <&ap_clk CLK_EMMC_2X>;
33+
assigned-clock-parents = <&rpll CLK_RPLL_390M>;
34+
35+
bus-width = <8>;
36+
non-removable;
37+
no-sdio;
38+
no-sd;
39+
cap-mmc-hw-reset;
40+
status = "okay";
41+
};

0 commit comments

Comments
 (0)