162306a36Sopenharmony_ci* Amlogic Meson6, Meson8 and Meson8b SDIO/MMC controller
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciThe highspeed MMC host controller on Amlogic SoCs provides an interface
462306a36Sopenharmony_cifor MMC, SD, SDIO and SDHC types of memory cards.
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciSupported maximum speeds are the ones of the eMMC standard 4.41 as well
762306a36Sopenharmony_cias the speed of SD standard 2.0.
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciThe hardware provides an internal "mux" which allows up to three slots
1062306a36Sopenharmony_cito be controlled. Only one slot can be accessed at a time.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciRequired properties:
1362306a36Sopenharmony_ci - compatible : must be one of
1462306a36Sopenharmony_ci	- "amlogic,meson8-sdio"
1562306a36Sopenharmony_ci	- "amlogic,meson8b-sdio"
1662306a36Sopenharmony_ci	along with the generic "amlogic,meson-mx-sdio"
1762306a36Sopenharmony_ci - reg : mmc controller base registers
1862306a36Sopenharmony_ci - interrupts : mmc controller interrupt
1962306a36Sopenharmony_ci - #address-cells : must be 1
2062306a36Sopenharmony_ci - size-cells : must be 0
2162306a36Sopenharmony_ci - clocks : phandle to clock providers
2262306a36Sopenharmony_ci - clock-names : must contain "core" and "clkin"
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciRequired child nodes:
2562306a36Sopenharmony_ciA node for each slot provided by the MMC controller is required.
2662306a36Sopenharmony_ciNOTE: due to a driver limitation currently only one slot (= child node)
2762306a36Sopenharmony_ci      is supported!
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciRequired properties on each child node (= slot):
3062306a36Sopenharmony_ci - compatible : must be "mmc-slot" (see mmc.txt within this directory)
3162306a36Sopenharmony_ci - reg : the slot (or "port") ID
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ciOptional properties on each child node (= slot):
3462306a36Sopenharmony_ci - bus-width : must be 1 or 4 (8-bit bus is not supported)
3562306a36Sopenharmony_ci - for cd and all other additional generic mmc parameters
3662306a36Sopenharmony_ci   please refer to mmc.txt within this directory
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciExamples:
3962306a36Sopenharmony_ci	mmc@c1108c20 {
4062306a36Sopenharmony_ci		compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
4162306a36Sopenharmony_ci		reg = <0xc1108c20 0x20>;
4262306a36Sopenharmony_ci		interrupts = <0 28 1>;
4362306a36Sopenharmony_ci		#address-cells = <1>;
4462306a36Sopenharmony_ci		#size-cells = <0>;
4562306a36Sopenharmony_ci		clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
4662306a36Sopenharmony_ci		clock-names = "core", "clkin";
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci		slot@1 {
4962306a36Sopenharmony_ci			compatible = "mmc-slot";
5062306a36Sopenharmony_ci			reg = <1>;
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci			bus-width = <4>;
5362306a36Sopenharmony_ci		};
5462306a36Sopenharmony_ci	};
55