xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mmc/samsung,s3cmci.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Samsung's S3C24XX MMC/SD/SDIO controller device tree bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunSamsung's S3C24XX MMC/SD/SDIO controller is used as a connectivity interface
4*4882a593Smuzhiyunwith external MMC, SD and SDIO storage mediums.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThis file documents differences between the core mmc properties described by
7*4882a593Smuzhiyunmmc.txt and the properties used by the Samsung S3C24XX MMC/SD/SDIO controller
8*4882a593Smuzhiyunimplementation.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunRequired SoC Specific Properties:
11*4882a593Smuzhiyun- compatible: should be one of the following
12*4882a593Smuzhiyun  - "samsung,s3c2410-sdi": for controllers compatible with s3c2410
13*4882a593Smuzhiyun  - "samsung,s3c2412-sdi": for controllers compatible with s3c2412
14*4882a593Smuzhiyun  - "samsung,s3c2440-sdi": for controllers compatible with s3c2440
15*4882a593Smuzhiyun- reg: register location and length
16*4882a593Smuzhiyun- interrupts: mmc controller interrupt
17*4882a593Smuzhiyun- clocks: Should reference the controller clock
18*4882a593Smuzhiyun- clock-names: Should contain "sdi"
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunRequired Board Specific Properties:
21*4882a593Smuzhiyun- pinctrl-0: Should specify pin control groups used for this controller.
22*4882a593Smuzhiyun- pinctrl-names: Should contain only one value - "default".
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunOptional Properties:
25*4882a593Smuzhiyun- bus-width: number of data lines (see mmc.txt)
26*4882a593Smuzhiyun- cd-gpios: gpio for card detection (see mmc.txt)
27*4882a593Smuzhiyun- wp-gpios: gpio for write protection (see mmc.txt)
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun	mmc0: mmc@5a000000 {
32*4882a593Smuzhiyun		compatible = "samsung,s3c2440-sdi";
33*4882a593Smuzhiyun		pinctrl-names = "default";
34*4882a593Smuzhiyun		pinctrl-0 = <&sdi_pins>;
35*4882a593Smuzhiyun		reg = <0x5a000000 0x100000>;
36*4882a593Smuzhiyun		interrupts = <0 0 21 3>;
37*4882a593Smuzhiyun		clocks = <&clocks PCLK_SDI>;
38*4882a593Smuzhiyun		clock-names = "sdi";
39*4882a593Smuzhiyun		bus-width = <4>;
40*4882a593Smuzhiyun		cd-gpios = <&gpg 8 GPIO_ACTIVE_LOW>;
41*4882a593Smuzhiyun		wp-gpios = <&gph 8 GPIO_ACTIVE_LOW>;
42*4882a593Smuzhiyun	};
43