xref: /freebsd/sys/contrib/device-tree/Bindings/mmc/cavium-mmc.txt (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
1* Cavium Octeon & ThunderX MMC controller
2
3The highspeed MMC host controller on Caviums SoCs provides an interface
4for MMC and SD types of memory cards.
5
6Supported maximum speeds are the ones of the eMMC standard 4.41 as well
7as the speed of SD standard 4.0. Only 3.3 Volt is supported.
8
9Required properties:
10 - compatible : should be one of:
11   cavium,octeon-6130-mmc
12   cavium,octeon-7890-mmc
13   cavium,thunder-8190-mmc
14   cavium,thunder-8390-mmc
15   mmc-slot
16 - reg : mmc controller base registers
17 - clocks : phandle
18
19Optional properties:
20 - for cd, bus-width and additional generic mmc parameters
21   please refer to mmc.txt within this directory
22 - cavium,cmd-clk-skew : number of coprocessor clocks before sampling command
23 - cavium,dat-clk-skew : number of coprocessor clocks before sampling data
24
25Deprecated properties:
26- spi-max-frequency : use max-frequency instead
27- cavium,bus-max-width : use bus-width instead
28- power-gpios : use vmmc-supply instead
29- cavium,octeon-6130-mmc-slot : use mmc-slot instead
30
31Examples:
32	mmc_1_4: mmc@1,4 {
33		compatible = "cavium,thunder-8390-mmc";
34		reg = <0x0c00 0 0 0 0>;	/* DEVFN = 0x0c (1:4) */
35		#address-cells = <1>;
36		#size-cells = <0>;
37		clocks = <&sclk>;
38
39		mmc-slot@0 {
40			compatible = "mmc-slot";
41			reg = <0>;
42			vmmc-supply = <&mmc_supply_3v3>;
43			max-frequency = <42000000>;
44			bus-width = <4>;
45			cap-sd-highspeed;
46		};
47
48		mmc-slot@1 {
49			compatible = "mmc-slot";
50			reg = <1>;
51			vmmc-supply = <&mmc_supply_3v3>;
52			max-frequency = <42000000>;
53			bus-width = <8>;
54			cap-mmc-highspeed;
55			non-removable;
56		};
57	};
58