Back to home page

OSCL-LXR

 
 

    


0001 * Amlogic Meson6, Meson8 and Meson8b SDIO/MMC controller
0002 
0003 The highspeed MMC host controller on Amlogic SoCs provides an interface
0004 for MMC, SD, SDIO and SDHC types of memory cards.
0005 
0006 Supported maximum speeds are the ones of the eMMC standard 4.41 as well
0007 as the speed of SD standard 2.0.
0008 
0009 The hardware provides an internal "mux" which allows up to three slots
0010 to be controlled. Only one slot can be accessed at a time.
0011 
0012 Required properties:
0013  - compatible : must be one of
0014         - "amlogic,meson8-sdio"
0015         - "amlogic,meson8b-sdio"
0016         along with the generic "amlogic,meson-mx-sdio"
0017  - reg : mmc controller base registers
0018  - interrupts : mmc controller interrupt
0019  - #address-cells : must be 1
0020  - size-cells : must be 0
0021  - clocks : phandle to clock providers
0022  - clock-names : must contain "core" and "clkin"
0023 
0024 Required child nodes:
0025 A node for each slot provided by the MMC controller is required.
0026 NOTE: due to a driver limitation currently only one slot (= child node)
0027       is supported!
0028 
0029 Required properties on each child node (= slot):
0030  - compatible : must be "mmc-slot" (see mmc.txt within this directory)
0031  - reg : the slot (or "port") ID
0032 
0033 Optional properties on each child node (= slot):
0034  - bus-width : must be 1 or 4 (8-bit bus is not supported)
0035  - for cd and all other additional generic mmc parameters
0036    please refer to mmc.txt within this directory
0037 
0038 Examples:
0039         mmc@c1108c20 {
0040                 compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
0041                 reg = <0xc1108c20 0x20>;
0042                 interrupts = <0 28 1>;
0043                 #address-cells = <1>;
0044                 #size-cells = <0>;
0045                 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
0046                 clock-names = "core", "clkin";
0047 
0048                 slot@1 {
0049                         compatible = "mmc-slot";
0050                         reg = <1>;
0051 
0052                         bus-width = <4>;
0053                 };
0054         };