18c2ecf20Sopenharmony_ciAmlogic SD / eMMC controller for S905/GXBB family SoCs 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe MMC 5.1 compliant host controller on Amlogic provides the 48c2ecf20Sopenharmony_ciinterface for SD, eMMC and SDIO devices. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciThis file documents the properties in addition to those available in 78c2ecf20Sopenharmony_cithe MMC core bindings, documented by mmc.txt. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciRequired properties: 108c2ecf20Sopenharmony_ci- compatible : contains one of: 118c2ecf20Sopenharmony_ci - "amlogic,meson-gx-mmc" 128c2ecf20Sopenharmony_ci - "amlogic,meson-gxbb-mmc" 138c2ecf20Sopenharmony_ci - "amlogic,meson-gxl-mmc" 148c2ecf20Sopenharmony_ci - "amlogic,meson-gxm-mmc" 158c2ecf20Sopenharmony_ci - "amlogic,meson-axg-mmc" 168c2ecf20Sopenharmony_ci- clocks : A list of phandle + clock-specifier pairs for the clocks listed in clock-names. 178c2ecf20Sopenharmony_ci- clock-names: Should contain the following: 188c2ecf20Sopenharmony_ci "core" - Main peripheral bus clock 198c2ecf20Sopenharmony_ci "clkin0" - Parent clock of internal mux 208c2ecf20Sopenharmony_ci "clkin1" - Other parent clock of internal mux 218c2ecf20Sopenharmony_ci The driver has an internal mux clock which switches between clkin0 and clkin1 depending on the 228c2ecf20Sopenharmony_ci clock rate requested by the MMC core. 238c2ecf20Sopenharmony_ci- resets : phandle of the internal reset line 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciOptional properties: 268c2ecf20Sopenharmony_ci- amlogic,dram-access-quirk: set when controller's internal DMA engine cannot access the 278c2ecf20Sopenharmony_ci DRAM memory, like on the G12A dedicated SDIO controller. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciExample: 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci sd_emmc_a: mmc@70000 { 328c2ecf20Sopenharmony_ci compatible = "amlogic,meson-gxbb-mmc"; 338c2ecf20Sopenharmony_ci reg = <0x0 0x70000 0x0 0x2000>; 348c2ecf20Sopenharmony_ci interrupts = < GIC_SPI 216 IRQ_TYPE_EDGE_RISING>; 358c2ecf20Sopenharmony_ci clocks = <&clkc CLKID_SD_EMMC_A>, <&xtal>, <&clkc CLKID_FCLK_DIV2>; 368c2ecf20Sopenharmony_ci clock-names = "core", "clkin0", "clkin1"; 378c2ecf20Sopenharmony_ci pinctrl-0 = <&emmc_pins>; 388c2ecf20Sopenharmony_ci resets = <&reset RESET_SD_EMMC_A>; 398c2ecf20Sopenharmony_ci }; 40