sunxi-mmc.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. * Allwinner sunxi MMC controller
  2. The highspeed MMC host controller on Allwinner SoCs provides an interface
  3. for MMC, SD and SDIO types of memory cards.
  4. Supported maximum speeds are the ones of the eMMC standard 4.5 as well
  5. as the speed of SD standard 3.0.
  6. Absolute maximum transfer rate is 200MB/s
  7. Required properties:
  8. - compatible : "allwinner,sun4i-a10-mmc" or "allwinner,sun5i-a13-mmc"
  9. - reg : mmc controller base registers
  10. - clocks : a list with 4 phandle + clock specifier pairs
  11. - clock-names : must contain "ahb", "mmc", "output" and "sample"
  12. - interrupts : mmc controller interrupt
  13. Optional properties:
  14. - resets : phandle + reset specifier pair
  15. - reset-names : must contain "ahb"
  16. - for cd, bus-width and additional generic mmc parameters
  17. please refer to mmc.txt within this directory
  18. Examples:
  19. - Within .dtsi:
  20. mmc0: mmc@01c0f000 {
  21. compatible = "allwinner,sun5i-a13-mmc";
  22. reg = <0x01c0f000 0x1000>;
  23. clocks = <&ahb_gates 8>, <&mmc0_clk>, <&mmc0_output_clk>, <&mmc0_sample_clk>;
  24. clock-names = "ahb", "mod", "output", "sample";
  25. interrupts = <0 32 4>;
  26. status = "disabled";
  27. };
  28. - Within dts:
  29. mmc0: mmc@01c0f000 {
  30. pinctrl-names = "default", "default";
  31. pinctrl-0 = <&mmc0_pins_a>;
  32. pinctrl-1 = <&mmc0_cd_pin_reference_design>;
  33. bus-width = <4>;
  34. cd-gpios = <&pio 7 1 0>; /* PH1 */
  35. cd-inverted;
  36. status = "okay";
  37. };